Lines 1-8
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.8.7.ebuild,v 1.1 2008/08/17 12:46:53 calchan Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils linux-info python |
5 |
inherit eutils flag-o-matic linux-info python |
6 |
|
6 |
|
7 |
DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools." |
7 |
DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools." |
8 |
HOMEPAGE="http://hplip.sourceforge.net/" |
8 |
HOMEPAGE="http://hplip.sourceforge.net/" |
Lines 32-37
Link Here
|
32 |
)" |
32 |
)" |
33 |
|
33 |
|
34 |
RDEPEND="${DEPEND} |
34 |
RDEPEND="${DEPEND} |
|
|
35 |
app-arch/gzip |
35 |
!minimal? ( |
36 |
!minimal? ( |
36 |
!<sys-fs/udev-114 |
37 |
!<sys-fs/udev-114 |
37 |
scanner? ( |
38 |
scanner? ( |
Lines 96-102
Link Here
|
96 |
sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html || die "sed failed" |
97 |
sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html || die "sed failed" |
97 |
|
98 |
|
98 |
# Use system foomatic-rip instead of foomatic-rip-hplip |
99 |
# Use system foomatic-rip instead of foomatic-rip-hplip |
99 |
sed -i -e 's/foomatic-rip-hplip/foomatic-rip/' ppd/*.ppd || die "sed failed" |
100 |
local i |
|
|
101 |
for i in ppd/*.ppd.gz |
102 |
do |
103 |
rm -f $i.temp |
104 |
gunzip -c $i | sed 's/foomatic-rip-hplip/foomatic-rip/' | gzip > $i.temp || die "*.ppd.gz sed failed" |
105 |
mv $i.temp $i |
106 |
|
107 |
done |
100 |
|
108 |
|
101 |
# Qt4 is still undocumented by upstream, so use with caution |
109 |
# Qt4 is still undocumented by upstream, so use with caution |
102 |
local QT_VER |
110 |
local QT_VER |
Lines 139-145
Link Here
|
139 |
} |
147 |
} |
140 |
|
148 |
|
141 |
src_install() { |
149 |
src_install() { |
142 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
150 |
replace-flags "-j?" "-j1" |
|
|
151 |
emake DESTDIR="${D}" install || die "emake install failed" |
143 |
rm -f "${D}"/etc/sane.d/dll.conf |
152 |
rm -f "${D}"/etc/sane.d/dll.conf |
144 |
|
153 |
|
145 |
# bug 106035 |
154 |
# bug 106035 |