1 |
commit: b3a95a2e12d2235f1605fc820f021c5a3e63312a |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 23 19:41:22 2015 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 23 19:41:22 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3a95a2e |
7 |
|
8 |
Version bump. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
net-print/hplip/Manifest | 1 + |
13 |
net-print/hplip/hplip-3.15.9.ebuild | 260 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 261 insertions(+) |
15 |
|
16 |
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest |
17 |
index 76c6981..50c26d9 100644 |
18 |
--- a/net-print/hplip/Manifest |
19 |
+++ b/net-print/hplip/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST hplip-3.14.10.tar.gz 21773429 SHA256 11b3cd8311dea6b22a4c80be1e5d021e84d15a |
21 |
DIST hplip-3.15.6-patches-1.tar.xz 8176 SHA256 3f42f72590966f49788ae620948dd3fe206c914d2d4a8d21aaaa86ef5f8b4645 SHA512 d9a35c594f087508a58d07b7c9f47e7bfb280ad66533481b069065cfbdc1927d56d50ab8b50d256bba1bd369fecc6c647bdae7a56a7f0e9edd74da8377dd22f4 WHIRLPOOL f3e0eb720ba14d596f68f106b71c7bd225dfe753cdd56857aa8d2600a72517384ad1a0cbfec7b3ac60922d682bd77a7f3ea2b44db6cdebacee820ebcfbcfc232 |
22 |
DIST hplip-3.15.6.tar.gz 21956752 SHA256 30c513ee65aa5b342d8074ff89439c0827c35191683727335738d8bc0f9776c9 SHA512 97abde02c588563b77bd1eca73e1864eb6bda218fe9e7b77396ecc461ea884d94b5757c01486c81177c354e1aeec73eae0620d3a06d7b42d0ad2f62cb91334d3 WHIRLPOOL 12c72f36d0abbe73a0b4c489d783a9e11bbf33bfe15575a40db37a598edf34f9f8ccc4b5dc1aadbf7f308311decf19ca92af6192094c6d8e0c40c1a9d1b6c464 |
23 |
DIST hplip-3.15.7.tar.gz 21979938 SHA256 d310903048f3600f93422e5a8c39ddd682511e0849cd9abc5e943f9a10bdd49d SHA512 45458b74ec496816292c40a9c1d5aed4a288f84be62e79378e701fff5fb1cb55cc77e8415884b824602ec6af8d1155b7dc288ef7382a2e4d96b337520d541a1c WHIRLPOOL 9cf840f79a63877e8fb36ddd51681e1473450c81bd46263272037682519e3ddfdfffc79ac86a60212d46ae61778fac118a9e5576bbf02892c46eba645b960f00 |
24 |
+DIST hplip-3.15.9.tar.gz 22027325 SHA256 a1f58fe8707373c193728a7fd826523e99c30e3ca7f660faa75531acdff89d6d SHA512 4a33adff226cbcd0c36963a33117eef6877dbfead9514d6095a4f5a1eca3e46e81ee162279b7808c3e1fb24e92dab8edaf945eea351d9b85c8f891b7379d13fc WHIRLPOOL 8e2012d5543b0d11389bfd6c629671bec85282223ef4d1f921972af1071d770c825997fc0938cb47299f797d1f5f58dc270bc9220693e48be7abf6c15591cefb |
25 |
|
26 |
diff --git a/net-print/hplip/hplip-3.15.9.ebuild b/net-print/hplip/hplip-3.15.9.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..a320384 |
29 |
--- /dev/null |
30 |
+++ b/net-print/hplip/hplip-3.15.9.ebuild |
31 |
@@ -0,0 +1,260 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+PYTHON_REQ_USE="threads,xml" |
40 |
+ |
41 |
+inherit eutils fdo-mime linux-info python-single-r1 udev autotools toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools" |
44 |
+HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
45 |
+SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz |
46 |
+ https://dev.gentoo.org/~billie/distfiles/${PN}-3.15.6-patches-1.tar.xz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
51 |
+ |
52 |
+IUSE="doc fax +hpcups hpijs kde libnotify -libusb0 minimal parport policykit qt4 scanner snmp static-ppds X" |
53 |
+ |
54 |
+COMMON_DEPEND=" |
55 |
+ virtual/jpeg:0 |
56 |
+ hpijs? ( |
57 |
+ || ( >=net-print/cups-filters-1.0.43-r1[foomatic] >=net-print/foomatic-filters-3.0.20080507[cups] ) |
58 |
+ ) |
59 |
+ !minimal? ( |
60 |
+ ${PYTHON_DEPS} |
61 |
+ >=net-print/cups-1.4.0 |
62 |
+ !libusb0? ( virtual/libusb:1 ) |
63 |
+ libusb0? ( virtual/libusb:0 ) |
64 |
+ scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) |
65 |
+ fax? ( >=sys-apps/dbus-1.6.8-r1 ) |
66 |
+ snmp? ( |
67 |
+ net-analyzer/net-snmp |
68 |
+ dev-libs/openssl:0 |
69 |
+ ) |
70 |
+ )" |
71 |
+ |
72 |
+DEPEND="${COMMON_DEPEND} |
73 |
+ virtual/pkgconfig" |
74 |
+ |
75 |
+RDEPEND="${COMMON_DEPEND} |
76 |
+ >=app-text/ghostscript-gpl-8.71-r3 |
77 |
+ policykit? ( |
78 |
+ sys-auth/polkit |
79 |
+ ) |
80 |
+ !minimal? ( |
81 |
+ >=dev-python/dbus-python-1.1.1-r1[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/pygobject-2.28.6-r53:2[${PYTHON_USEDEP}] |
83 |
+ kernel_linux? ( virtual/udev ) |
84 |
+ scanner? ( |
85 |
+ >=dev-python/reportlab-2.6[${PYTHON_USEDEP}] |
86 |
+ >=virtual/python-imaging-1[${PYTHON_USEDEP}] |
87 |
+ X? ( || ( |
88 |
+ kde? ( kde-misc/skanlite ) |
89 |
+ media-gfx/xsane |
90 |
+ media-gfx/sane-frontends |
91 |
+ ) ) |
92 |
+ ) |
93 |
+ fax? ( |
94 |
+ >=dev-python/reportlab-2.6[${PYTHON_USEDEP}] |
95 |
+ ) |
96 |
+ qt4? ( |
97 |
+ >=dev-python/PyQt4-4.9.6-r2[dbus,X,${PYTHON_USEDEP}] |
98 |
+ libnotify? ( |
99 |
+ >=dev-python/notify-python-0.1.1-r3[${PYTHON_USEDEP}] |
100 |
+ ) |
101 |
+ ) |
102 |
+ )" |
103 |
+ |
104 |
+REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )" |
105 |
+ |
106 |
+CONFIG_CHECK="~PARPORT ~PPDEV" |
107 |
+ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." |
108 |
+ |
109 |
+pkg_setup() { |
110 |
+ use !minimal && python-single-r1_pkg_setup |
111 |
+ |
112 |
+ ! use qt4 && ewarn "You need USE=qt4 for the hplip GUI." |
113 |
+ |
114 |
+ use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
115 |
+ |
116 |
+ if ! use hpcups && ! use hpijs ; then |
117 |
+ ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
118 |
+ ewarn "which is probably not what you want." |
119 |
+ ewarn "You will almost certainly not be able to print." |
120 |
+ fi |
121 |
+ |
122 |
+ if use minimal ; then |
123 |
+ ewarn "Installing driver portions only, make sure you know what you are doing." |
124 |
+ ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver" |
125 |
+ ewarn "is installed. If both USE flags are set hpijs overrides hpcups." |
126 |
+ else |
127 |
+ use parport && linux-info_pkg_setup |
128 |
+ fi |
129 |
+} |
130 |
+ |
131 |
+src_prepare() { |
132 |
+ if use !minimal ; then |
133 |
+ python_export EPYTHON PYTHON |
134 |
+ python_fix_shebang . |
135 |
+ fi |
136 |
+ |
137 |
+ EPATCH_SUFFIX="patch" \ |
138 |
+ EPATCH_FORCE="yes" \ |
139 |
+ epatch "${WORKDIR}" |
140 |
+ |
141 |
+ # Make desktop files follow the specification |
142 |
+ # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
143 |
+ # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
144 |
+ sed -i -e '/^Categories=/s/Application;//' \ |
145 |
+ -e '/^Encoding=.*/d' hplip.desktop.in || die |
146 |
+ sed -i -e '/^Categories=/s/Application;//' \ |
147 |
+ -e '/^Version=.*/d' \ |
148 |
+ -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
149 |
+ |
150 |
+ # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
151 |
+ # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
152 |
+ # https://bugs.launchpad.net/hplip/+bug/500086 |
153 |
+ local udevdir=$(get_udevdir) |
154 |
+ sed -i -e "s|/etc/udev|${udevdir}|g" \ |
155 |
+ $(find . -type f -exec grep -l /etc/udev {} +) || die |
156 |
+ |
157 |
+ # Force recognition of Gentoo distro by hp-check |
158 |
+ sed -i \ |
159 |
+ -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
160 |
+ installer/core_install.py || die |
161 |
+ |
162 |
+ # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
163 |
+ # The hpcups driver does not use foomatic-rip |
164 |
+ local i |
165 |
+ for i in ppd/hpijs/*.ppd.gz ; do |
166 |
+ rm -f ${i}.temp || die |
167 |
+ gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
168 |
+ gzip > ${i}.temp || die |
169 |
+ mv ${i}.temp ${i} || die |
170 |
+ done |
171 |
+ |
172 |
+ eautoreconf |
173 |
+} |
174 |
+ |
175 |
+src_configure() { |
176 |
+ local myconf drv_build minimal_build |
177 |
+ |
178 |
+ if use fax || use qt4 ; then |
179 |
+ myconf="${myconf} --enable-dbus-build" |
180 |
+ else |
181 |
+ myconf="${myconf} --disable-dbus-build" |
182 |
+ fi |
183 |
+ |
184 |
+ if use libusb0 ; then |
185 |
+ myconf="${myconf} --enable-libusb01_build" |
186 |
+ else |
187 |
+ myconf="${myconf} --disable-libusb01_build" |
188 |
+ fi |
189 |
+ |
190 |
+ if use hpcups ; then |
191 |
+ drv_build="$(use_enable hpcups hpcups-install)" |
192 |
+ if use static-ppds ; then |
193 |
+ drv_build="${drv_build} --enable-cups-ppd-install" |
194 |
+ drv_build="${drv_build} --disable-cups-drv-install" |
195 |
+ else |
196 |
+ drv_build="${drv_build} --enable-cups-drv-install" |
197 |
+ drv_build="${drv_build} --disable-cups-ppd-install" |
198 |
+ fi |
199 |
+ else |
200 |
+ drv_build="--disable-hpcups-install" |
201 |
+ drv_build="${drv_build} --disable-cups-drv-install" |
202 |
+ drv_build="${drv_build} --disable-cups-ppd-install" |
203 |
+ fi |
204 |
+ |
205 |
+ if use hpijs ; then |
206 |
+ drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
207 |
+ if use static-ppds ; then |
208 |
+ drv_build="${drv_build} --enable-foomatic-ppd-install" |
209 |
+ drv_build="${drv_build} --disable-foomatic-drv-install" |
210 |
+ else |
211 |
+ drv_build="${drv_build} --enable-foomatic-drv-install" |
212 |
+ drv_build="${drv_build} --disable-foomatic-ppd-install" |
213 |
+ fi |
214 |
+ else |
215 |
+ drv_build="${drv_build} --disable-hpijs-install" |
216 |
+ drv_build="${drv_build} --disable-foomatic-drv-install" |
217 |
+ drv_build="${drv_build} --disable-foomatic-ppd-install" |
218 |
+ fi |
219 |
+ |
220 |
+ if use minimal ; then |
221 |
+ if use hpijs ; then |
222 |
+ minimal_build="--enable-hpijs-only-build" |
223 |
+ else |
224 |
+ minimal_build="--disable-hpijs-only-build" |
225 |
+ fi |
226 |
+ if use hpcups ; then |
227 |
+ minimal_build="${minimal_build} --enable-hpcups-only-build" |
228 |
+ else |
229 |
+ minimal_build="${minimal_build} --disable-hpcups-only-build" |
230 |
+ fi |
231 |
+ fi |
232 |
+ |
233 |
+ econf \ |
234 |
+ --disable-cups11-build \ |
235 |
+ --disable-lite-build \ |
236 |
+ --disable-foomatic-rip-hplip-install \ |
237 |
+ --disable-shadow-build \ |
238 |
+ --disable-qt3 \ |
239 |
+ --disable-udev_sysfs_rules \ |
240 |
+ --with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
241 |
+ --with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
242 |
+ --with-docdir=/usr/share/doc/${PF} \ |
243 |
+ --with-htmldir=/usr/share/doc/${PF}/html \ |
244 |
+ ${myconf} \ |
245 |
+ ${drv_build} \ |
246 |
+ ${minimal_build} \ |
247 |
+ $(use_enable doc doc-build) \ |
248 |
+ $(use_enable fax fax-build) \ |
249 |
+ $(use_enable parport pp-build) \ |
250 |
+ $(use_enable scanner scan-build) \ |
251 |
+ $(use_enable snmp network-build) \ |
252 |
+ $(use_enable qt4 gui-build) \ |
253 |
+ $(use_enable qt4) \ |
254 |
+ $(use_enable policykit) |
255 |
+} |
256 |
+ |
257 |
+src_install() { |
258 |
+ default |
259 |
+ |
260 |
+ # Installed by sane-backends |
261 |
+ # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
262 |
+ rm -f "${D}"/etc/sane.d/dll.conf || die |
263 |
+ |
264 |
+ rm -f "${D}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
265 |
+ rmdir --ignore-fail-on-non-empty "${D}"/usr/share/doc/${PF}/ || die |
266 |
+ |
267 |
+ # Remove hal fdi files |
268 |
+ rm -rf "${D}"/usr/share/hal || die |
269 |
+ |
270 |
+ prune_libtool_files --all |
271 |
+ |
272 |
+ if use !minimal ; then |
273 |
+ python_export EPYTHON PYTHON |
274 |
+ python_optimize "${D}"/usr/share/hplip |
275 |
+ fi |
276 |
+} |
277 |
+ |
278 |
+pkg_postinst() { |
279 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
280 |
+ elog "For more information on setting up your printer please take" |
281 |
+ elog "a look at the hplip section of the gentoo printing guide:" |
282 |
+ elog "https://wiki.gentoo.org/wiki/Printing" |
283 |
+ elog |
284 |
+ elog "Any user who wants to print must be in the lp group." |
285 |
+ elog |
286 |
+ elog "Please note: Printers requiring a binary plugin are currently" |
287 |
+ elog "not supported. All bugs regarding the plugin are most likely" |
288 |
+ elog "closed. A bug about including the plugin package to gentoo is" |
289 |
+ elog "available here: https://bugs.gentoo.org/352439" |
290 |
+ fi |
291 |
+} |