diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
commit | d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch) | |
tree | 4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /net-print | |
parent | e748ba9741f6540f4675c23e3e37b73e822c13a4 (diff) |
gentoo resync : 15.06.2021
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/Manifest.gz | bin | 6253 -> 6258 bytes | |||
-rw-r--r-- | net-print/cups-filters/Manifest | 2 | ||||
-rw-r--r-- | net-print/cups-filters/cups-filters-1.28.8.ebuild | 148 | ||||
-rw-r--r-- | net-print/cups/Manifest | 2 | ||||
-rw-r--r-- | net-print/cups/cups-2.3.3_p2.ebuild | 2 | ||||
-rw-r--r-- | net-print/gutenprint/Manifest | 2 | ||||
-rw-r--r-- | net-print/gutenprint/gutenprint-5.3.4-r1.ebuild | 83 | ||||
-rw-r--r-- | net-print/hplip/Manifest | 3 | ||||
-rw-r--r-- | net-print/hplip/hplip-3.21.4.ebuild | 288 |
9 files changed, 528 insertions, 2 deletions
diff --git a/net-print/Manifest.gz b/net-print/Manifest.gz Binary files differindex 010005dfba06..ed5d736b4b50 100644 --- a/net-print/Manifest.gz +++ b/net-print/Manifest.gz diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest index b64d425a0319..a80d792347b2 100644 --- a/net-print/cups-filters/Manifest +++ b/net-print/cups-filters/Manifest @@ -3,7 +3,9 @@ AUX cups-filters-1.27.4-make-missing-testfont-non-fatal.patch 510 BLAKE2B 9b48f8 AUX cups-filters-1.28.2-make-missing-testfont-non-fatal.patch 477 BLAKE2B 30e8fd049fb4d16439405aa052134d828a5f9e5e3f79c02e6121d3c15c5374c62d370fe88ab4b761e849ab48ecc0bdde97d36c6fd98056d0dc195464c7648a2d SHA512 797e8530f5a44b4e4975399076e4e1c537da968a9ed8272baaf1e457a025bc22478045e780208b1607dbcd4eb31b91ac605781cf6eae47ffcdd748e34d126327 DIST cups-filters-1.28.3.tar.xz 1501824 BLAKE2B b4f493681ac2a701648b3b9b071f4ebfb432dd4660b610579ff2ed6cba4f6cd4351d5a1f28f5c096b3ba20d9c45dc87837bf127b9bc98680a98dec58dd0a68ea SHA512 ac139ae7452342bd46e464bff3438d437f1c9a2e719a7b32b7abc22c2667acaa93dfb976decb277a02572e688ecd86289e01fca817bef93018dff2076fb2a30c DIST cups-filters-1.28.7.tar.xz 1503052 BLAKE2B b9d3280871faa79a7c277731bf6eb1eef161537829d4bc07ec36075ebc12a3617dce66994ed708991757ce7d78fc5ab010925a1d3d9811fd11cf1172f4786442 SHA512 fa94f51ca1c208dcacb1814d8b812c9a72dd09475b7cf836b02c72cb5e3290318f37e475ee3ae8d45351715c3a2ccc0df5ac51ae6fc11462f5acdfa303a04727 +DIST cups-filters-1.28.8.tar.xz 1502456 BLAKE2B 21dad6dc9a1d2f967f3938f2fc5e35eebadb67da8b526a9ea61599272bd3f87e8efff376661adc02b62b539798cbe46e0f7c5c25ba262da0561b53bbb3d08d5d SHA512 77b39ce2a30ad44d50aa58964b389fa5dd75b2b4307ccb25996050fd176e1e794ad0a66ddd4de76e95a671683c3bf448a4f471272c97a752f25ff6234f7d8511 EBUILD cups-filters-1.28.3.ebuild 3589 BLAKE2B cea462810ff0d46a9f9a56e71b101425f389fba43bd70fc0130b59ca9665996c26af9b0b8ca73f762360a00cb24e067ea3ffd1898f433e940d717a18695bbda5 SHA512 0f6530019fca4fa788394716135643869c2d3aa3b2425a5b3dde6a250b44fb348b3f398a8de367e48805d8a6a604bc7ecf12e9cb34e9ce289f33da942ebdfcc4 EBUILD cups-filters-1.28.7.ebuild 3589 BLAKE2B cea462810ff0d46a9f9a56e71b101425f389fba43bd70fc0130b59ca9665996c26af9b0b8ca73f762360a00cb24e067ea3ffd1898f433e940d717a18695bbda5 SHA512 0f6530019fca4fa788394716135643869c2d3aa3b2425a5b3dde6a250b44fb348b3f398a8de367e48805d8a6a604bc7ecf12e9cb34e9ce289f33da942ebdfcc4 +EBUILD cups-filters-1.28.8.ebuild 3597 BLAKE2B eab701365704a1ec5028b0a1104f3f42aa6bbae974ce8b16af901a41ee2d62ec1924f0ff730e2b72433671b4a1f79a1cc8f1828ccbae0137d81f74bfa679e0ad SHA512 2f6853a56107e804938af1df25312dcbf322c63c358ce9deff6d2d53f93da30f75ee6212042ccafbdd00d965a20a20a880fd96472fed0049ef1085f23eb88a4a EBUILD cups-filters-9999.ebuild 3526 BLAKE2B c3463e14abd6402155213d223b0c92396623041a4ca29b24d4f5b745836d2c906b168996f9772549766eef19fb915b063c9842eb02107d6b540479b51e9aabd6 SHA512 32dd5cc7eb3fa1fce473849c02adec4ad816a3aa05b59f7c613636fd0bf822469b071ddb3bc6ffbd714ca40fae4af4ce2696ae42157ec239e73474ce7c59e7b0 MISC metadata.xml 512 BLAKE2B 2dd3dbff375248f63add04f7cd136e0de7fbee885f359ee546de2060b4e0d965655e9c93b4f31c4cece89e1f750037766752f4b74d4f6216213e2dcd374e163f SHA512 9678f63f3ef2164ef837220914ce57111c118df556755e2c802d1476726312dc6d47baacc4d977e35e6a44ca1d5af8f0841a41323fdbd9a6471dea2c87103d32 diff --git a/net-print/cups-filters/cups-filters-1.28.8.ebuild b/net-print/cups-filters/cups-filters-1.28.8.ebuild new file mode 100644 index 000000000000..4c748c67fe65 --- /dev/null +++ b/net-print/cups-filters/cups-filters-1.28.8.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +GENTOO_DEPEND_ON_PERL=no + +inherit autotools perl-module systemd flag-o-matic + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/OpenPrinting/cups-filters.git" +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" +fi +DESCRIPTION="Cups filters" +HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters" + +LICENSE="MIT GPL-2" +SLOT="0" +IUSE="dbus +foomatic jpeg ldap pclm pdf perl png +postscript test tiff zeroconf" + +RESTRICT="!test? ( test )" + +RDEPEND=" + >=app-text/poppler-0.32:=[cxx,jpeg?,lcms,tiff?,utils] + >=app-text/qpdf-8.3.0:= + dev-libs/glib:2 + media-libs/fontconfig + media-libs/freetype:2 + media-libs/lcms:2 + >=net-print/cups-1.7.3 + !<=net-print/cups-1.5.9999 + sys-devel/bc + sys-libs/zlib + dbus? ( sys-apps/dbus ) + foomatic? ( !net-print/foomatic-filters ) + jpeg? ( virtual/jpeg:0 ) + ldap? ( net-nds/openldap ) + pdf? ( app-text/mupdf ) + perl? ( dev-lang/perl:= ) + png? ( media-libs/libpng:0= ) + postscript? ( >=app-text/ghostscript-gpl-9.09[cups] ) + tiff? ( media-libs/tiff:0 ) + zeroconf? ( net-dns/avahi[dbus] ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/gdbus-codegen + >=sys-devel/gettext-0.18.3 + virtual/pkgconfig + test? ( media-fonts/dejavu ) +" + +src_prepare() { + local need_eautoreconf= + + default + + if ! use test ; then + eapply "${FILESDIR}"/${PN}-1.28.2-make-missing-testfont-non-fatal.patch + need_eautoreconf=yes + elif [[ "${PV}" == "9999" ]] ; then + need_eautoreconf=yes + fi + + [[ -n ${need_eautoreconf} ]] && eautoreconf + + # Bug #626800 + append-cxxflags -std=c++11 +} + +src_configure() { + local myeconfargs=( + --enable-imagefilters + --localstatedir="${EPREFIX}"/var + --with-browseremoteprotocols=DNSSD,CUPS + --with-cups-rundir="${EPREFIX}"/run/cups + --with-fontdir="fonts/conf.avail" + --with-pdftops=pdftops + --with-rcdir=no + --without-php + --disable-static + $(use_enable dbus) + $(use_enable foomatic) + $(use_enable ldap) + $(use_enable pclm) + $(use_enable pdf mutool) + $(use_enable postscript ghostscript) + $(use_enable zeroconf avahi) + $(use_with jpeg) + $(use_with png) + $(use_with tiff) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use perl; then + pushd "${S}/scripting/perl" > /dev/null || die + perl-module_src_configure + perl-module_src_compile + popd > /dev/null || die + fi +} + +src_test() { + emake check +} + +src_install() { + default + + if use perl; then + pushd "${S}/scripting/perl" > /dev/null || die + perl-module_src_install + perl_delete_localpod + popd > /dev/null || die + fi + + if use postscript; then + # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831 + dosym gstoraster /usr/libexec/cups/filter/pstoraster + dosym gstopxl /usr/libexec/cups/filter/pstopxl + fi + + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die + + cp "${FILESDIR}"/cups-browsed.init.d-r1 "${T}"/cups-browsed || die + + if ! use zeroconf ; then + sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die + sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die + fi + + doinitd "${T}"/cups-browsed + systemd_dounit "${S}/utils/cups-browsed.service" +} + +pkg_postinst() { + if ! use foomatic ; then + ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely." + ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained." + fi +} diff --git a/net-print/cups/Manifest b/net-print/cups/Manifest index 840c859eec4d..4bf4aa54120c 100644 --- a/net-print/cups/Manifest +++ b/net-print/cups/Manifest @@ -8,6 +8,6 @@ AUX cupsd.init.d-r3 584 BLAKE2B f503663a59673209fc6c161aed3cc214cab2b3e68692078d DIST cups-2.3.3-source.tar.gz 8140741 BLAKE2B 427e6ee3602aec33ac336d9b2c6c8eb270f2996371f0edd3d69e411b94b2e93fc58a0032ba9f6d048f2c58a1c6b48f742671b4011cd725b882adfcc06ed7fd8a SHA512 7d6f4a01794c5599cc71525778ea785fd17271c31ac146a56e8fc374a88f99e4035d018dae48e37e541455e9cc93b302e892b2e93ec558c1b4bfc46dad68c92d DIST cups-2.3.3op2-source.tar.gz 7993205 BLAKE2B 8c115b91ec185a4820578561aaf681238280b22b5c68b68c484ffbd0fa3c4ec1beb4d426e3f0e33192e32bce78aa8b7f50ed6799732a467fa9e75c34787057ee SHA512 db27dd6fb616bd7ad895b2bdf4ea7b010501358a50dc8f2e7e29558d1cfc088a572b1b35ac512654d3ed410c84df87dc34ca636533a4499117253915d4763117 EBUILD cups-2.3.3-r2.ebuild 9671 BLAKE2B 8dd97f894fa876cd2ca22162538bad495638cdf89d8eb3ee35698278c0a2be8e63f2e9db9d49b1fff102ebf75b6239f64d64382e735bb63b9479fdfff1a15bb6 SHA512 a2b510ea0f1dc4f59f175ac6103c07eb062e6a7691238086485d085b6ddd92d157149d5da3aed7dbd3beb3a14f49b2d5edddf188c9be01278201d5139259ca1f -EBUILD cups-2.3.3_p2.ebuild 9042 BLAKE2B 38fe9073bbd19e5969790fdb234e84bb0e1d244672ab11fdb5ef4afde8c0eda0e3e40fe6eff311d0555c5cb8e447ce09044ee1b62e8febd8d8153f05cf56282c SHA512 221f57ce9983a77682b5397fa93e2aa4641a85bfb1c8d146ae3303ffef2c7cc1e4bc6c3aa8235ebf23eeb0ecb4ee68972889dd2626c08d73275d06289216f35e +EBUILD cups-2.3.3_p2.ebuild 9034 BLAKE2B 2544479e2d80f364bb1e43c7856534f1ab54deb324f05952e62075f8e8ecea1182fcc92a6868c6dba8909e6053fcc6acd93d215359288ce7173600a9f20fa764 SHA512 3756e65e075e470d645c714f272c618feb22294524b67bff3eeb9c92b6cba98c666671f687749609228f99b04c7b7c970750cfdd63a300ef1604783209d6d1de EBUILD cups-9999.ebuild 8975 BLAKE2B 29e80afc33d89883b8c8b2ec5a13bdb9207f687b63ff841128328db21c249e3921f45ec5d16958f680c5aaaad99d07fcf344ed989a95da6c1bc6f8b9536e2ca6 SHA512 44c0fe18abeeaa174c62aa505c4dbca776581edb52a1e017693b5ba35f56eaebc9139146afe91353b56a523c0ee83f5fe221edce828836c9316b26e2c2b61a21 MISC metadata.xml 527 BLAKE2B ec1e13892e9264410a238328b21d77c2aa686674e3427d4bf04afedcf3e9d14927060eca98e8cfa1e1557c707a50efec3c3d5532e83470cba59acd912116717d SHA512 8db4eeb1ce4597679bf88c5657b7bfde4f8f8a40814c81624103172c22b65e1fb3354c183e7de1b37ba72621e29397d3510458048f78f4a4c99e7ddb669e7adb diff --git a/net-print/cups/cups-2.3.3_p2.ebuild b/net-print/cups/cups-2.3.3_p2.ebuild index f0415242e5aa..840515256480 100644 --- a/net-print/cups/cups-2.3.3_p2.ebuild +++ b/net-print/cups/cups-2.3.3_p2.ebuild @@ -19,7 +19,7 @@ else # SRC_URI="https://github.com/apple/cups/releases/download/v${MY_PV}/${MY_P}-source.tar.gz" SRC_URI="https://github.com/OpenPrinting/cups/releases/download/v${MY_PV}/cups-${MY_PV}-source.tar.gz" if [[ "${PV}" != *_beta* ]] && [[ "${PV}" != *_rc* ]] ; then - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" fi fi diff --git a/net-print/gutenprint/Manifest b/net-print/gutenprint/Manifest index 2b832e59eab2..185372665203 100644 --- a/net-print/gutenprint/Manifest +++ b/net-print/gutenprint/Manifest @@ -2,6 +2,8 @@ AUX gutenprint-5.3.1-cflags.patch 659 BLAKE2B 90beb435d0b9a036f31e25f78afedca178 AUX gutenprint-5.3.3-epson.patch 5637 BLAKE2B 7cb05d40e23ca30bd59b0863318d22c9115c4462b960b154a0da61f66f08c4abf31606c762f5b35e4a3a55218e9929c72980d4855f1cfa06b08fc392be81984a SHA512 0cccd8eb17eb66524d79a867624f0822c365268cba9b15d4f71b9d3b8720663e590c24f322f1731fd21bdb863ab15464a980a5e0c76313050941f36c92d9b66b AUX gutenprint-5.3.3-selphy-typo.patch 1077 BLAKE2B c8ad7ebb032ac8320b11d88df6cba79dffe68c910f293116d2f04333d53b17fef7baaba5a0d453c6c087ee9f0a6d1150484280c10ac6ae3a9f6d54905d7884ee SHA512 0376b689b3c6d7d630937f56f19efb0d8d9e7a9726af39794106205aeaca00621ec10a56a28fcc25dadf106e66c7956245ee53709cb1cd39f120716dbc6927d1 DIST gutenprint-5.3.3.tar.xz 5050624 BLAKE2B dbcf74169d0756d991bbdad7338a6e6f995f8eeedc2610677b327abee6aecc787d1cc35949f73c1d93ad274de7d467542b72a5fe0abf58fbc4ec6f21667cbad7 SHA512 d2c47eb4ccc3c46ccb2f1042682edf7443f5c57439ead72f49ecd10537cf967251bacf7ca7da29fb8dceecc7eebd55ed021f2594ff9fb6509bab543fab1dc8d6 +DIST gutenprint-5.3.4.tar.xz 5341824 BLAKE2B 134e59c7dbf9c0ba95b91c717f1e6841f35520b55105feb1ba40b82785c825b8e2a2429990e78186a1455e5c6de9880f911438d514c53c56d05575dd4e2d68a4 SHA512 63de0b62edbe255a7efaaeab1dcd22577b7b46d7e0e48441b79977f19e76bf3862e4e8e18c55dd1f2e7392d555f9e8ee875ea53b90c689852d2343491a8fbcc8 EBUILD gutenprint-5.3.3-r1.ebuild 1910 BLAKE2B e5ddb8a60c036a007ebfa872d497515c317a07a3d3f75fe1f679d87b300b653ce9402e0b374da8f34f94f25cc4f7a9617e4847f1ac064db01ae8feceb1592f5c SHA512 9b2e86460a131a4ddf413626b6f2429e67284f3b9babaf5bcbff91f6bf94b187301c7de6d4b966dc33284f0e2f4c2d4e1eded2cbef7210abb6429b9fd0eedf8f EBUILD gutenprint-5.3.3-r2.ebuild 2018 BLAKE2B e0b5d6bdc56e89b0e22e27deedcd21977b3d45e47378afb55cfdfe5ace71d5f240808e853ffbe04d36b1c435922af0baa830257083a1200f9d92db741929107e SHA512 db07d9b120d697434848125b1e5d0cab1255fb734180688827f1da8f71e903661348d2514ea0f72253ef85fe117cb133baaa6f35e95c4d3a8005afe9a6f208b2 +EBUILD gutenprint-5.3.4-r1.ebuild 1840 BLAKE2B 88309f9714ffb694fbca75914157511e65d88a3422ea7315c7c904d342c917c8abe6de64a4834137799bbd3ad93872b087e31201ca1ca545d6fe484ffb6d7580 SHA512 c26714845e2d0b17e8d729ff52136d16d9b9ef94a6676a7d5eb48aaa9e5b4acd159aab9a723c474f30e8f88a87f14749997fc69d678138b32376886c652b1081 MISC metadata.xml 339 BLAKE2B 1090eefd725cc9e37f9c8e77daddb80c3791098af5ba2405dd2746426a46722bef0ed8706654100559735d9f29c2be45eec525cadc0653776dda60453abca786 SHA512 b2153b9425e34eb5561da4d5ea99c08bdfac03b036a94b0c471f985635e2a75f843956cd94d99cbb0d2e2b71b6a14493892bd8efa6eeecf2309ac4b964d9d6a6 diff --git a/net-print/gutenprint/gutenprint-5.3.4-r1.ebuild b/net-print/gutenprint/gutenprint-5.3.4-r1.ebuild new file mode 100644 index 000000000000..4af8c8881e58 --- /dev/null +++ b/net-print/gutenprint/gutenprint-5.3.4-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Ghostscript and cups printer drivers" +HOMEPAGE="http://gutenprint.sourceforge.net" + +MY_P="${P/_/-}" +S="${WORKDIR}/${MY_P}" +SRC_URI="mirror://sourceforge/gimp-print/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +IUSE="cups gimp gtk nls readline ppds static-libs" +RESTRICT="test" +REQUIRED_USE="gimp? ( gtk )" + +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +# gimp restriction: https://sourceforge.net/p/gimp-print/bugs/725/ +RDEPEND=" + dev-lang/perl + cups? ( >=net-print/cups-1.1.14 ) + gimp? ( + media-gfx/gimp:0/2 + x11-libs/gtk+:2 + ) + gtk? ( x11-libs/gtk+:2 ) + readline? ( sys-libs/readline:0= ) +" +DEPEND="${RDEPEND}" + +DOCS=( AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} ) +PATCHES=( "${FILESDIR}"/${PN}-5.3.1-cflags.patch ) + +src_configure() { + local myeconfargs=( + --enable-test + --disable-translated-cups-ppds + $(use_enable gtk libgutenprintui2) + $(use_with gimp gimp2) + $(use_with gimp gimp2-as-gutenprint) + $(use_with cups) + $(use_enable nls) + $(use_with readline) + $(use_enable static-libs static) + ) + + if use cups && use ppds; then + myeconfargs+=( --enable-cups-ppds --enable-cups-level3-ppds ) + else + myeconfargs+=( --disable-cups-ppds ) + fi + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + dodoc doc/FAQ.html + dodoc -r doc/gutenprintui2/html + rm -r "${ED}"/usr/share/gutenprint/doc || die + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + if [[ -x /usr/sbin/cups-genppdupdate ]]; then + elog "Updating installed printer ppd files" + elog $(/usr/sbin/cups-genppdupdate) + else + elog "You need to update installed ppds manually using cups-genppdupdate" + fi +} diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest index 79a31480b810..89fa89c646ea 100644 --- a/net-print/hplip/Manifest +++ b/net-print/hplip/Manifest @@ -2,6 +2,9 @@ DIST hplip-3.20.11-patches-2.tar.xz 18140 BLAKE2B a0271d0c6fcfaa53c68ab00c4c6cfc DIST hplip-3.20.11.tar.gz 26301441 BLAKE2B 14667f33cc50b2887c8434ada7327a82e16b9acbcdc75d3a50c0261ec9aef3fada9be81e6c0cbdfb4d29914630799c6406893644386db99c0ce86245cca38cc2 SHA512 f583fb4140a29c5e21956c3e51fe3620baa65d33b40447af419d7fc61473a1148a1873216a84e89be785b155ee8e9aebd5e3eb19d2ded82b8415b1a35de1b55d DIST hplip-3.21.2-patches-1.tar.xz 19212 BLAKE2B c733651a7831b54bec13b5f037b0f00ab53dbec193f73964d7bb3f8ee4e1dcd02a02dd793d7fc322fe34085bbe5ec281076757d8882b4eb7f85fd0e45b1c3200 SHA512 23c696b111fe098358eb609e64cedc2ee85f4a1dac8bce895e3c6bbcb96e62dd5d2d3f1bcc9d12d20ccd6717b23f92b3016c926df7c73f50ba9425542d08ed29 DIST hplip-3.21.2.tar.gz 27014784 BLAKE2B b6a13f0d48f3052ad09b419dbe9b68605c85ed8f1bfb6f1ec9720b9aace4a1c6d17a933b0d55ba20dbbc3d389ba1d2751dbd9a71d364ad2e2e1617cd7613dc2d SHA512 73ba37275cfe34a58b81c9656514e15da67c1a69af5471ad132a1538d324efe640879cb7e60c359915607e41b63e653e7ae757661e553235f6e83e378ab46474 +DIST hplip-3.21.4-patches-1.tar.xz 17812 BLAKE2B d38584eb04e5e8d886cd4c8ecd05c31f3a32db185c87eed8a6593f3f2d1368a284bbef36f9d78b2689862165cd132597a3d616aaf5411e875f97de45c57e197e SHA512 fd7438353af8b05e100b5ef16fedcc6bf9257d49fe7d5a12a1a2b3b26965c2ebcd613788e7f585f7c0bd3a97e83381e36f3915eabd16a1e8c4ac50c1129804e8 +DIST hplip-3.21.4.tar.gz 27019741 BLAKE2B 8e978488e09d99d136351b84fddd9ac7921b9ad1ca2355bfde4eca89646953c3caada5d45aeeb6e7882c448349e5ccd4b473df6f0f42e9b50d4b057157397d5f SHA512 3f22433b3d35013025b63163ccd879da203adcec821f9f90748ee8399b370a129ecdffb5889efa57da1dc5c3f45c42f7593d2198d9166240156baf839b55fce6 EBUILD hplip-3.20.11-r2.ebuild 8281 BLAKE2B 73698ce5464b60119afa57056b3d8e596ec2e87f68909a8a73d81ca997a8733721f47113afda7676d097f8d04ad79b645ca159a23956c9b1ddcb953a4d211dfe SHA512 a6fc57891971aa4f9ce2ac15fa82abf38d07a1f15041a45870c2039a98d7796d2d51bb3566d514b0509d25f9a16ec28ae1894c39b784f102ed5c41288b64f9cd EBUILD hplip-3.21.2-r1.ebuild 8286 BLAKE2B 8c33bb775ed150bde68f2f70b7bc9b720798462a387a4758be62544bcf5ab20cdf2786882767f11e158fc5a8a1ee5977b08093ba2ef0902a74c8996ab0bccabe SHA512 6e75dcb2676acc755ac796f1c32ac939c54c4b42a4d342c20c65d62a1bb83c608a97ba5925335f1167365839abf5de8820e3ec9bd8d660800ee28964bbae819e +EBUILD hplip-3.21.4.ebuild 8321 BLAKE2B 4be52bfe7b02e7a8fa48621975dd112dcae5472344801df4b9233adf90f5af248d8177f7834cf6b35e5fb2d715bb6227480923d6b57084c8bb304d91119fa08e SHA512 fc87f3cf750139dea5af933e4621f4c351fffde09d8ac63a13deb4db29a876a1b3ca56e91f0d010197a9c5e2fabdc1a8ec4f08d4bb3da0dcc45897f5489be92b MISC metadata.xml 1910 BLAKE2B fd9fc7a40bd2bb877e7b4e26104df247dc8c7aa5cbd7211f5d489ec889834aa64fff20d6624f3c8b3e1e4428704cb7f2eb4d1bffc1c6fb15f15b05fd422297e2 SHA512 022854843c9ae373aed3ebd3879c9f1312773dea5dca15c85fb839ff067ea5599532201fa51d9e91ec18b0be1773e2ad544cd4e5697eb9c91be22d8d9352d7ef diff --git a/net-print/hplip/hplip-3.21.4.ebuild b/net-print/hplip/hplip-3.21.4.ebuild new file mode 100644 index 000000000000..84ae3994756d --- /dev/null +++ b/net-print/hplip/hplip-3.21.4.ebuild @@ -0,0 +1,288 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_REQ_USE="threads(+),xml" + +# 14 and 15 spit out a lot of warnings about subdirs +WANT_AUTOMAKE="1.13" + +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="https://developers.hp.com/hp-linux-imaging-and-printing" +SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz + https://dev.gentoo.org/~billie/distfiles/${PN}-3.21.4-patches-1.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +IUSE="doc fax +hpcups hpijs kde libnotify libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X" + +COMMON_DEPEND=" + net-print/cups + sys-apps/dbus + virtual/jpeg:0 + hpijs? ( net-print/cups-filters[foomatic] ) + !libusb0? ( virtual/libusb:1 ) + libusb0? ( virtual/libusb:0 ) + ${PYTHON_DEPS} + !minimal? ( + scanner? ( + media-gfx/sane-backends + ) + snmp? ( + dev-libs/openssl:0= + net-analyzer/net-snmp:= + net-dns/avahi[dbus,python,${PYTHON_SINGLE_USEDEP}] + ) + ) +" +BDEPEND=" + virtual/pkgconfig +" +DEPEND=" + ${COMMON_DEPEND} +" +RDEPEND=" + ${COMMON_DEPEND} + app-text/ghostscript-gpl + !minimal? ( + $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]' 'python3*') + kernel_linux? ( virtual/udev ) + $(python_gen_cond_dep ' + >=dev-python/dbus-python-1.2.0-r1[${PYTHON_MULTI_USEDEP}] + dev-python/distro[${PYTHON_MULTI_USEDEP}] + fax? ( dev-python/reportlab[${PYTHON_MULTI_USEDEP}] ) + qt5? ( + >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_MULTI_USEDEP}] + libnotify? ( dev-python/notify2[${PYTHON_MULTI_USEDEP}] ) + ) + scanner? ( + >=dev-python/reportlab-3.2[${PYTHON_MULTI_USEDEP}] + >=dev-python/pillow-3.1.1[${PYTHON_MULTI_USEDEP}] + X? ( + || ( + kde? ( kde-misc/skanlite ) + media-gfx/xsane + media-gfx/sane-frontends + ) + ) + ) + ') + ) + policykit? ( sys-auth/polkit ) +" + +REQUIRED_USE="${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 +" + +pkg_setup() { + python-single-r1_pkg_setup + + use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." + + use parport && linux-info_pkg_setup + + 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." + ewarn "This also disables fax, network, scanner and gui support!" + fi + + 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 +} + +src_prepare() { + default + + python_fix_shebang . + + # 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 + + eautoreconf +} + +src_configure() { + local drv_build minimal_build + + 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 + minimal_build="${minimal_build} --disable-fax-build" + minimal_build="${minimal_build} --disable-network-build" + minimal_build="${minimal_build} --disable-scan-build" + minimal_build="${minimal_build} --disable-gui-build" + else + if use fax ; then + minimal_build="${minimal_build} --enable-fax-build" + else + minimal_build="${minimal_build} --disable-fax-build" + fi + if use snmp ; then + minimal_build="${minimal_build} --enable-network-build" + else + minimal_build="${minimal_build} --disable-network-build" + fi + if use scanner ; then + minimal_build="${minimal_build} --enable-scan-build" + else + minimal_build="${minimal_build} --disable-scan-build" + fi + if use qt5 ; then + minimal_build="${minimal_build} --enable-qt5" + minimal_build="${minimal_build} --enable-gui-build" + else + minimal_build="${minimal_build} --disable-gui-build" + minimal_build="${minimal_build} --disable-qt5" + fi + fi + + # disable class driver for now + econf \ + --disable-class-driver \ + --disable-cups11-build \ + --disable-foomatic-rip-hplip-install \ + --disable-imageProcessor-build \ + --disable-lite-build \ + --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 \ + --enable-hpps-install \ + --enable-dbus-build \ + ${drv_build} \ + ${minimal_build} \ + $(use_enable doc doc-build) \ + $(use_enable libusb0 libusb01_build) \ + $(use_enable parport pp-build) \ + $(use_enable policykit) + + # hpijs ppds are created at configure time but are not installed (3.17.11) + + # 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 +} + +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 + + # Remove desktop and autostart files + # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=638770 + use qt5 || { + rm -Rf "${ED}"/usr/share/applications "${ED}"/etc/xdg + } + + 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 + + python_optimize "${ED}"/usr/share/hplip + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} |