summaryrefslogtreecommitdiff
path: root/net-print
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-29 11:22:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-10-29 11:22:34 +0000
commitbd7908c6630f38067350d396ac5d18c3cc2434a0 (patch)
tree3559b3e11424f5529527f2474d8a977a91ee3389 /net-print
parent8b2628ad8526c806375e7b157889e4274b70248b (diff)
gentoo resync : 29.10.2017
Diffstat (limited to 'net-print')
-rw-r--r--net-print/cups-filters/Manifest2
-rw-r--r--net-print/cups-filters/cups-filters-1.16.4.ebuild2
-rw-r--r--net-print/hplip-plugin/Manifest2
-rw-r--r--net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild70
-rw-r--r--net-print/hplip/Manifest2
-rw-r--r--net-print/hplip/hplip-3.17.10.ebuild254
6 files changed, 330 insertions, 2 deletions
diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest
index 0d560953a895..a9dea802cd2f 100644
--- a/net-print/cups-filters/Manifest
+++ b/net-print/cups-filters/Manifest
@@ -4,7 +4,7 @@ DIST cups-filters-1.16.4.tar.xz 1440964 SHA256 2642c6a3cbf10a38d91f20b7b292583d1
DIST cups-filters-1.17.8.tar.xz 1455096 SHA256 9acefd72f8e6a6e5fb6e80d37aad8c712c326bf484afb735e8ff7d7b86975870 SHA512 01f4499fb1db456a1fb11b8e39b5de273229c7aa2f87d079e237501ccd70bf637ca5e15d19fb9f7930be700ab6958e1a597bda8d0970260b5e7577eb5447f797 WHIRLPOOL 2bfd485b053b33882cff8cff27b7db62a903be30f4597324326b8cf70d1e3ce75b1ee5c1712099ced498fb1267274032f20c85dddac0d4033dc98dfc34f435ff
DIST cups-filters-1.17.9.tar.xz 1454068 SHA256 98ae3f8c8309ea950144e582d252e65f4636e8812832a982edd0ab83eddef544 SHA512 811d2671c660a2129c207d5d8daaa576b027ba14ac4cf4753d0e8c1190866a684e284f1e7439b864aaab332e429befbc13c567bf6c9fc1a502fe2cd7d11e5ed4 WHIRLPOOL 0b838e546bc505353a7e6294b536ddd3a68b767fa63495f289faa96f9196b2b345a75e611cf082d3c45976658be8eaad60ea5a11d57f7bff9f826b6f3a1835d7
EBUILD cups-filters-1.13.5.ebuild 3277 SHA256 a33ffe542c3fb84f9e652262d1fc366fc8694f23facd116d7f0c2777594d1e60 SHA512 0a09a543209e460550b2fce7de17453c63c84a3b7e314a0ae82c85760f0b0dbe12b5768381466a5be4fa45af0f5fcaf3723b0d13a818d9ad96473d2e7a20b87b WHIRLPOOL 4f500493906d1b2730272aef6879337786082fb8bd964c5e60469a972557aa6480c980660e9d2588231d88bfebd2bd389d999016c1bf3327e1c9be6ec5422c0e
-EBUILD cups-filters-1.16.4.ebuild 3433 SHA256 b2371c3fe8ac0720f348a426684bbb7dd9125d4523fff77ac52f1fd4c6e0910b SHA512 8e0328861fb7484064d00ea664fda902e0fd255a6c51ff43f57267fa84e08bdb9bf5c6a274505ddab3717022dcf67030a6c97e43a205b56bbcc54eb876380603 WHIRLPOOL 41dfcd77134bd89b1597791b5049fa935cb748035a7ebcbbbabc596bab6c290126f36f2a7a5627399de1a806daf4175f9a494d7e839d35544e5f86fc9c875fef
+EBUILD cups-filters-1.16.4.ebuild 3432 SHA256 d3bf3ba9c13422b26ae1136c1f32e74750f440895c5b38eb8c3186b48dd8b5eb SHA512 4a69c596427cbca25b3549aeb2fa91733065f1fd7a30d236234633a9955998147614d53b2e7e8044c034f297b292a67d83ebdba603079223f4f8352b4d4c3049 WHIRLPOOL 23164ae3c382756ae623e084e8bd13df79434824ea40dd55e406d39d6667b2bd22a2803c8875e72441bd517f3a63c8915fead9d573015c9d230ccc4a6ede83d1
EBUILD cups-filters-1.17.8.ebuild 3504 SHA256 6e8abc343b1ab58b8b5489038e2bcb7fffbe9efddb1e50eb0c80e8041911b536 SHA512 4eeff094b85dc861d817a58211fed3b812b9e8b7d73c2ffb2dd2245cfa53e325c0f8d7844b20580331f1d72c24f7d2e5bc2bb44e4385a83f7e2b466e30268a02 WHIRLPOOL d71a7b303a8e01a3f24f6222cfd9587b3ac0356b7323363b0fc713040644df7980af01f6fe6341a3fae86ec758530e78eb42e8ec9ccaedb85f77bf374dfbf18a
EBUILD cups-filters-1.17.9.ebuild 3504 SHA256 6e8abc343b1ab58b8b5489038e2bcb7fffbe9efddb1e50eb0c80e8041911b536 SHA512 4eeff094b85dc861d817a58211fed3b812b9e8b7d73c2ffb2dd2245cfa53e325c0f8d7844b20580331f1d72c24f7d2e5bc2bb44e4385a83f7e2b466e30268a02 WHIRLPOOL d71a7b303a8e01a3f24f6222cfd9587b3ac0356b7323363b0fc713040644df7980af01f6fe6341a3fae86ec758530e78eb42e8ec9ccaedb85f77bf374dfbf18a
EBUILD cups-filters-9999.ebuild 3504 SHA256 6e8abc343b1ab58b8b5489038e2bcb7fffbe9efddb1e50eb0c80e8041911b536 SHA512 4eeff094b85dc861d817a58211fed3b812b9e8b7d73c2ffb2dd2245cfa53e325c0f8d7844b20580331f1d72c24f7d2e5bc2bb44e4385a83f7e2b466e30268a02 WHIRLPOOL d71a7b303a8e01a3f24f6222cfd9587b3ac0356b7323363b0fc713040644df7980af01f6fe6341a3fae86ec758530e78eb42e8ec9ccaedb85f77bf374dfbf18a
diff --git a/net-print/cups-filters/cups-filters-1.16.4.ebuild b/net-print/cups-filters/cups-filters-1.16.4.ebuild
index b04d4aab8ff3..47c50dafb04b 100644
--- a/net-print/cups-filters/cups-filters-1.16.4.ebuild
+++ b/net-print/cups-filters/cups-filters-1.16.4.ebuild
@@ -12,7 +12,7 @@ if [[ "${PV}" == "9999" ]] ; then
EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters"
else
SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
- KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-fbsd ~m68k-mint"
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-fbsd ~m68k-mint"
fi
DESCRIPTION="Cups filters"
HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters"
diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest
index 48592fab1b24..4957d3f2d433 100644
--- a/net-print/hplip-plugin/Manifest
+++ b/net-print/hplip-plugin/Manifest
@@ -1,6 +1,8 @@
DIST hplip-3.16.3-plugin.run 2084271 SHA256 b7edef2a1c5c0a5e001deb4a18c0ef7202e653596e97144b8908ae093818070f SHA512 2ae8aeb40c2604a2c6b9725700f9addf7a82e819d603631158a5d5feac931248e53e7533178100df1fc12b0dc2340cb3ae0d85f145cd023a311f77bbe67e7c7f WHIRLPOOL 928117f862030eca9c3e5813eb8c4db66570923695b0c7af17df1992f339d2478f42af67ca0e0eb8cfa1d7425b522082fde3b8c829c3f5167e1ec503c95a986b
+DIST hplip-3.17.10-plugin.run 2062947 SHA256 2fd26f6d5b437a4f1aa9f560e816ce094aea73becdf2f2b976ef46406d1b551d SHA512 98eef413b122527c4a7860b621baf11c04ec9d7f4e43ce4f36e7822a633c64b3d98cbc86cd7d305c74d9a49a4159ebd7280d652e1ba430cad4cc70f66d23ee07 WHIRLPOOL d087e7f857f8bc0a7a0b4f44f07ca15feaff6847cd719a2cb48240dd3aca7df93932eef7a849598ad313b4373e9f50b61bf3c0846c64d1002f1cfd9470a27717
DIST hplip-3.17.9-plugin.run 2059585 SHA256 98f717266340baa15e0385dc4928cc9c127a9403b72749f4899657cef8dfe883 SHA512 a7a9ee8b7edda3641b5c3aa403570aad72ce9cd42cdd4c64904a0be409cefa838712390c7f535482028ac2d494c711baef77f2f601835b01591fa673272c01ba WHIRLPOOL e6615652382d11ddbe646b793d1f5aff61872ab4f30925855be66faa4d8ebace113a43e369e1b4d199bb65d3bd0315de32cd49d264c52f6d47e7f17990f0263f
EBUILD hplip-plugin-3.16.3.ebuild 1503 SHA256 feda237c7ac2e7f46407495a4800fb73ab098573fbcff03ee46944ad1bcb2e0c SHA512 1680865ff9741ffa1ca1bb0e6b55ad3b8427c3c0766a717dad082dbceee5f39545b5f7d9bbe28121579c946a260eb49799f720ea0005510e3908593b8904a2c3 WHIRLPOOL d5a999891f1c29b131a95c007e465300efe6427d69548896393c9e4affb8aaf806605dafc9a19b7571e2a5e274226dc3cae8c667741dee39cd4767ea85b86d99
+EBUILD hplip-plugin-3.17.10.ebuild 1623 SHA256 9172560f387cdda70faee2aad869d14eb7d2bc2d9fbdacae628c18c92931efa0 SHA512 7f8a8b4fe9845ad9a43669aaf2d5332053335db6a17e9d0eda8f881dcd53cceed837d1ffd4da273db461cd06d690a58fb080a20c8a87ba6061cc1ad1bd5b9060 WHIRLPOOL 8a39b66de7735fea710e8ece9e93b55198caeec1cf02a2e81641cc226b5531086969e318483534754e62f79a1f48462fcce76b78c8476047d860ffa327d7b703
EBUILD hplip-plugin-3.17.9.ebuild 1623 SHA256 9172560f387cdda70faee2aad869d14eb7d2bc2d9fbdacae628c18c92931efa0 SHA512 7f8a8b4fe9845ad9a43669aaf2d5332053335db6a17e9d0eda8f881dcd53cceed837d1ffd4da273db461cd06d690a58fb080a20c8a87ba6061cc1ad1bd5b9060 WHIRLPOOL 8a39b66de7735fea710e8ece9e93b55198caeec1cf02a2e81641cc226b5531086969e318483534754e62f79a1f48462fcce76b78c8476047d860ffa327d7b703
MISC ChangeLog 4207 SHA256 dba1c3d48453b6f15d38c4967ee9b15ffe22850630e584cafa36ea12da4a5e71 SHA512 4be1d86940dea35e1c89cd2c3067ad0c9c03b35b6df0cc7df0a243b0f389ac24b120057a8b9723c2855e6b8049c17eb8c9eef3727c9a55b598a24aaa720a1564 WHIRLPOOL 50e03b23716cbc460dfb7740681c021579e03f74cbf8ff73ba51028573514e681e7a15ed75e4f01df11badd9e507683183869c53113702126b916361fcad65b1
MISC metadata.xml 334 SHA256 082d9160d1818ef495b10b1a852139c7204a5b902b2a6eda23263084d158620a SHA512 105a5442ba05b94b2886f9075bd89268d4f2e0567ad69a637a1bd7d7d0eafdc280dfdb198aab5d72525300a9be0d4ad78f6bfe6398c896cc9de0f591651d102c WHIRLPOOL 4097a8bf70b145b21a6b6306895a5262a4e59443bebc93234114b171555756afe9e0cf53efc036c53b849426fdb2086759b50533219278034abc3e75f9f329c1
diff --git a/net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild b/net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild
new file mode 100644
index 000000000000..8617df53c8dc
--- /dev/null
+++ b/net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit udev unpacker
+
+DESCRIPTION="Proprietary plugins and firmware for HPLIP"
+HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
+#SRC_URI="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run"
+SRC_URI="http://hplipopensource.com/hplip-web/plugin/hplip-${PV}-plugin.run"
+
+LICENSE="hplip-plugin"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ ~net-print/hplip-${PV}
+ virtual/udev
+"
+DEPEND=""
+
+S=${WORKDIR}
+
+HPLIP_HOME=/usr/share/hplip
+
+# Binary prebuilt package
+QA_PRESTRIPPED="
+ /usr/share/hplip/fax/plugins/fax_marvell.so
+ /usr/share/hplip/prnt/plugins/hbpl1.so
+ /usr/share/hplip/prnt/plugins/lj.so
+ /usr/share/hplip/scan/plugins/bb_escl.so
+ /usr/share/hplip/scan/plugins/bb_marvell.so
+ /usr/share/hplip/scan/plugins/bb_soapht.so
+ /usr/share/hplip/scan/plugins/bb_soap.so
+"
+
+# License does not allow us to redistribute the "source" package
+RESTRICT="mirror"
+
+src_unpack() {
+ unpack_makeself "hplip-${PV}-plugin.run"
+}
+
+src_install() {
+ local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32')
+
+ insinto "${HPLIP_HOME}"/data/firmware
+ doins *.fw.gz
+
+ for plugin in *-${hplip_arch}.so; do
+ local plugin_type=prnt
+ case "${plugin}" in
+ fax_*) plugin_type=fax ;;
+ bb_*) plugin_type=scan ;;
+ esac
+
+ exeinto "${HPLIP_HOME}"/${plugin_type}/plugins
+ newexe ${plugin} ${plugin/-${hplip_arch}}
+ done
+
+ mkdir -p "${ED}/var/lib/hp/"
+ cat >> "${ED}/var/lib/hp/hplip.state" <<-_EOF_
+ [plugin]
+ installed = 1
+ eula = 1
+ version = ${PV}
+ _EOF_
+}
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest
index 67eb7f29c4ae..bbb4395314c8 100644
--- a/net-print/hplip/Manifest
+++ b/net-print/hplip/Manifest
@@ -1,8 +1,10 @@
DIST hplip-3.16.2-patches-1.tar.xz 8188 SHA256 8a9a78e0caac1731eae79f047a6054b411c237c579fdfd07bc59d435db708705 SHA512 7eb03c093cfb9ef6b9a980ef5520575310d080c45ed13191933a5facaf9bbb04b38c8381762a3ecd33884ad582830e61e17b6c17f2ed7cdf910670e05eed2510 WHIRLPOOL 6721eac17977485eae0cb22b1702d0479003e3639e806ecd3c5888f1b5015a0bf904512104ebefee4b3d5f64abebd0608090e00310ec8d5b48f210c7e4a95e4e
DIST hplip-3.16.3.tar.gz 22408596 SHA256 42d2302ee38bda41caa0f2f9524a91f531e3aa432814ffd45b3e5c396dc30194 SHA512 32d2f88c0983208e77592f73bf65cf2900cd6aa234d09220a18b45b5fc4bd0d10e9cfc8c7a10639e5a51ad5f5d0f8ed7bd477d08c86b89c633a1bbcd42682915 WHIRLPOOL b287ecf80c2e7b0da0de0afefcf60c507f9d42c74dbba1e745b4b43f253a5b0dedb6398a1f073e14d196296da47764e983138c0151e05bfc7a5dd416458662a0
+DIST hplip-3.17.10.tar.gz 23878364 SHA256 0f7344174672f63a98a22f3c109005b6eb89fe738b7d466316bf2c53d083476c SHA512 0c1c78730d269ec41f95bbde887a490aebb4c9c3dcb9784052a1c3b537c12093cbc426e1f79266c63dd5e7adecdda0735b9bf964ddc1307b2c6603f3fa0462a8 WHIRLPOOL d8bffafedcfa40686d4e076c9a74af461a0ea29fec2a2effb5324fba8e60d9c85b13a0e8f73bfaf014ccb7bf4eb4e0d1eeffcdecc0efc4d1f31dd065d4093090
DIST hplip-3.17.9-patches-1.tar.xz 8484 SHA256 2ec368039a59e375bebf565bd679dd3bedb1e0c1ecfc103c5dcf9bb2701ba9d7 SHA512 125f9cfd1c3cad662ce33954b8ab9ab1898368b449c4ad78dfe99f29de8025183773272b9865cd22b976a30c502e38254ce0ac59d685299dff7f9314927d546a WHIRLPOOL 2354bd3b158733b668c731ea3fd605170dd4cc0df5ffebc327a69ad33995ec02166d34897567ed69d608a62e97b33bd12fc0066acb6c302677cc68830a2661cf
DIST hplip-3.17.9.tar.gz 23862533 SHA256 b2aad842f51dae7da2dd08d09ce2c27bc5f73c82a560b9494dd33589b0948678 SHA512 25508b91723be9564b9a7e8093159507a1a01a9e50e9e801f452f71c28cce0bddee2f5bf796214fa5752de8d1799fc6fe102779dabae0dbcba1f4de6b207c095 WHIRLPOOL df3bd0a8c4af9e7bf2a4ee534b317e84d89707587f770ab0c6ae98ccd5bea50d8be704ed2f855c9f67af8cdd34afc2ab0b07bd150f8861fc4900aa471a85b6ee
EBUILD hplip-3.16.3.ebuild 7462 SHA256 b878478540933b2f1c3b855d2dd88dccd02d8f45559c55c0661a53e1d52f7729 SHA512 d85473a09df3afada1a1a45aae2490adfa7853a426e8f05f3b86db381c15cde6db952e22535241505932a1ed9187646a1bb89ce7ce96db6f2e6e49ee819e5ca3 WHIRLPOOL 2121b7385aaaee2dde3a24fb098669f78575eb829dcffa96bd7f07ec8875da68a0d1da119dc922ba0dcd287ba964c3d5de1cb43cfadbad1f713887c30d02e84c
+EBUILD hplip-3.17.10.ebuild 7400 SHA256 b18d117216f2fe51b0f8f3e22667835c001ad31d06019345637ced8d7aa80edc SHA512 237d4b6bb18c16a812d2fc100f71fc6a3848ff9e5077a5f7acd29cdb5e47f0f8bf5a175e045a10bfac0cf4e7fe4a59c0d7858dbe063740b1a308574a5404326e WHIRLPOOL b6fa6ae42f820ba8149205083e2ef18af471142d0adb3ffe4ad4df5f1ce8df4761f80f9bd68c52ee3c5fd354fb4c2fca9566b75a5195ac112e0dfad8a32d35a9
EBUILD hplip-3.17.9-r1.ebuild 7400 SHA256 b18d117216f2fe51b0f8f3e22667835c001ad31d06019345637ced8d7aa80edc SHA512 237d4b6bb18c16a812d2fc100f71fc6a3848ff9e5077a5f7acd29cdb5e47f0f8bf5a175e045a10bfac0cf4e7fe4a59c0d7858dbe063740b1a308574a5404326e WHIRLPOOL b6fa6ae42f820ba8149205083e2ef18af471142d0adb3ffe4ad4df5f1ce8df4761f80f9bd68c52ee3c5fd354fb4c2fca9566b75a5195ac112e0dfad8a32d35a9
MISC ChangeLog 10553 SHA256 478b5142e0cb6d90ed824076a36fc23072d79f259a51ee996c627ab5fe3db088 SHA512 d7dba727b6b20f1898f45d522825f2f0f290242c026380dfbd8f21c9fc13513325e5d068f8ea68966a2a2e5f177a72e356ce7b78f0d954988a72a4b1d45b4052 WHIRLPOOL 20517487b3fa070f441362ce9fce49adf6f747b5433f888b01dd5ff490f0ea9e6f54e389b4e85497cc70c2cb6f007be20326b73395a6a3ff1c6b11f3e89363e8
MISC ChangeLog-2015 54819 SHA256 554474d3a1d6d3526536b50eb23527cd6747f93ac62bc41609172c7786106c25 SHA512 575bbc609adada123e29a9f311603d8e9c277ef2ad288ff2f85e97e12214eea3ad4c4e18e8d82a6493d12365f3af865a43e7b69da5bdfa2879a11d58b4c079de WHIRLPOOL 7bfc750377d8f3777a212398bee212671b72676588a5b3423212c7f95f061ff07d4330187a6f1a3530df7aedcb6c0ab1f1702e742c87979ec143daad9c348626
diff --git a/net-print/hplip/hplip-3.17.10.ebuild b/net-print/hplip/hplip-3.17.10.ebuild
new file mode 100644
index 000000000000..12247e7fa678
--- /dev/null
+++ b/net-print/hplip/hplip-3.17.10.ebuild
@@ -0,0 +1,254 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE="threads,xml"
+
+inherit autotools linux-info python-single-r1 readme.gentoo-r1 udev
+
+DESCRIPTION="HP Linux Imaging and Printing - Print, scan, fax drivers and service tools"
+HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
+SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz
+ https://dev.gentoo.org/~billie/distfiles/${PN}-3.17.9-patches-1.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+IUSE="doc fax +hpcups hpijs kde libressl -libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X"
+
+# dependency on dev-python/notify-python dropped due to python 3 incompatibility
+# possible replacement notify2 (https://pypi.python.org/pypi/notify2/0.3) not in tree
+
+COMMON_DEPEND="
+ net-print/cups
+ virtual/jpeg:0
+ hpijs? ( net-print/cups-filters[foomatic] )
+ !minimal? (
+ ${PYTHON_DEPS}
+ sys-apps/dbus
+ !libusb0? ( virtual/libusb:1 )
+ libusb0? ( virtual/libusb:0 )
+ scanner? ( media-gfx/sane-backends )
+ snmp? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ net-analyzer/net-snmp
+ )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+"
+RDEPEND="${COMMON_DEPEND}
+ app-text/ghostscript-gpl
+ !minimal? (
+ >=dev-python/dbus-python-1.2.0-r1[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/pygobject:2[${PYTHON_USEDEP}]' 'python2*')
+ $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]' 'python3*')
+ fax? ( dev-python/reportlab[${PYTHON_USEDEP}] )
+ kernel_linux? ( virtual/udev )
+ qt5? ( >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_USEDEP}] )
+ scanner? (
+ >=dev-python/reportlab-3.2[${PYTHON_USEDEP}]
+ >=dev-python/pillow-3.1.1[${PYTHON_USEDEP}]
+ X? ( || (
+ kde? ( kde-misc/skanlite )
+ media-gfx/xsane
+ media-gfx/sane-frontends
+ ) )
+ )
+ )
+ policykit? ( sys-auth/polkit )
+"
+
+REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )"
+
+PATCHES=(
+ "${WORKDIR}/patches"
+)
+
+CONFIG_CHECK="~PARPORT ~PPDEV"
+ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)."
+
+#DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+For more information on setting up your printer please take
+a look at the hplip section of the gentoo printing guide:
+https://wiki.gentoo.org/wiki/Printing
+
+Any user who wants to print must be in the lp group.
+"
+
+pkg_setup() {
+ use !minimal && python-single-r1_pkg_setup
+
+ use scanner && ! use X && ewarn "You need USE=X for the scanner GUI."
+
+ if ! use hpcups && ! use hpijs ; then
+ ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver,"
+ ewarn "which is probably not what you want."
+ ewarn "You will almost certainly not be able to print."
+ fi
+
+ if use minimal ; then
+ ewarn "Installing driver portions only, make sure you know what you are doing."
+ ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver"
+ ewarn "is installed. If both USE flags are set hpijs overrides hpcups."
+ else
+ use parport && linux-info_pkg_setup
+ fi
+}
+
+src_prepare() {
+ default
+
+ if use !minimal ; then
+ python_export EPYTHON PYTHON
+ python_fix_shebang .
+ fi
+
+ # Make desktop files follow the specification
+ # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680
+ # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324
+ sed -i -e '/^Categories=/s/Application;//' \
+ -e '/^Encoding=.*/d' hplip.desktop.in || die
+ sed -i -e '/^Categories=/s/Application;//' \
+ -e '/^Version=.*/d' \
+ -e '/^Comment=.*/d' hplip-systray.desktop.in || die
+
+ # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725
+ # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847,
+ # https://bugs.launchpad.net/hplip/+bug/500086
+ local udevdir=$(get_udevdir)
+ sed -i -e "s|/etc/udev|${udevdir}|g" \
+ $(find . -type f -exec grep -l /etc/udev {} +) || die
+
+ # Force recognition of Gentoo distro by hp-check
+ sed -i \
+ -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
+ installer/core_install.py || die
+
+ # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
+ # The hpcups driver does not use foomatic-rip
+ local i
+ for i in ppd/hpijs/*.ppd.gz ; do
+ rm -f ${i}.temp || die
+ gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \
+ gzip > ${i}.temp || die
+ mv ${i}.temp ${i} || die
+ done
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf drv_build minimal_build
+
+ if use libusb0 ; then
+ myconf="${myconf} --enable-libusb01_build"
+ else
+ myconf="${myconf} --disable-libusb01_build"
+ fi
+
+ if use hpcups ; then
+ drv_build="$(use_enable hpcups hpcups-install)"
+ if use static-ppds ; then
+ drv_build="${drv_build} --enable-cups-ppd-install"
+ drv_build="${drv_build} --disable-cups-drv-install"
+ else
+ drv_build="${drv_build} --enable-cups-drv-install"
+ drv_build="${drv_build} --disable-cups-ppd-install"
+ fi
+ else
+ drv_build="--disable-hpcups-install"
+ drv_build="${drv_build} --disable-cups-drv-install"
+ drv_build="${drv_build} --disable-cups-ppd-install"
+ fi
+
+ if use hpijs ; then
+ drv_build="${drv_build} $(use_enable hpijs hpijs-install)"
+ if use static-ppds ; then
+ drv_build="${drv_build} --enable-foomatic-ppd-install"
+ drv_build="${drv_build} --disable-foomatic-drv-install"
+ else
+ drv_build="${drv_build} --enable-foomatic-drv-install"
+ drv_build="${drv_build} --disable-foomatic-ppd-install"
+ fi
+ else
+ drv_build="${drv_build} --disable-hpijs-install"
+ drv_build="${drv_build} --disable-foomatic-drv-install"
+ drv_build="${drv_build} --disable-foomatic-ppd-install"
+ fi
+
+ if use minimal ; then
+ if use hpijs ; then
+ minimal_build="--enable-hpijs-only-build"
+ else
+ minimal_build="--disable-hpijs-only-build"
+ fi
+ if use hpcups ; then
+ minimal_build="${minimal_build} --enable-hpcups-only-build"
+ else
+ minimal_build="${minimal_build} --disable-hpcups-only-build"
+ fi
+ fi
+
+ econf \
+ --disable-cups11-build \
+ --disable-lite-build \
+ --disable-foomatic-rip-hplip-install \
+ --disable-shadow-build \
+ --disable-qt3 \
+ --disable-qt4 \
+ --disable-udev_sysfs_rules \
+ --with-cupsbackenddir=$(cups-config --serverbin)/backend \
+ --with-cupsfilterdir=$(cups-config --serverbin)/filter \
+ --with-docdir=/usr/share/doc/${PF} \
+ --with-htmldir=/usr/share/doc/${PF}/html \
+ ${myconf} \
+ ${drv_build} \
+ ${minimal_build} \
+ $(use_enable doc doc-build) \
+ $(use_enable fax fax-build) \
+ $(use_enable !minimal gui-build) \
+ $(use_enable !minimal dbus-build) \
+ $(use_enable parport pp-build) \
+ $(use_enable policykit) \
+ $(use_enable qt5) \
+ $(use_enable scanner scan-build) \
+ $(use_enable snmp network-build)
+}
+
+src_install() {
+ # disable parallel install
+ # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018
+ emake -j1 DESTDIR="${D}" install
+ einstalldocs
+ # default
+
+ # Installed by sane-backends
+ # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023
+ rm -f "${ED%/}"/etc/sane.d/dll.conf || die
+
+ rm -f "${ED%/}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die
+ rmdir --ignore-fail-on-non-empty "${ED%/}"/usr/share/doc/${PF}/ || die
+
+ # Remove hal fdi files
+ rm -rf "${ED%/}"/usr/share/hal || die
+
+ find "${D}" -name '*.la' -delete || die
+
+ if use !minimal ; then
+ python_export EPYTHON PYTHON
+ python_optimize "${ED%/}"/usr/share/hplip
+ fi
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}