1 |
commit: b04c0c05ee1b7151351a46b44685eef0a004e48a |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 28 15:07:32 2015 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 28 15:07:32 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b04c0c05 |
7 |
|
8 |
net-print/hplip: Remove old. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
net-print/hplip/Manifest | 2 - |
13 |
net-print/hplip/hplip-3.15.6.ebuild | 260 ------------------------------------ |
14 |
net-print/hplip/hplip-3.15.7.ebuild | 260 ------------------------------------ |
15 |
3 files changed, 522 deletions(-) |
16 |
|
17 |
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest |
18 |
index 50c26d9..b817d2b 100644 |
19 |
--- a/net-print/hplip/Manifest |
20 |
+++ b/net-print/hplip/Manifest |
21 |
@@ -1,6 +1,4 @@ |
22 |
DIST hplip-3.14.10-patches-1.tar.xz 8140 SHA256 33116a5e2c104495d60f0b15e923b2ae5eaaf269cd5ee8e988b035eb20aa23ab SHA512 a8deb03979c55b660ef299505afc328fc930786ea9d473109a9fafd83d72528a9c3700faf4742f2e05829824fc97c3656538e1a607e2191e617f3944f0482e9a WHIRLPOOL bbf5d62f29c0fb0162f34b7815fc190459c619fdaf4f96e33d085f9b7228fa5431b6d668322256995a0a1d16aa1cccb75171000bbb2334ad3b51fec47f2653c0 |
23 |
DIST hplip-3.14.10.tar.gz 21773429 SHA256 11b3cd8311dea6b22a4c80be1e5d021e84d15a5f3e7e22cbd43798e5c1a89598 SHA512 ed184c8d0d3d8d5aad454831013d7c5e0b1685b088ee8099b6efc1b152f8b159a2349f23f0c5c77a7a5f1a48165b0e22f2ff83ced1beb14633bd278d4ef4d6dc WHIRLPOOL 8e1985cfd370849db96765f792655da36e22b6cecb660dd4707b0ff33dd53c8b66b2ec73a9596c7e60036edc1843c195bbbde64f37c5a1c319752bf0ebc08eb6 |
24 |
DIST hplip-3.15.6-patches-1.tar.xz 8176 SHA256 3f42f72590966f49788ae620948dd3fe206c914d2d4a8d21aaaa86ef5f8b4645 SHA512 d9a35c594f087508a58d07b7c9f47e7bfb280ad66533481b069065cfbdc1927d56d50ab8b50d256bba1bd369fecc6c647bdae7a56a7f0e9edd74da8377dd22f4 WHIRLPOOL f3e0eb720ba14d596f68f106b71c7bd225dfe753cdd56857aa8d2600a72517384ad1a0cbfec7b3ac60922d682bd77a7f3ea2b44db6cdebacee820ebcfbcfc232 |
25 |
-DIST hplip-3.15.6.tar.gz 21956752 SHA256 30c513ee65aa5b342d8074ff89439c0827c35191683727335738d8bc0f9776c9 SHA512 97abde02c588563b77bd1eca73e1864eb6bda218fe9e7b77396ecc461ea884d94b5757c01486c81177c354e1aeec73eae0620d3a06d7b42d0ad2f62cb91334d3 WHIRLPOOL 12c72f36d0abbe73a0b4c489d783a9e11bbf33bfe15575a40db37a598edf34f9f8ccc4b5dc1aadbf7f308311decf19ca92af6192094c6d8e0c40c1a9d1b6c464 |
26 |
-DIST hplip-3.15.7.tar.gz 21979938 SHA256 d310903048f3600f93422e5a8c39ddd682511e0849cd9abc5e943f9a10bdd49d SHA512 45458b74ec496816292c40a9c1d5aed4a288f84be62e79378e701fff5fb1cb55cc77e8415884b824602ec6af8d1155b7dc288ef7382a2e4d96b337520d541a1c WHIRLPOOL 9cf840f79a63877e8fb36ddd51681e1473450c81bd46263272037682519e3ddfdfffc79ac86a60212d46ae61778fac118a9e5576bbf02892c46eba645b960f00 |
27 |
DIST hplip-3.15.9.tar.gz 22027325 SHA256 a1f58fe8707373c193728a7fd826523e99c30e3ca7f660faa75531acdff89d6d SHA512 4a33adff226cbcd0c36963a33117eef6877dbfead9514d6095a4f5a1eca3e46e81ee162279b7808c3e1fb24e92dab8edaf945eea351d9b85c8f891b7379d13fc WHIRLPOOL 8e2012d5543b0d11389bfd6c629671bec85282223ef4d1f921972af1071d770c825997fc0938cb47299f797d1f5f58dc270bc9220693e48be7abf6c15591cefb |
28 |
|
29 |
diff --git a/net-print/hplip/hplip-3.15.6.ebuild b/net-print/hplip/hplip-3.15.6.ebuild |
30 |
deleted file mode 100644 |
31 |
index a320384..0000000 |
32 |
--- a/net-print/hplip/hplip-3.15.6.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,260 +0,0 @@ |
35 |
-# Copyright 1999-2015 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
-# $Id$ |
38 |
- |
39 |
-EAPI=5 |
40 |
- |
41 |
-PYTHON_COMPAT=( python2_7 ) |
42 |
-PYTHON_REQ_USE="threads,xml" |
43 |
- |
44 |
-inherit eutils fdo-mime linux-info python-single-r1 udev autotools toolchain-funcs |
45 |
- |
46 |
-DESCRIPTION="HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools" |
47 |
-HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
48 |
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz |
49 |
- https://dev.gentoo.org/~billie/distfiles/${PN}-3.15.6-patches-1.tar.xz" |
50 |
- |
51 |
-LICENSE="GPL-2" |
52 |
-SLOT="0" |
53 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
54 |
- |
55 |
-IUSE="doc fax +hpcups hpijs kde libnotify -libusb0 minimal parport policykit qt4 scanner snmp static-ppds X" |
56 |
- |
57 |
-COMMON_DEPEND=" |
58 |
- virtual/jpeg:0 |
59 |
- hpijs? ( |
60 |
- || ( >=net-print/cups-filters-1.0.43-r1[foomatic] >=net-print/foomatic-filters-3.0.20080507[cups] ) |
61 |
- ) |
62 |
- !minimal? ( |
63 |
- ${PYTHON_DEPS} |
64 |
- >=net-print/cups-1.4.0 |
65 |
- !libusb0? ( virtual/libusb:1 ) |
66 |
- libusb0? ( virtual/libusb:0 ) |
67 |
- scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) |
68 |
- fax? ( >=sys-apps/dbus-1.6.8-r1 ) |
69 |
- snmp? ( |
70 |
- net-analyzer/net-snmp |
71 |
- dev-libs/openssl:0 |
72 |
- ) |
73 |
- )" |
74 |
- |
75 |
-DEPEND="${COMMON_DEPEND} |
76 |
- virtual/pkgconfig" |
77 |
- |
78 |
-RDEPEND="${COMMON_DEPEND} |
79 |
- >=app-text/ghostscript-gpl-8.71-r3 |
80 |
- policykit? ( |
81 |
- sys-auth/polkit |
82 |
- ) |
83 |
- !minimal? ( |
84 |
- >=dev-python/dbus-python-1.1.1-r1[${PYTHON_USEDEP}] |
85 |
- >=dev-python/pygobject-2.28.6-r53:2[${PYTHON_USEDEP}] |
86 |
- kernel_linux? ( virtual/udev ) |
87 |
- scanner? ( |
88 |
- >=dev-python/reportlab-2.6[${PYTHON_USEDEP}] |
89 |
- >=virtual/python-imaging-1[${PYTHON_USEDEP}] |
90 |
- X? ( || ( |
91 |
- kde? ( kde-misc/skanlite ) |
92 |
- media-gfx/xsane |
93 |
- media-gfx/sane-frontends |
94 |
- ) ) |
95 |
- ) |
96 |
- fax? ( |
97 |
- >=dev-python/reportlab-2.6[${PYTHON_USEDEP}] |
98 |
- ) |
99 |
- qt4? ( |
100 |
- >=dev-python/PyQt4-4.9.6-r2[dbus,X,${PYTHON_USEDEP}] |
101 |
- libnotify? ( |
102 |
- >=dev-python/notify-python-0.1.1-r3[${PYTHON_USEDEP}] |
103 |
- ) |
104 |
- ) |
105 |
- )" |
106 |
- |
107 |
-REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )" |
108 |
- |
109 |
-CONFIG_CHECK="~PARPORT ~PPDEV" |
110 |
-ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." |
111 |
- |
112 |
-pkg_setup() { |
113 |
- use !minimal && python-single-r1_pkg_setup |
114 |
- |
115 |
- ! use qt4 && ewarn "You need USE=qt4 for the hplip GUI." |
116 |
- |
117 |
- use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
118 |
- |
119 |
- if ! use hpcups && ! use hpijs ; then |
120 |
- ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
121 |
- ewarn "which is probably not what you want." |
122 |
- ewarn "You will almost certainly not be able to print." |
123 |
- fi |
124 |
- |
125 |
- if use minimal ; then |
126 |
- ewarn "Installing driver portions only, make sure you know what you are doing." |
127 |
- ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver" |
128 |
- ewarn "is installed. If both USE flags are set hpijs overrides hpcups." |
129 |
- else |
130 |
- use parport && linux-info_pkg_setup |
131 |
- fi |
132 |
-} |
133 |
- |
134 |
-src_prepare() { |
135 |
- if use !minimal ; then |
136 |
- python_export EPYTHON PYTHON |
137 |
- python_fix_shebang . |
138 |
- fi |
139 |
- |
140 |
- EPATCH_SUFFIX="patch" \ |
141 |
- EPATCH_FORCE="yes" \ |
142 |
- epatch "${WORKDIR}" |
143 |
- |
144 |
- # Make desktop files follow the specification |
145 |
- # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
146 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
147 |
- sed -i -e '/^Categories=/s/Application;//' \ |
148 |
- -e '/^Encoding=.*/d' hplip.desktop.in || die |
149 |
- sed -i -e '/^Categories=/s/Application;//' \ |
150 |
- -e '/^Version=.*/d' \ |
151 |
- -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
152 |
- |
153 |
- # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
154 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
155 |
- # https://bugs.launchpad.net/hplip/+bug/500086 |
156 |
- local udevdir=$(get_udevdir) |
157 |
- sed -i -e "s|/etc/udev|${udevdir}|g" \ |
158 |
- $(find . -type f -exec grep -l /etc/udev {} +) || die |
159 |
- |
160 |
- # Force recognition of Gentoo distro by hp-check |
161 |
- sed -i \ |
162 |
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
163 |
- installer/core_install.py || die |
164 |
- |
165 |
- # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
166 |
- # The hpcups driver does not use foomatic-rip |
167 |
- local i |
168 |
- for i in ppd/hpijs/*.ppd.gz ; do |
169 |
- rm -f ${i}.temp || die |
170 |
- gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
171 |
- gzip > ${i}.temp || die |
172 |
- mv ${i}.temp ${i} || die |
173 |
- done |
174 |
- |
175 |
- eautoreconf |
176 |
-} |
177 |
- |
178 |
-src_configure() { |
179 |
- local myconf drv_build minimal_build |
180 |
- |
181 |
- if use fax || use qt4 ; then |
182 |
- myconf="${myconf} --enable-dbus-build" |
183 |
- else |
184 |
- myconf="${myconf} --disable-dbus-build" |
185 |
- fi |
186 |
- |
187 |
- if use libusb0 ; then |
188 |
- myconf="${myconf} --enable-libusb01_build" |
189 |
- else |
190 |
- myconf="${myconf} --disable-libusb01_build" |
191 |
- fi |
192 |
- |
193 |
- if use hpcups ; then |
194 |
- drv_build="$(use_enable hpcups hpcups-install)" |
195 |
- if use static-ppds ; then |
196 |
- drv_build="${drv_build} --enable-cups-ppd-install" |
197 |
- drv_build="${drv_build} --disable-cups-drv-install" |
198 |
- else |
199 |
- drv_build="${drv_build} --enable-cups-drv-install" |
200 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
201 |
- fi |
202 |
- else |
203 |
- drv_build="--disable-hpcups-install" |
204 |
- drv_build="${drv_build} --disable-cups-drv-install" |
205 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
206 |
- fi |
207 |
- |
208 |
- if use hpijs ; then |
209 |
- drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
210 |
- if use static-ppds ; then |
211 |
- drv_build="${drv_build} --enable-foomatic-ppd-install" |
212 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
213 |
- else |
214 |
- drv_build="${drv_build} --enable-foomatic-drv-install" |
215 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
216 |
- fi |
217 |
- else |
218 |
- drv_build="${drv_build} --disable-hpijs-install" |
219 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
220 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
221 |
- fi |
222 |
- |
223 |
- if use minimal ; then |
224 |
- if use hpijs ; then |
225 |
- minimal_build="--enable-hpijs-only-build" |
226 |
- else |
227 |
- minimal_build="--disable-hpijs-only-build" |
228 |
- fi |
229 |
- if use hpcups ; then |
230 |
- minimal_build="${minimal_build} --enable-hpcups-only-build" |
231 |
- else |
232 |
- minimal_build="${minimal_build} --disable-hpcups-only-build" |
233 |
- fi |
234 |
- fi |
235 |
- |
236 |
- econf \ |
237 |
- --disable-cups11-build \ |
238 |
- --disable-lite-build \ |
239 |
- --disable-foomatic-rip-hplip-install \ |
240 |
- --disable-shadow-build \ |
241 |
- --disable-qt3 \ |
242 |
- --disable-udev_sysfs_rules \ |
243 |
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
244 |
- --with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
245 |
- --with-docdir=/usr/share/doc/${PF} \ |
246 |
- --with-htmldir=/usr/share/doc/${PF}/html \ |
247 |
- ${myconf} \ |
248 |
- ${drv_build} \ |
249 |
- ${minimal_build} \ |
250 |
- $(use_enable doc doc-build) \ |
251 |
- $(use_enable fax fax-build) \ |
252 |
- $(use_enable parport pp-build) \ |
253 |
- $(use_enable scanner scan-build) \ |
254 |
- $(use_enable snmp network-build) \ |
255 |
- $(use_enable qt4 gui-build) \ |
256 |
- $(use_enable qt4) \ |
257 |
- $(use_enable policykit) |
258 |
-} |
259 |
- |
260 |
-src_install() { |
261 |
- default |
262 |
- |
263 |
- # Installed by sane-backends |
264 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
265 |
- rm -f "${D}"/etc/sane.d/dll.conf || die |
266 |
- |
267 |
- rm -f "${D}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
268 |
- rmdir --ignore-fail-on-non-empty "${D}"/usr/share/doc/${PF}/ || die |
269 |
- |
270 |
- # Remove hal fdi files |
271 |
- rm -rf "${D}"/usr/share/hal || die |
272 |
- |
273 |
- prune_libtool_files --all |
274 |
- |
275 |
- if use !minimal ; then |
276 |
- python_export EPYTHON PYTHON |
277 |
- python_optimize "${D}"/usr/share/hplip |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-pkg_postinst() { |
282 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
283 |
- elog "For more information on setting up your printer please take" |
284 |
- elog "a look at the hplip section of the gentoo printing guide:" |
285 |
- elog "https://wiki.gentoo.org/wiki/Printing" |
286 |
- elog |
287 |
- elog "Any user who wants to print must be in the lp group." |
288 |
- elog |
289 |
- elog "Please note: Printers requiring a binary plugin are currently" |
290 |
- elog "not supported. All bugs regarding the plugin are most likely" |
291 |
- elog "closed. A bug about including the plugin package to gentoo is" |
292 |
- elog "available here: https://bugs.gentoo.org/352439" |
293 |
- fi |
294 |
-} |
295 |
|
296 |
diff --git a/net-print/hplip/hplip-3.15.7.ebuild b/net-print/hplip/hplip-3.15.7.ebuild |
297 |
deleted file mode 100644 |
298 |
index a320384..0000000 |
299 |
--- a/net-print/hplip/hplip-3.15.7.ebuild |
300 |
+++ /dev/null |
301 |
@@ -1,260 +0,0 @@ |
302 |
-# Copyright 1999-2015 Gentoo Foundation |
303 |
-# Distributed under the terms of the GNU General Public License v2 |
304 |
-# $Id$ |
305 |
- |
306 |
-EAPI=5 |
307 |
- |
308 |
-PYTHON_COMPAT=( python2_7 ) |
309 |
-PYTHON_REQ_USE="threads,xml" |
310 |
- |
311 |
-inherit eutils fdo-mime linux-info python-single-r1 udev autotools toolchain-funcs |
312 |
- |
313 |
-DESCRIPTION="HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools" |
314 |
-HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
315 |
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz |
316 |
- https://dev.gentoo.org/~billie/distfiles/${PN}-3.15.6-patches-1.tar.xz" |
317 |
- |
318 |
-LICENSE="GPL-2" |
319 |
-SLOT="0" |
320 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
321 |
- |
322 |
-IUSE="doc fax +hpcups hpijs kde libnotify -libusb0 minimal parport policykit qt4 scanner snmp static-ppds X" |
323 |
- |
324 |
-COMMON_DEPEND=" |
325 |
- virtual/jpeg:0 |
326 |
- hpijs? ( |
327 |
- || ( >=net-print/cups-filters-1.0.43-r1[foomatic] >=net-print/foomatic-filters-3.0.20080507[cups] ) |
328 |
- ) |
329 |
- !minimal? ( |
330 |
- ${PYTHON_DEPS} |
331 |
- >=net-print/cups-1.4.0 |
332 |
- !libusb0? ( virtual/libusb:1 ) |
333 |
- libusb0? ( virtual/libusb:0 ) |
334 |
- scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) |
335 |
- fax? ( >=sys-apps/dbus-1.6.8-r1 ) |
336 |
- snmp? ( |
337 |
- net-analyzer/net-snmp |
338 |
- dev-libs/openssl:0 |
339 |
- ) |
340 |
- )" |
341 |
- |
342 |
-DEPEND="${COMMON_DEPEND} |
343 |
- virtual/pkgconfig" |
344 |
- |
345 |
-RDEPEND="${COMMON_DEPEND} |
346 |
- >=app-text/ghostscript-gpl-8.71-r3 |
347 |
- policykit? ( |
348 |
- sys-auth/polkit |
349 |
- ) |
350 |
- !minimal? ( |
351 |
- >=dev-python/dbus-python-1.1.1-r1[${PYTHON_USEDEP}] |
352 |
- >=dev-python/pygobject-2.28.6-r53:2[${PYTHON_USEDEP}] |
353 |
- kernel_linux? ( virtual/udev ) |
354 |
- scanner? ( |
355 |
- >=dev-python/reportlab-2.6[${PYTHON_USEDEP}] |
356 |
- >=virtual/python-imaging-1[${PYTHON_USEDEP}] |
357 |
- X? ( || ( |
358 |
- kde? ( kde-misc/skanlite ) |
359 |
- media-gfx/xsane |
360 |
- media-gfx/sane-frontends |
361 |
- ) ) |
362 |
- ) |
363 |
- fax? ( |
364 |
- >=dev-python/reportlab-2.6[${PYTHON_USEDEP}] |
365 |
- ) |
366 |
- qt4? ( |
367 |
- >=dev-python/PyQt4-4.9.6-r2[dbus,X,${PYTHON_USEDEP}] |
368 |
- libnotify? ( |
369 |
- >=dev-python/notify-python-0.1.1-r3[${PYTHON_USEDEP}] |
370 |
- ) |
371 |
- ) |
372 |
- )" |
373 |
- |
374 |
-REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )" |
375 |
- |
376 |
-CONFIG_CHECK="~PARPORT ~PPDEV" |
377 |
-ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." |
378 |
- |
379 |
-pkg_setup() { |
380 |
- use !minimal && python-single-r1_pkg_setup |
381 |
- |
382 |
- ! use qt4 && ewarn "You need USE=qt4 for the hplip GUI." |
383 |
- |
384 |
- use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
385 |
- |
386 |
- if ! use hpcups && ! use hpijs ; then |
387 |
- ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
388 |
- ewarn "which is probably not what you want." |
389 |
- ewarn "You will almost certainly not be able to print." |
390 |
- fi |
391 |
- |
392 |
- if use minimal ; then |
393 |
- ewarn "Installing driver portions only, make sure you know what you are doing." |
394 |
- ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver" |
395 |
- ewarn "is installed. If both USE flags are set hpijs overrides hpcups." |
396 |
- else |
397 |
- use parport && linux-info_pkg_setup |
398 |
- fi |
399 |
-} |
400 |
- |
401 |
-src_prepare() { |
402 |
- if use !minimal ; then |
403 |
- python_export EPYTHON PYTHON |
404 |
- python_fix_shebang . |
405 |
- fi |
406 |
- |
407 |
- EPATCH_SUFFIX="patch" \ |
408 |
- EPATCH_FORCE="yes" \ |
409 |
- epatch "${WORKDIR}" |
410 |
- |
411 |
- # Make desktop files follow the specification |
412 |
- # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
413 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
414 |
- sed -i -e '/^Categories=/s/Application;//' \ |
415 |
- -e '/^Encoding=.*/d' hplip.desktop.in || die |
416 |
- sed -i -e '/^Categories=/s/Application;//' \ |
417 |
- -e '/^Version=.*/d' \ |
418 |
- -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
419 |
- |
420 |
- # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
421 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
422 |
- # https://bugs.launchpad.net/hplip/+bug/500086 |
423 |
- local udevdir=$(get_udevdir) |
424 |
- sed -i -e "s|/etc/udev|${udevdir}|g" \ |
425 |
- $(find . -type f -exec grep -l /etc/udev {} +) || die |
426 |
- |
427 |
- # Force recognition of Gentoo distro by hp-check |
428 |
- sed -i \ |
429 |
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
430 |
- installer/core_install.py || die |
431 |
- |
432 |
- # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
433 |
- # The hpcups driver does not use foomatic-rip |
434 |
- local i |
435 |
- for i in ppd/hpijs/*.ppd.gz ; do |
436 |
- rm -f ${i}.temp || die |
437 |
- gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
438 |
- gzip > ${i}.temp || die |
439 |
- mv ${i}.temp ${i} || die |
440 |
- done |
441 |
- |
442 |
- eautoreconf |
443 |
-} |
444 |
- |
445 |
-src_configure() { |
446 |
- local myconf drv_build minimal_build |
447 |
- |
448 |
- if use fax || use qt4 ; then |
449 |
- myconf="${myconf} --enable-dbus-build" |
450 |
- else |
451 |
- myconf="${myconf} --disable-dbus-build" |
452 |
- fi |
453 |
- |
454 |
- if use libusb0 ; then |
455 |
- myconf="${myconf} --enable-libusb01_build" |
456 |
- else |
457 |
- myconf="${myconf} --disable-libusb01_build" |
458 |
- fi |
459 |
- |
460 |
- if use hpcups ; then |
461 |
- drv_build="$(use_enable hpcups hpcups-install)" |
462 |
- if use static-ppds ; then |
463 |
- drv_build="${drv_build} --enable-cups-ppd-install" |
464 |
- drv_build="${drv_build} --disable-cups-drv-install" |
465 |
- else |
466 |
- drv_build="${drv_build} --enable-cups-drv-install" |
467 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
468 |
- fi |
469 |
- else |
470 |
- drv_build="--disable-hpcups-install" |
471 |
- drv_build="${drv_build} --disable-cups-drv-install" |
472 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
473 |
- fi |
474 |
- |
475 |
- if use hpijs ; then |
476 |
- drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
477 |
- if use static-ppds ; then |
478 |
- drv_build="${drv_build} --enable-foomatic-ppd-install" |
479 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
480 |
- else |
481 |
- drv_build="${drv_build} --enable-foomatic-drv-install" |
482 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
483 |
- fi |
484 |
- else |
485 |
- drv_build="${drv_build} --disable-hpijs-install" |
486 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
487 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
488 |
- fi |
489 |
- |
490 |
- if use minimal ; then |
491 |
- if use hpijs ; then |
492 |
- minimal_build="--enable-hpijs-only-build" |
493 |
- else |
494 |
- minimal_build="--disable-hpijs-only-build" |
495 |
- fi |
496 |
- if use hpcups ; then |
497 |
- minimal_build="${minimal_build} --enable-hpcups-only-build" |
498 |
- else |
499 |
- minimal_build="${minimal_build} --disable-hpcups-only-build" |
500 |
- fi |
501 |
- fi |
502 |
- |
503 |
- econf \ |
504 |
- --disable-cups11-build \ |
505 |
- --disable-lite-build \ |
506 |
- --disable-foomatic-rip-hplip-install \ |
507 |
- --disable-shadow-build \ |
508 |
- --disable-qt3 \ |
509 |
- --disable-udev_sysfs_rules \ |
510 |
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
511 |
- --with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
512 |
- --with-docdir=/usr/share/doc/${PF} \ |
513 |
- --with-htmldir=/usr/share/doc/${PF}/html \ |
514 |
- ${myconf} \ |
515 |
- ${drv_build} \ |
516 |
- ${minimal_build} \ |
517 |
- $(use_enable doc doc-build) \ |
518 |
- $(use_enable fax fax-build) \ |
519 |
- $(use_enable parport pp-build) \ |
520 |
- $(use_enable scanner scan-build) \ |
521 |
- $(use_enable snmp network-build) \ |
522 |
- $(use_enable qt4 gui-build) \ |
523 |
- $(use_enable qt4) \ |
524 |
- $(use_enable policykit) |
525 |
-} |
526 |
- |
527 |
-src_install() { |
528 |
- default |
529 |
- |
530 |
- # Installed by sane-backends |
531 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
532 |
- rm -f "${D}"/etc/sane.d/dll.conf || die |
533 |
- |
534 |
- rm -f "${D}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
535 |
- rmdir --ignore-fail-on-non-empty "${D}"/usr/share/doc/${PF}/ || die |
536 |
- |
537 |
- # Remove hal fdi files |
538 |
- rm -rf "${D}"/usr/share/hal || die |
539 |
- |
540 |
- prune_libtool_files --all |
541 |
- |
542 |
- if use !minimal ; then |
543 |
- python_export EPYTHON PYTHON |
544 |
- python_optimize "${D}"/usr/share/hplip |
545 |
- fi |
546 |
-} |
547 |
- |
548 |
-pkg_postinst() { |
549 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
550 |
- elog "For more information on setting up your printer please take" |
551 |
- elog "a look at the hplip section of the gentoo printing guide:" |
552 |
- elog "https://wiki.gentoo.org/wiki/Printing" |
553 |
- elog |
554 |
- elog "Any user who wants to print must be in the lp group." |
555 |
- elog |
556 |
- elog "Please note: Printers requiring a binary plugin are currently" |
557 |
- elog "not supported. All bugs regarding the plugin are most likely" |
558 |
- elog "closed. A bug about including the plugin package to gentoo is" |
559 |
- elog "available here: https://bugs.gentoo.org/352439" |
560 |
- fi |
561 |
-} |