|
Lines 14-23
Link Here
|
| 14 |
SLOT="0" |
14 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
15 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
| 16 |
|
16 |
|
| 17 |
IUSE="cupsddk dbus doc fax gtk minimal parport ppds qt3 qt4 scanner snmp" |
17 |
IUSE="cupsddk dbus doc fax gtk minimal parport policykit ppds qt3 qt4 scanner snmp" |
| 18 |
|
18 |
|
| 19 |
DEPEND="!net-print/hpijs |
19 |
DEPEND="!net-print/hpijs |
| 20 |
!net-print/hpoj |
20 |
!net-print/hpoj |
|
|
21 |
>=dev-lang/python-2.4.4[threads] |
| 21 |
virtual/ghostscript |
22 |
virtual/ghostscript |
| 22 |
media-libs/jpeg |
23 |
media-libs/jpeg |
| 23 |
>=net-print/foomatic-filters-3.0.20080507[cups] |
24 |
>=net-print/foomatic-filters-3.0.20080507[cups] |
|
Lines 75-81
Link Here
|
| 75 |
} |
76 |
} |
| 76 |
|
77 |
|
| 77 |
src_prepare() { |
78 |
src_prepare() { |
| 78 |
epatch "${FILESDIR}"/${P}-high_cpu_utilization_logout.patch |
|
|
| 79 |
sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed" |
79 |
sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed" |
| 80 |
sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ |
80 |
sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ |
| 81 |
-e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ |
81 |
-e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ |
|
Lines 94-106
Link Here
|
| 94 |
cp "${FILESDIR}"/70-hpmud.rules data/rules |
94 |
cp "${FILESDIR}"/70-hpmud.rules data/rules |
| 95 |
sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html || die "sed failed" |
95 |
sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html || die "sed failed" |
| 96 |
|
96 |
|
|
|
97 |
# SYSFS deprecated - https://bugs.launchpad.net/hplip/+bug/346390 |
| 98 |
sed -i -e "s/SYSFS/ATTRS/g" -e "s/sysfs/attrs/g" data/rules/56-hpmud_support.rules || die "sed failed" |
| 99 |
|
| 100 |
# plugins check |
| 101 |
mv data/rules/56-hpmud_support.rules data/rules/71-hpmud_support.rules |
| 102 |
sed -i -e "s/56-hpmud_support.rules/71-hpmud_support.rules/g" Makefile.* */*.html || die "sed failed" |
| 103 |
|
| 97 |
sed -i \ |
104 |
sed -i \ |
| 98 |
-e s:/usr/lib/cups/driver:$(cups-config --serverbin)/driver:g \ |
105 |
-e s:/usr/lib/cups/driver:$(cups-config --serverbin)/driver:g \ |
| 99 |
installer/core_install.py || die "sed core_install.py" |
106 |
installer/core_install.py || die "sed core_install.py" |
| 100 |
|
107 |
|
| 101 |
# Use system foomatic-rip instead of foomatic-rip-hplip |
108 |
# Use system foomatic-rip instead of foomatic-rip-hplip |
| 102 |
local i |
109 |
local i |
| 103 |
for i in ppd/*.ppd.gz |
110 |
for i in ppd/{hpcups,hpijs}/*.ppd.gz |
| 104 |
do |
111 |
do |
| 105 |
rm -f ${i}.temp |
112 |
rm -f ${i}.temp |
| 106 |
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die "*.ppd.gz sed failed" |
113 |
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die "*.ppd.gz sed failed" |
|
Lines 125-134
Link Here
|
| 125 |
src_configure() { |
132 |
src_configure() { |
| 126 |
if use qt3 || use qt4 ; then |
133 |
if use qt3 || use qt4 ; then |
| 127 |
local gui_build="--enable-gui-build" |
134 |
local gui_build="--enable-gui-build" |
|
|
135 |
if use qt4; then |
| 136 |
gui_build="${gui_build} --enable-qt4 --disable-qt3" |
| 137 |
else |
| 138 |
use qt3 && gui_build="${gui_build} --enable-qt3 --disable-qt4" |
| 139 |
fi |
| 128 |
else |
140 |
else |
| 129 |
local gui_build="--disable-gui-build" |
141 |
local gui_build="--disable-gui-build" |
| 130 |
fi |
142 |
fi |
| 131 |
use qt4 && gui_build="${gui_build} --enable-qt4 --disable-qt3" |
|
|
| 132 |
|
143 |
|
| 133 |
econf \ |
144 |
econf \ |
| 134 |
--disable-dependency-tracking \ |
145 |
--disable-dependency-tracking \ |
|
Lines 145-151
Link Here
|
| 145 |
$(use_enable parport pp-build) \ |
156 |
$(use_enable parport pp-build) \ |
| 146 |
$(use_enable ppds foomatic-ppd-install) \ |
157 |
$(use_enable ppds foomatic-ppd-install) \ |
| 147 |
$(use_enable scanner scan-build) \ |
158 |
$(use_enable scanner scan-build) \ |
| 148 |
$(use_enable snmp network-build) |
159 |
$(use_enable snmp network-build) \ |
|
|
160 |
$(use_enable policykit policykit) |
| 149 |
} |
161 |
} |
| 150 |
|
162 |
|
| 151 |
src_install() { |
163 |
src_install() { |
|
Lines 166-172
Link Here
|
| 166 |
fi |
178 |
fi |
| 167 |
|
179 |
|
| 168 |
# Do not install unzipped ppd files |
180 |
# Do not install unzipped ppd files |
| 169 |
rm -f "${D}"/usr/share/ppd/HP/*.ppd |
181 |
rm -rf "${D}"/usr/share/ppd/HP/*.ppd |
| 170 |
} |
182 |
} |
| 171 |
|
183 |
|
| 172 |
pkg_preinst() { |
184 |
pkg_preinst() { |