diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2012-12-15 09:31:36 +0000 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2012-12-15 09:31:36 +0000 |
commit | 27ea5f99211bd479aab16c8812c3e92e47fa2b61 (patch) | |
tree | dca4241a614b16b75df5f99e1f550b189062634a /net-print | |
parent | Remove old. (diff) | |
download | historical-27ea5f99211bd479aab16c8812c3e92e47fa2b61.tar.gz historical-27ea5f99211bd479aab16c8812c3e92e47fa2b61.tar.bz2 historical-27ea5f99211bd479aab16c8812c3e92e47fa2b61.zip |
Remove old.
Package-Manager: portage-2.1.11.31/cvs/Linux i686
Manifest-Sign-Key: 0x215AD14D
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/hplip/ChangeLog | 6 | ||||
-rw-r--r-- | net-print/hplip/Manifest | 12 | ||||
-rw-r--r-- | net-print/hplip/hplip-3.12.10a-r1.ebuild | 257 | ||||
-rw-r--r-- | net-print/hplip/hplip-3.12.9-r1.ebuild | 238 |
4 files changed, 9 insertions, 504 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog index 8f1757bae7e6..e049ae17ee50 100644 --- a/net-print/hplip/ChangeLog +++ b/net-print/hplip/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-print/hplip # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.256 2012/12/11 17:01:02 axs Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.257 2012/12/15 09:31:35 billie Exp $ + + 15 Dec 2012; Daniel Pielmeier <billie@gentoo.org> -hplip-3.12.9-r1.ebuild, + -hplip-3.12.10a-r1.ebuild: + Remove old. 11 Dec 2012; Ian Stakenvicius <axs@gentoo.org> hplip-3.12.9-r1.ebuild, hplip-3.12.10a.ebuild, hplip-3.12.10a-r1.ebuild, hplip-3.12.11.ebuild: diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest index 6ee32894b7c0..41e05f7b7312 100644 --- a/net-print/hplip/Manifest +++ b/net-print/hplip/Manifest @@ -4,18 +4,14 @@ Hash: SHA256 DIST hplip-3.12.10-patches-1.tar.xz 10496 SHA256 7b8f10c1e58ca60778c5c240e51d68472237a45235a03f0b54cd1ffc9dac9632 SHA512 4947077b17bc9f4714302c99917d359cc7dda728393c8fe88d21f26e923dcb5d0535fc56c403920fce359be2951e6ac0c92cb5ba3a659bca452e08f83d8a09a8 WHIRLPOOL f759953c8495eddd0df0bbb3f2ad29e28004659d39f1d415c89604fdebf6729e914ab6830c540ff9c3f693ceb609aff882265bc0ff8a8d1e2637285d7d51158f DIST hplip-3.12.10a.tar.gz 21827613 SHA256 616a30f260407f959874d35d351eaf73c74f7f8f016a7826286c88d923a4b1fc SHA512 870a794fdd729aa69b392c3d5cba764ee77141be16313adaf43089c82de397b64517e88d986ecc6f1766cdd5381fa103528ee214358e7b9398f7d4bd70d5f33c WHIRLPOOL 45d2831f593b609b4e4e774c0bf446dd98cb8ad4eba797baafbc43d8af4897764973066348dde08f97ae90635becbe3e91419fbc080d4fdb0a3771b8e63d3c89 DIST hplip-3.12.11.tar.gz 21932088 SHA256 c5b81167b21aa4ee6bdf3f5c120bfa050d0c794608da8bcc32e2580234919ffa SHA512 78593060f60a906e993ed4b2753fc41e7dae7a35a7697b87008b730fb893b3f4c54d488b7bb0d2fca72bd356dc963b2c2ca68c2797c5860f7052141bd0a81ea7 WHIRLPOOL 7983dc0f08ed38e5ae3ac9bde28f900f1315ad6d6cbd5773221799ea6c9ad9225ea35cb5be8537e4f6045b23c56a9e1776b6b337c91b626afa4e91416b830252 -DIST hplip-3.12.9-patches-2.tar.xz 10328 SHA256 d992fdf42bbcde92de9f4256308b3b35b74e3fcae50704d59eaf26bd2beab5b4 SHA512 846b9cc96b1eefcbc0960c312a60ab8913b6db109bfa828d19f1e9cdfccc47e193d582767d828437dbebc9ec1c0617a590e8f3f2e744d9f5bddb6056d43fe6a7 WHIRLPOOL 5d63763f11d8f91a6506301ec2c7e37c1f9e5693c83d818f67129a42c7489fd9ed09c0a06f216af72c21f488cefc6f2b455a010fc504e3fc7b12b877190e9d9b -DIST hplip-3.12.9.tar.gz 21314003 SHA256 e7361b9d6e968ce3306dc438e622a4412156e7c2d71b2a6face5952cf52e23c4 SHA512 bf0f498d7516c4b7653799c043dd6336a620be31680e1419bf09f9fd52492fc92f59e030df5110f89615c16d27ecad0169c83c938651a7fa7257057ccf5d30eb WHIRLPOOL 1059cf4216b60752c4f6da299f2dd86bdb26be7171275107280953225a9d1d729b135ba0f7990a8ed757fd52880612718bd846abb68ecbf61652923db88ca425 -EBUILD hplip-3.12.10a-r1.ebuild 7358 SHA256 2852ac5ce14bb8ac9312c4ad0593b822c8c8bc9cbaddbf86a7fad6fa08b73af9 SHA512 eccf8419e831a12ade270dddde33513774cbe8374a311f0f99e469007f55d772fba884fe364ec469c37e81b1527e5a9a2b103149447e9ed87ca96c47d182ca97 WHIRLPOOL 7bbcb1dd02e34e6d4d43b332eb8628001253e9ebec2113d3b88b6dadd987e0d0a205f8e22e5f1c910e741242d27658211e8a23ed74c256a7c0c71f52b92d1ad1 EBUILD hplip-3.12.10a.ebuild 6770 SHA256 59daa524bd7d0692b44748c3d16a92d7d7897bf189cbde9dc60ee2ec9b5a8164 SHA512 6e1ad629bc8e8a985f1f6540698d5bdd5e8c250f44a1832fe2b26d63636c109eab5b6146e6a0a9a508c7fa80d3c7f9ac5976e5fcf5f7267d212f2a46ee430c93 WHIRLPOOL 9e1cd1a793edbf60e951afeca5a5e454fca8c0c2a5cbfba56d7cee8ae08a908260d636b60b6855b7a154bcd17bbc558a08b1e611e80a4d6e529f69c28d3f1e14 EBUILD hplip-3.12.11.ebuild 7352 SHA256 6c57b67b8207c80d4fe00592ccf7d2ba38546388c070c5a81bb7c65a4b3062c5 SHA512 9edc0edce681bd2f934eb7c5ef1ca30e2e51442fcd78c448900a599f7759ae746bd5abeb691e06de88ea00bce35f520b06482e8f92378f0891447461110efd2f WHIRLPOOL 7286f4debe51dde5c6642f0b83e45a0c24691d2545ed92e7ba15f6489bf1a23636cce809a2bb38ab91c06f435a8c523adcf317577a5c93635bbdb514833b7338 -EBUILD hplip-3.12.9-r1.ebuild 6561 SHA256 b6abe336d4ad5d7ad590fc236bf67d3a6a70ed47cd378fd9a365a3877d9d63b7 SHA512 bb8feaf2859b0978b64fc2c0b0735dcb77aca4cdda67d889102230342b919ffc5431b5b2ac99eff1a39cd365098c7d86703a8b83123f4ce57859a63b4b8d5b95 WHIRLPOOL 03d33aa4843d06e8bba95cc7fcc2415c165a7aaf2ce7c6a0bd9c91fa3199e73b2eb8314b4772714dd74a9c72bc584c14ed0adcc1d88219a5a0d04e10daf7611c -MISC ChangeLog 44536 SHA256 132fb219acb6255ca30d3f49848c28bd202c3e55c51aa74b748ec8ec64a12265 SHA512 5bc51cb1ba94807cb193e78b7db0fe8bc2851041fe4df12b518cae7b54b541f50837ccece929672471043f19e9a65e42d005d58f3500e8d1f3897318850fed75 WHIRLPOOL 06bd027cc7d7b63f11475a35afa3db7f12ffe8c371db85b92d62ef122bc8bd19b805f173dd8232adfec8dcdbdb19030341293d92c7fdd50066d11bff1f27d2b0 +MISC ChangeLog 44660 SHA256 64c5eb95ed198a8157169e8b102f7bddb17fe56aae3fe759b1fc747556f5ad08 SHA512 8f71e86397b7a7a9a45ab83eef6ede90c26280813f04981e281e8a743768ba20be058683913fe4b223723d937fbdad13d08619af20b8aa0f66a14a3a18ef76d9 WHIRLPOOL 2cb2e03ed19a85c95a44aa0f9901a7c570035ba48c7d7771f2b6fe523f66feb5ba5b3e39085e44b1eda39aed39d058583fd955057c124a8aed67a9b1af359be4 MISC metadata.xml 1742 SHA256 75145099056e78b169dc2684c98d359678512eba66b44620d9a8dd0bb035d01b SHA512 d87dda6d978108e0cc166e6985494d8dfb2e4a4637e205766da37f99ec208c99fd76f7892ac1f971626f9c671d73ce3f2faddc6cf834abb04a59331267fe68d4 WHIRLPOOL d38f75f8dc2925babd8ebd09f8ed527e1980e991d863b2533980f01b62d593f75bb1cb6ebc5886018659c0079b9c7476abea367fa9abe7986b7dfc7ce1561a99 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iF4EAREIAAYFAlDHZuAACgkQ2ugaI38ACPA3rQD/etwRkVpeqtace5QNaJIklFSv -9HG+zuTusleF/EvxT2MBAJEZcyeE/FJqHDMK3a2ZNAvXDo+y6JGIJIRf8IQFr/dY -=SAAb +iEYEAREIAAYFAlDMQ3gACgkQlcuUeyFa0U0UDwCg5mei91Sraj/CS5M0yGNi554u +ygsAoOeE7Pnno4A+mHCf3g8eKhoLvi+s +=Ef4q -----END PGP SIGNATURE----- diff --git a/net-print/hplip/hplip-3.12.10a-r1.ebuild b/net-print/hplip/hplip-3.12.10a-r1.ebuild deleted file mode 100644 index b92b22dc3c4b..000000000000 --- a/net-print/hplip/hplip-3.12.10a-r1.ebuild +++ /dev/null @@ -1,257 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.12.10a-r1.ebuild,v 1.2 2012/12/11 17:01:02 axs Exp $ - -EAPI=4 - -PYTHON_DEPEND="!minimal? 2" -PYTHON_USE_WITH="threads xml" -PYTHON_USE_WITH_OPT="!minimal" - -inherit eutils fdo-mime linux-info python udev autotools toolchain-funcs - -DESCRIPTION="HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools." -HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" -SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz - http://dev.gentoo.org/~billie/distfiles/${PN}-3.12.10-patches-1.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" - -# zeroconf does not work properly with >=cups-1.4. -# Thus support for it is also disabled in hplip. -IUSE="doc fax +hpcups hpijs kde libnotify -libusb0 minimal parport policykit qt4 scanner snmp static-ppds X" - -COMMON_DEPEND=" - virtual/jpeg - hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) - !minimal? ( - >=net-print/cups-1.4.0 - !libusb0? ( virtual/libusb:1 ) - libusb0? ( virtual/libusb:0 ) - scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) - fax? ( sys-apps/dbus ) - snmp? ( - net-analyzer/net-snmp - dev-libs/openssl:0 - ) - )" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -RDEPEND="${COMMON_DEPEND} - >=app-text/ghostscript-gpl-8.71-r3 - dev-python/dbus-python - policykit? ( - sys-auth/polkit - ) - !minimal? ( - dev-python/pygobject:2 - kernel_linux? ( virtual/udev !<sys-fs/udev-114 ) - scanner? ( - dev-python/imaging - X? ( || ( - kde? ( kde-misc/skanlite ) - media-gfx/xsane - media-gfx/sane-frontends - ) ) - ) - fax? ( - dev-python/reportlab - dev-python/dbus-python - ) - qt4? ( - dev-python/PyQt4[dbus,X] - libnotify? ( - dev-python/notify-python - ) - ) - )" - -CONFIG_CHECK="~PARPORT ~PPDEV" -ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." - -pkg_setup() { - if ! use minimal; then - python_set_active_version 2 - python_pkg_setup - fi - - ! use qt4 && ewarn "You need USE=qt4 for the hplip GUI." - - 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() { - use !minimal && python_convert_shebangs -q -r 2 . - - EPATCH_SUFFIX="patch" \ - EPATCH_FORCE="yes" \ - epatch "${WORKDIR}" - - # 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="$(udev_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 fax || use qt4 ; then - myconf="${myconf} --enable-dbus-build" - else - myconf="${myconf} --disable-dbus-build" - fi - - 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-udev_sysfs_rules \ - --disable-udev-acl-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 parport pp-build) \ - $(use_enable scanner scan-build) \ - $(use_enable snmp network-build) \ - $(use_enable qt4 gui-build) \ - $(use_enable qt4) \ - $(use_enable policykit) -} - -src_install() { - default - - # Installed by sane-backends - # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 - rm -f "${D}"/etc/sane.d/dll.conf || die - - rm -f "${D}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die - rmdir --ignore-fail-on-non-empty "${D}"/usr/share/doc/${PF}/ || die - - # Remove hal fdi files - rm -rf "${D}"/usr/share/hal || die - - find "${D}" -name '*.la' -exec rm -rf {} + || die -} - -pkg_postinst() { - use !minimal && python_mod_optimize /usr/share/${PN} - fdo-mime_desktop_database_update - - if [[ -z "${REPLACING_VERSIONS}" ]]; then - elog "For more information on setting up your printer please take" - elog "a look at the hplip section of the gentoo printing guide:" - elog "http://www.gentoo.org/doc/en/printing-howto.xml" - elog - elog "Any user who wants to print must be in the lp group." - fi -} - -pkg_postrm() { - use !minimal && python_mod_cleanup /usr/share/${PN} - fdo-mime_desktop_database_update -} diff --git a/net-print/hplip/hplip-3.12.9-r1.ebuild b/net-print/hplip/hplip-3.12.9-r1.ebuild deleted file mode 100644 index ff98d1c674f4..000000000000 --- a/net-print/hplip/hplip-3.12.9-r1.ebuild +++ /dev/null @@ -1,238 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.12.9-r1.ebuild,v 1.7 2012/12/11 17:01:02 axs Exp $ - -EAPI=4 - -PYTHON_DEPEND="!minimal? 2" -PYTHON_USE_WITH="threads xml" -PYTHON_USE_WITH_OPT="!minimal" - -inherit eutils fdo-mime linux-info python udev autotools toolchain-funcs - -DESCRIPTION="HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools." -HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" -SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz - http://dev.gentoo.org/~billie/distfiles/${P}-patches-2.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm ppc ppc64 x86" - -# zeroconf does not work properly with >=cups-1.4. -# Thus support for it is also disabled in hplip. -IUSE="doc fax +hpcups hpijs kde libnotify minimal parport policykit qt4 scanner snmp static-ppds X" - -COMMON_DEPEND=" - virtual/jpeg - hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) - !minimal? ( - >=net-print/cups-1.4.0 - virtual/libusb:1 - scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) - fax? ( sys-apps/dbus ) - snmp? ( - net-analyzer/net-snmp - dev-libs/openssl:0 - ) - )" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -RDEPEND="${COMMON_DEPEND} - >=app-text/ghostscript-gpl-8.71-r3 - dev-python/dbus-python - policykit? ( - sys-auth/polkit - ) - !minimal? ( - dev-python/pygobject:2 - kernel_linux? ( virtual/udev !<sys-fs/udev-114 ) - scanner? ( - dev-python/imaging - X? ( || ( - kde? ( kde-misc/skanlite ) - media-gfx/xsane - media-gfx/sane-frontends - ) ) - ) - fax? ( - dev-python/reportlab - dev-python/dbus-python - ) - qt4? ( - dev-python/PyQt4[dbus,X] - libnotify? ( - dev-python/notify-python - ) - ) - )" - -CONFIG_CHECK="~PARPORT ~PPDEV" -ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." - -pkg_setup() { - if ! use minimal; then - python_set_active_version 2 - python_pkg_setup - fi - - ! use qt4 && ewarn "You need USE=qt4 for the hplip GUI." - - 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() { - use !minimal && python_convert_shebangs -q -r 2 . - - EPATCH_SUFFIX="patch" \ - EPATCH_FORCE="yes" \ - epatch "${WORKDIR}" - - # Fix for Gentoo bug #345725 - local udevdir="$(udev_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 fax || use qt4 ; then - myconf="${myconf} --enable-dbus-build" - else - myconf="${myconf} --disable-dbus-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-libusb01_build \ - --disable-udev_sysfs_rules \ - --disable-udev-acl-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 parport pp-build) \ - $(use_enable scanner scan-build) \ - $(use_enable snmp network-build) \ - $(use_enable qt4 gui-build) \ - $(use_enable qt4) \ - $(use_enable policykit) -} - -src_install() { - default - - # Installed by sane-backends - # Gentoo Bug: #201023 - rm -f "${D}"/etc/sane.d/dll.conf || die - - rm -f "${D}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die - rmdir --ignore-fail-on-non-empty "${D}"/usr/share/doc/${PF}/ || die - - # Remove hal fdi files - rm -rf "${D}"/usr/share/hal || die - - find "${D}" -name '*.la' -exec rm -rf {} + || die -} - -pkg_postinst() { - use !minimal && python_mod_optimize /usr/share/${PN} - fdo-mime_desktop_database_update - - elog "For more information on setting up your printer please take" - elog "a look at the hplip section of the gentoo printing guide:" - elog "http://www.gentoo.org/doc/en/printing-howto.xml" - elog - elog "Any user who wants to print must be in the lp group." -} - -pkg_postrm() { - use !minimal && python_mod_cleanup /usr/share/${PN} - fdo-mime_desktop_database_update -} |