diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2009-11-12 21:34:48 +0000 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2009-11-12 21:34:48 +0000 |
commit | 0d72e50c8035d74397c4fa063c0c03d458915999 (patch) | |
tree | aa3056fd74219ded665371d46bc4435c7d878483 /net-print | |
parent | make it easier for gentoo_unused_files-beta.pl (diff) | |
download | historical-0d72e50c8035d74397c4fa063c0c03d458915999.tar.gz historical-0d72e50c8035d74397c4fa063c0c03d458915999.tar.bz2 historical-0d72e50c8035d74397c4fa063c0c03d458915999.zip |
Version bump thanks to Manfred Knick in bug #292915. Remove old versions and unused files files. Cleanup metadata.xml.
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/hplip/ChangeLog | 11 | ||||
-rw-r--r-- | net-print/hplip/Manifest | 10 | ||||
-rw-r--r-- | net-print/hplip/files/hplip-3.9.2-high_cpu_utilization_logout.patch | 25 | ||||
-rw-r--r-- | net-print/hplip/hplip-3.9.10.ebuild (renamed from net-print/hplip/hplip-3.9.8-r2.ebuild) | 53 | ||||
-rw-r--r-- | net-print/hplip/hplip-3.9.8-r1.ebuild | 258 | ||||
-rw-r--r-- | net-print/hplip/hplip-3.9.8.ebuild | 239 | ||||
-rw-r--r-- | net-print/hplip/metadata.xml | 73 |
7 files changed, 86 insertions, 583 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog index 5c6bc970003b..5bab7c4d391f 100644 --- a/net-print/hplip/ChangeLog +++ b/net-print/hplip/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-print/hplip # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.130 2009/10/15 18:21:29 billie Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.131 2009/11/12 21:34:46 billie Exp $ + +*hplip-3.9.10 (12 Nov 2009) + + 12 Nov 2009; Daniel Pielmeier <billie@gentoo.org> + -files/hplip-3.9.2-high_cpu_utilization_logout.patch, -hplip-3.9.8.ebuild, + -hplip-3.9.8-r1.ebuild, -hplip-3.9.8-r2.ebuild, +hplip-3.9.10.ebuild, + metadata.xml: + Version bump thanks to Manfred Knick in bug #292915. Remove old versions + and unused files files. Cleanup metadata.xml. *hplip-3.9.8-r3 (15 Oct 2009) diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest index 84fdab671a43..91075e319b8c 100644 --- a/net-print/hplip/Manifest +++ b/net-print/hplip/Manifest @@ -1,14 +1,12 @@ AUX 70-hpmud.rules 763 RMD160 b8326b26658b8e8355ae3d74423b51e2e15001e2 SHA1 fdb6b4937a814db50dc3ac3ca9b9c04cb44a6590 SHA256 6e7f2a0fd5a2111505066a412daea0d29c1ce858f09dbbaa489bb5a2f231e837 -AUX hplip-3.9.2-high_cpu_utilization_logout.patch 754 RMD160 14c3390bd3538f8b11c4273ca514e6ad6a3ab121 SHA1 c498a3954a239c6ed99b90beb54c2ddcd0e6cf43 SHA256 e8c37c9f959fc169372261adb1938b12fb54470848a4d73f458bb1c909d1b9c1 AUX hplip-3.9.4+glibc-2.10.patch 1023 RMD160 9571a0c34421432f892a1535ff0bf6533dc3883c SHA1 1254a4c2b9f5d2e6a488b3b0567f7edda3ab7a26 SHA256 4ab1cde2cb9a405011faa5c3c3bf9d7c52ce97653a28aa056e01c71909d08b3b DIST hplip-2.8.6b.tar.gz 10955713 RMD160 fa903344c59f4bc474aeb049dd75631e72435b92 SHA1 b15e1dcb00d745ccc424633a84ba062c307740f9 SHA256 aa1094f0f91bbc0b5a611ce6ece40651edc7b3da8fa111921a3524916fc179fa +DIST hplip-3.9.10.tar.gz 20999540 RMD160 65ea83e53bc19df0e2a054e723c74734fc5f39a8 SHA1 9c9a8b0bd990b7d6e29a9024ec80f3edceab269b SHA256 5dcde242478405a9f127a6a235a53f4d30a63725d9a6e4f4fda4662304e9723a DIST hplip-3.9.4b.tar.gz 15712313 RMD160 bfed762c59b8dc2210d450ba86a5636773831cc1 SHA1 d2b06f1ee347a1f3aacd6b52600d08fc71ac5b12 SHA256 57496c01fb3ead9678e630c1c4a385e156b76d328440da550ebfc24b95ff8b1a DIST hplip-3.9.8.tar.gz 15715640 RMD160 8b06537176bfb32d32ae20eec1cfa6765609ecc0 SHA1 bcf0d1d8d6a006dd00224b4f90c208c21af28e55 SHA256 6471d99bde2b1182f45082c50dbd9e424a3ec2c0e98c48c934a1cd0d4ccb4e36 EBUILD hplip-2.8.6b.ebuild 5223 RMD160 b22ab30c66893db8aa5b66844a38fefbdbcf80fa SHA1 3e402dbc955fe3c7ea98be5980d2e747600e4845 SHA256 0d1e993376b31bd5f2ddaa2d051fc927d6ebf38ae0d7e336061d1d3d24320719 +EBUILD hplip-3.9.10.ebuild 8482 RMD160 7763feda8853a7c6ec278b91bd08bbfed53bee80 SHA1 a4c1377566a0695436588236fbf3cdaacf4069b9 SHA256 14c621cefb1f25aea621482640e2d385364b1e767f059296b51d6a0058dc5c4c EBUILD hplip-3.9.4b-r1.ebuild 6450 RMD160 ee06e2af71f51ef1d6d67be04a25d5bfb01ec6af SHA1 2869085220ce59defb512e96c06016560ab7afac SHA256 fb80576ee4cba069386cfa34ce87caacc2529d780af181faea5c58bfd3a8ca4c -EBUILD hplip-3.9.8-r1.ebuild 7586 RMD160 326d29fe0f045fa50e451aac3c76f741eac77a37 SHA1 494c96ba3e5c424a533e6b2065821a7aa2e80af2 SHA256 dd1bcc273e2dfb5ff29e43ef0b070bf9f4e8cb50983f474fb25abb64dda4fc85 -EBUILD hplip-3.9.8-r2.ebuild 7428 RMD160 96904cbddeaa7b984fdfaf77096e7cfc580fa1a7 SHA1 c1d21787d984f1bcca3ecb2ad1de3c03deea0438 SHA256 6c40ae52517e09827a674e9f9919dc2cc0548dd59be07bb898c287f860f6d9f7 EBUILD hplip-3.9.8-r3.ebuild 8037 RMD160 3bbff08fd64a069726bc1dddc03092abd3e85078 SHA1 aea58ca32d43606b668f35a8f3b1d4741fa161fa SHA256 43dd34c9cbfbb88aa82b14c8b84959cc3562938d3c9d4d1f0438dcd58e99e94d -EBUILD hplip-3.9.8.ebuild 6794 RMD160 774dd5a3573a42254f752af87c2be41faf885989 SHA1 0fc90045a8086a04ffd3b2a0d4b0bcdf5590db9b SHA256 0cc65db4e62d1717f172260f9f9d9e4f54b45f6d7cf73bd2ab9d81b4680ffd51 -MISC ChangeLog 21972 RMD160 c99d12855917ae57c01832e74b8c7693660ac15a SHA1 f31d6a445405830d27d7a091830d501226c9380a SHA256 b6d9e173041123b5e0da1bc6c252126d0d6215a55ce9cc82f55aa0997ae556de -MISC metadata.xml 2640 RMD160 2f77e607971a8883f8371bc89a5366cfe6f1b931 SHA1 8bf5b69ab50a10330689bdaaaaeb4976d7e3515a SHA256 8b41b5f63f83adb41e1b6f72348e61583a1603d448f3bee32d5eb57f6ded2ad0 +MISC ChangeLog 22342 RMD160 156890c757fff6907834fd6173d0f4a62d2e89a6 SHA1 e578534a42e24720042e4ee223a1036f83cc1473 SHA256 af99362ff617cca2565605ea6e0b611c519fece5366b64a5c9577c0eb3d00e9c +MISC metadata.xml 2717 RMD160 b9498de6ef7a6c2a576e672b2116857ef1ec44b5 SHA1 810311f22a22a0d414525931c1ef4896abaf4840 SHA256 9e157960d81e23c7b7a56271f4e3cad18e450e238f4abe32ae6952cca4f0bc9f diff --git a/net-print/hplip/files/hplip-3.9.2-high_cpu_utilization_logout.patch b/net-print/hplip/files/hplip-3.9.2-high_cpu_utilization_logout.patch deleted file mode 100644 index 6d2e06b37ef2..000000000000 --- a/net-print/hplip/files/hplip-3.9.2-high_cpu_utilization_logout.patch +++ /dev/null @@ -1,25 +0,0 @@ -Index: hpdio.py -=================================================================== ---- hpdio.py (revision 10469) -+++ hpdio.py (working copy) -@@ -85,12 +85,20 @@ - r, w, e = select.select([r2], [], [r2], 1.0) - except KeyboardInterrupt: - break -+ except select.error, e: -+ if e[0] == errno.EINTR: -+ continue -+ else: -+ break - - if not r: continue - if e: break - - m = ''.join([m, os.read(r2, fmt_size)]) - -+ if not m: -+ break -+ - while len(m) >= fmt_size: - response.clear() - event = device.Event(*struct.unpack(fmt, m[:fmt_size])) diff --git a/net-print/hplip/hplip-3.9.8-r2.ebuild b/net-print/hplip/hplip-3.9.10.ebuild index 7fd0f9b33b16..ea99a6d78a26 100644 --- a/net-print/hplip/hplip-3.9.8-r2.ebuild +++ b/net-print/hplip/hplip-3.9.10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.8-r2.ebuild,v 1.1 2009/10/14 22:05:24 billie Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild,v 1.1 2009/11/12 21:34:46 billie Exp $ EAPI="2" @@ -14,7 +14,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="doc fax gtk +hpcups hpijs libnotify minimal parport policykit qt3 qt4 scanner snmp static-ppds -udev-acl" +IUSE="doc fax gtk +hpcups hpijs libnotify minimal -new-hpcups parport policykit qt3 qt4 scanner snmp static-ppds -udev-acl zeroconf" # Note : libusb-compat untested (calchan 20090516) @@ -22,10 +22,10 @@ COMMON_DEPEND=" virtual/ghostscript media-libs/jpeg hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) - !static-ppds? ( || ( >=net-print/cups-1.4.0 net-print/cupsddk ) ) + !static-ppds? ( || ( >=net-print/cups-1.4.0[zeroconf?] net-print/cupsddk ) ) udev-acl? ( >=sys-fs/udev-145[extras] ) !minimal? ( - net-print/cups + net-print/cups[zeroconf?] virtual/libusb:0 >=dev-lang/python-2.4.4[threads,xml] scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) @@ -83,6 +83,8 @@ 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 and/or hpijs the appropiate" + ewarn "drivers are installed." else use parport && linux-info_pkg_setup fi @@ -141,7 +143,7 @@ src_prepare() { } src_configure() { - local drv_build gui_build myconf + local gui_build myconf drv_build minimal_build if use qt3 || use qt4 ; then gui_build="--enable-gui-build" @@ -156,7 +158,7 @@ src_configure() { use qt3 && gui_build="${gui_build} --enable-qt3 --disable-qt4" fi else - gui_build="--disable-gui-build" + gui_build="--disable-gui-build --disable-qt3 --disable-qt4" fi if use fax || use qt4 ; then @@ -166,7 +168,7 @@ src_configure() { fi if use hpcups ; then - drv_build="${drv_build} $(use_enable hpcups hpcups-install)" + 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" @@ -174,6 +176,9 @@ src_configure() { drv_build="${drv_build} --enable-cups-drv-install" drv_build="${drv_build} --disable-cups-ppd-install" fi + else + drv_build="--disable-hpcups-install --disable-cups-drv-install" + drv_build="${drv_build} --disable-cups-ppd-install" fi if use hpijs ; then @@ -185,24 +190,41 @@ src_configure() { 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-dependency-tracking \ --disable-cups11-build \ --disable-lite-build \ - --disable-new-hpcups \ --disable-foomatic-rip-hplip-install \ --disable-shadow-build \ --with-cupsbackenddir=$(cups-config --serverbin)/backend \ --with-cupsfilterdir=$(cups-config --serverbin)/filter \ --htmldir=/usr/share/doc/${P}/html \ - ${drv_build} \ ${gui_build} \ ${myconf} \ + ${drv_build} \ + ${minimal_build} \ + $(use_enable new-hpcups new-hpcups) \ $(use_enable doc doc-build) \ $(use_enable fax fax-build) \ - $(use_enable minimal hpijs-only-build) \ $(use_enable parport pp-build) \ $(use_enable scanner scan-build) \ $(use_enable snmp network-build) \ @@ -238,13 +260,18 @@ pkg_postinst() { use !minimal && python_mod_optimize /usr/share/${PN} fdo-mime_desktop_database_update - elog "You should run hp-setup as root if you are installing hplip for the first time, and may also" - elog "need to run it if you are upgrading from an earlier version." + elog "You should run hp-setup as root if you are installing hplip for the first time," + elog "and may also need to run it if you are upgrading from an earlier version." elog - elog "If your device is connected using USB, users will need to be in the lp group to access it." + elog "If your device is connected using USB, users will need to be in the lp group to" + elog "access it." elog elog "This release doesn't use an init script anymore, so you should probably do a" elog "'rc-update del hplip' if you are updating from an old version." + elog + elog "Starting with versions of hplip >=3.9.8 mDNS is the default network search" + elog "mechanism. To make use of it you need to activate the zeroconf flag. If you" + elog "prefer the SLP method you have to choose this when configuring the device." } pkg_postrm() { diff --git a/net-print/hplip/hplip-3.9.8-r1.ebuild b/net-print/hplip/hplip-3.9.8-r1.ebuild deleted file mode 100644 index 704557e5574d..000000000000 --- a/net-print/hplip/hplip-3.9.8-r1.ebuild +++ /dev/null @@ -1,258 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.8-r1.ebuild,v 1.2 2009/10/14 18:03:04 billie Exp $ - -EAPI="2" - -inherit fdo-mime linux-info python autotools - -DESCRIPTION="HP Linux Imaging and Printing System. Includes printer, scanner, fax drivers and service tools." -HOMEPAGE="http://hplip.sourceforge.net/" -SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -IUSE="doc fax gtk +hpcups hpijs libnotify minimal parport policykit qt3 qt4 scanner snmp static-ppds" - -# Note : libusb-compat untested (calchan 20090516) - -COMMON_DEPEND=" - virtual/ghostscript - media-libs/jpeg - hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) - !static-ppds? ( || ( >=net-print/cups-1.4.0 net-print/cupsddk ) ) - !minimal? ( - net-print/cups - virtual/libusb:0 - >=dev-lang/python-2.4.4[threads,xml] - scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) - snmp? ( - net-analyzer/net-snmp - dev-libs/openssl - ) - )" - -DEPEND="${COMMON_DEPEND} - dev-util/pkgconfig" - -RDEPEND="${COMMON_DEPEND} - !minimal? ( - kernel_linux? ( >=sys-fs/udev-114 ) - scanner? ( - dev-python/imaging - gtk? ( media-gfx/xsane ) - !gtk? ( media-gfx/sane-frontends ) - ) - fax? ( - dev-python/reportlab - sys-apps/dbus - dev-python/dbus-python - ) - qt3? ( !qt4? ( - dev-python/PyQt - ) ) - qt4? ( - dev-python/PyQt4[dbus,X] - dev-python/pygobject - libnotify? ( - dev-python/notify-python - ) - policykit? ( - sys-auth/policykit - ) - ) - )" - -CONFIG_CHECK="~PARPORT ~PPDEV" -ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (PARPORT and PPDEV)." - -pkg_setup() { - ! use qt3 && ! use qt4 && ewarn "You need USE=qt4 or USE=qt3 for the hplip GUI." - - use scanner && ! use gtk && ewarn "You need USE=gtk 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." - ewarn "Recommended USE flags: USE=\"hpcups -hpijs\")." - fi - - if use minimal ; then - ewarn "Installing driver portions only, make sure you know what you are doing." - else - use parport && linux-info_pkg_setup - fi -} - -src_prepare() { - sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ - -e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ - base/utils.py || die "Sed base/utils.py failed" - - # bug 98428 - sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Sed hpssd.py failed" - - # Force recognition of Gentoo distro by hp-check - sed -i \ - -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ - installer/core_install.py || die "Sed installer/core_install.py failed" - - # SYSFS deprecated - https://bugs.launchpad.net/hplip/+bug/346390 - sed -i -e "s/SYSFS/ATTRS/g" -e "s/sysfs/attrs/g" data/rules/56-hpmud_support.rules \ - || die "Sed data/rules/56-hpmud_support.rules failed" - - # Replace udev rules, see bug #197726. - mv data/rules/40-hplip.rules data/rules/70-hplip.rules || die - sed -i \ - -e "s/40-hplip.rules/70-hplip.rules/g" \ - Makefile.am */*.html || die "Sed Makefile.am */*.html failed" - - sed -i \ - -e s:/usr/lib/cups/driver:$(cups-config --serverbin)/driver:g \ - installer/core_install.py || die "Sed installer/core_install.py failed" - - # Use system foomatic-rip instead of foomatic-rip-hplip - local i - for i in ppd/{hpcups,hpijs}/*.ppd.gz - do - rm -f ${i}.temp - gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die "Sed *.ppd.gz failed" - mv ${i}.temp ${i} - done - - local qt_ver - if use qt3 || use qt4 ; then - use qt3 && qt_ver="3" - use qt4 && qt_ver="4" - sed -i \ - -e "s/%s --force-startup/%s --force-startup --qt${qt_ver}/" \ - -e "s/'--force-startup'/'--force-startup', '--qt${qt_ver}'/" \ - base/device.py || die "Sed base/device.py failed" - sed -i \ - -e "s/Exec=hp-systray/Exec=hp-systray --qt${qt_ver}/" \ - hplip-systray.desktop.in || die "Sed hplip-systray.desktop.in failed" - fi - - # htmldocs are not installed under docdir/html - # the following sed enables --htmldir configure switch in src_configure - if use doc ; then - sed -i -e 's/www\([0-9]\)dir = $(docdir)/www\1dir = $(htmldir)/g' Makefile.am || die "Sed Makefile.am failed" - fi - - eautoreconf -} - -src_configure() { - local drv_build gui_build myconf - - if use qt3 || use qt4 ; then - gui_build="--enable-gui-build" - if use qt4 ; then - gui_build="${gui_build} --enable-qt4 --disable-qt3" - if use policykit ; then - myconf="--enable-policykit" - else - myconf="--disable-policykit" - fi - else - use qt3 && gui_build="${gui_build} --enable-qt3 --disable-qt4" - fi - else - gui_build="--disable-gui-build" - fi - - if use fax || use qt4 ; then - myconf="${myconf} --enable-dbus-build" - else - myconf="${myconf} --disable-dbus-build" - fi - - if use hpcups ; then - drv_build="${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 - 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 - fi - - econf \ - --disable-dependency-tracking \ - --disable-cups11-build \ - --disable-lite-build \ - --disable-new-hpcups \ - --disable-foomatic-rip-hplip-install \ - --disable-shadow-build \ - --with-cupsbackenddir=$(cups-config --serverbin)/backend \ - --with-cupsfilterdir=$(cups-config --serverbin)/filter \ - --htmldir=/usr/share/doc/${P}/html \ - --enable-udev-acl-rules \ - ${drv_build} \ - ${gui_build} \ - ${myconf} \ - $(use_enable doc doc-build) \ - $(use_enable fax fax-build) \ - $(use_enable minimal hpijs-only-build) \ - $(use_enable parport pp-build) \ - $(use_enable scanner scan-build) \ - $(use_enable snmp network-build) -} - -src_install() { - emake DESTDIR="${D}" install || die "Emake install failed" - rm -f "${D}"/etc/sane.d/dll.conf - - use minimal && rm -r "${D}"/usr/$(get_libdir) - - # bug 106035/259763 - if ! use qt3 && ! use qt4 ; then - rm -r "${D}"/usr/share/applications "${D}"/etc/xdg - fi - - # kde3 autostart hack - if [[ -d /usr/kde/3.5/share/autostart ]] && use !minimal ; then - insinto /usr/kde/3.5/share/autostart - doins hplip-systray.desktop - fi -} - -pkg_preinst() { - # avoid collisions with cups-1.2 compat symlinks - if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ] ; then - rm "${ROOT}"/usr/libexec/cups/backend/hp{,fax} - fi -} - -pkg_postinst() { - use !minimal && python_mod_optimize /usr/share/${PN} - fdo-mime_desktop_database_update - - elog "You should run hp-setup as root if you are installing hplip for the first time, and may also" - elog "need to run it if you are upgrading from an earlier version." - elog - elog "If your device is connected using USB, users will need to be in the lp group to access it." - elog - elog "This release doesn't use an init script anymore, so you should probably do a" - elog "'rc-update del hplip' if you are updating from an old version." -} - -pkg_postrm() { - use !minimal && python_mod_cleanup /usr/share/${PN} - fdo-mime_desktop_database_update -} diff --git a/net-print/hplip/hplip-3.9.8.ebuild b/net-print/hplip/hplip-3.9.8.ebuild deleted file mode 100644 index d0450eba1a2d..000000000000 --- a/net-print/hplip/hplip-3.9.8.ebuild +++ /dev/null @@ -1,239 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.8.ebuild,v 1.2 2009/10/14 18:03:04 billie Exp $ - -EAPI="2" - -inherit eutils fdo-mime linux-info python autotools - -DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools." -HOMEPAGE="http://hplip.sourceforge.net/" -SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" - -IUSE="+cups cupsddk dbus doc fax +foomatic gtk minimal parport policykit ppds qt3 qt4 scanner snmp" - -# Note : libusb-compat untested (calchan 20090516) - -DEPEND="!net-print/hpijs - !net-print/hpoj - >=dev-lang/python-2.4.4[threads] - virtual/ghostscript - media-libs/jpeg - !minimal? ( - net-print/cups - virtual/libusb:0 - cupsddk? ( - foomatic? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) - || ( >=net-print/cups-1.4.0 net-print/cupsddk ) - ) - ppds? ( - foomatic? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) - ) - scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) - snmp? ( - net-analyzer/net-snmp - dev-libs/openssl - ) - )" - -RDEPEND="${DEPEND} - !minimal? ( - kernel_linux? ( >=sys-fs/udev-114 ) - scanner? ( - dev-python/imaging - dev-python/reportlab - gtk? ( media-gfx/xsane ) - !gtk? ( media-gfx/sane-frontends ) - ) - fax? ( - dev-python/reportlab - ) - qt3? ( !qt4? ( - dev-python/PyQt - ) ) - qt4? ( - dev-python/PyQt4[X] - ) - dbus? ( - sys-apps/dbus - dev-python/dbus-python - dev-python/pygobject - ) - policykit? ( - sys-auth/policykit - dev-python/pygobject - dev-python/dbus-python - ) - )" - -CONFIG_CHECK="~PARPORT ~PPDEV" -ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (PARPORT and PPDEV)." - -pkg_setup() { - ! use qt3 && ! use qt4 && ewarn "You need USE=qt3 or USE=qt4 for the hplip GUI." - - use scanner && ! use gtk && ewarn "You need USE=gtk for the scanner GUI." - - if ! use ppds && ! use cupsddk && ! use cups; then - ewarn "Installing neither static (USE=-ppds) nor dynamic (USE=-cupsddk) PPD files," - ewarn "nor hpcups driver (USE=-cups) which is probably not what you want." - ewarn "You will almost certainly not be able to print (recommended: USE=\"cups -cupsddk -ppds\")." - fi - - if use minimal ; then - ewarn "Installing hpijs driver only, make sure you know what you are doing." - else - use parport && linux-info_pkg_setup - fi -} - -src_prepare() { - sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ - -e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ - base/utils.py || die "Patching base/utils.py failed" - - # bug 98428 - sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed" - - # Force recognition of Gentoo distro by hp-check - sed -i \ - -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ - installer/core_install.py || die "sed core_install.py" - - # SYSFS deprecated - https://bugs.launchpad.net/hplip/+bug/346390 - sed -i -e "s/SYSFS/ATTRS/g" -e "s/sysfs/attrs/g" data/rules/56-hpmud_support.rules || die "sed failed" - - # Replace udev rules, see bug #197726. - mv data/rules/40-hplip.rules data/rules/70-hplip.rules || die - sed -i \ - -e "s/40-hplip.rules/70-hplip.rules/g" \ - Makefile.am */*.html || die "sed failed" - - sed -i \ - -e s:/usr/lib/cups/driver:$(cups-config --serverbin)/driver:g \ - installer/core_install.py || die "sed core_install.py" - - # Use system foomatic-rip instead of foomatic-rip-hplip - local i - for i in ppd/{hpcups,hpijs}/*.ppd.gz - do - rm -f ${i}.temp - gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die "*.ppd.gz sed failed" - mv ${i}.temp ${i} - done - - # Qt4 is still undocumented by upstream, so use with caution - local qt_ver - use qt3 && qt_ver="3" - use qt4 && qt_ver="4" - if use qt3 || use qt4 ; then - sed -i \ - -e "s/%s --force-startup/%s --force-startup --qt${qt_ver}/" \ - -e "s/'--force-startup'/'--force-startup', '--qt${qt_ver}'/" \ - base/device.py || die "sed failed" - sed -i \ - -e "s/Exec=hp-systray/Exec=hp-systray --qt${qt_ver}/" \ - hplip-systray.desktop.in || die "sed failed" - fi - - eautoreconf -} - -src_configure() { - local myconf - - if use qt3 || use qt4 ; then - local gui_build="--enable-gui-build" - if use qt4; then - gui_build="${gui_build} --enable-qt4 --disable-qt3" - else - use qt3 && gui_build="${gui_build} --enable-qt3 --disable-qt4" - fi - else - local gui_build="--disable-gui-build" - fi - - if use cupsddk; then - myconf="${myconf} $(use_enable foomatic foomatic-drv-install)" - else - myconf="${myconf} --disable-foomatic-drv-install" - fi - - if use ppds; then - myconf="${myconf} $(use_enable foomatic foomatic-ppd-install)" - else - myconf="${myconf} --disable-foomatic-ppd-install" - fi - - econf \ - --disable-dependency-tracking \ - --disable-cups11-build \ - --with-cupsbackenddir=$(cups-config --serverbin)/backend \ - --with-cupsfilterdir=$(cups-config --serverbin)/filter \ - --disable-foomatic-rip-hplip-install \ - --enable-udev-acl-rules \ - ${myconf} \ - ${gui_build} \ - $(use_enable doc doc-build) \ - $(use_enable cups hpcups-install) \ - $(use_enable ppds cups-ppd-install) \ - $(use_enable cupsddk cups-drv-install) \ - $(use_enable dbus dbus-build) \ - $(use_enable fax fax-build) \ - $(use_enable minimal hpijs-only-build) \ - $(use_enable parport pp-build) \ - $(use_enable scanner scan-build) \ - $(use_enable snmp network-build) \ - $(use_enable policykit policykit) -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - rm -f "${D}"/etc/sane.d/dll.conf - - use minimal && rm -r "${D}"/usr/$(get_libdir) - - # bug 106035/259763 - if ! use qt3 && ! use qt4; then - rm -r "${D}"/usr/share/applications "${D}"/etc/xdg - fi - - # kde3 autostart hack - if [[ -d /usr/kde/3.5/share/autostart ]] && use !minimal ; then - insinto /usr/kde/3.5/share/autostart - doins hplip-systray.desktop - fi - - pushd doc - dohtml -r * - popd -} - -pkg_preinst() { - # avoid collisions with cups-1.2 compat symlinks - if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ]; then - rm "${ROOT}"/usr/libexec/cups/backend/hp{,fax} - fi -} - -pkg_postinst() { - python_mod_optimize /usr/share/${PN} - fdo-mime_desktop_database_update - - elog "You should run hp-setup as root if you are installing hplip for the first time, and may also" - elog "need to run it if you are upgrading from an earlier version." - elog - elog "If your device is connected using USB, users will need to be in the lp group to access it." - elog - elog "This release doesn't use an init script anymore, so you should probably do a" - elog "'rc-update del hplip' if you are updating from an old version." -} - -pkg_postrm() { - python_mod_cleanup /usr/share/${PN} - fdo-mime_desktop_database_update -} diff --git a/net-print/hplip/metadata.xml b/net-print/hplip/metadata.xml index cbfc8b78c86b..55a6fab67449 100644 --- a/net-print/hplip/metadata.xml +++ b/net-print/hplip/metadata.xml @@ -20,53 +20,44 @@ </maintainer> <use> - <flag name='cupsddk'>Add support for <pkg>net-print/cupsddk</pkg> which + <flag name="doc">Build documentation</flag> + <flag name="cupsddk">Add support for <pkg>net-print/cupsddk</pkg> which enables dynamic PPD files (recommended)</flag> - <flag name='dbus'>Add support for <pkg>sys-apps/dbus</pkg> which enables + <flag name="dbus">Add support for <pkg>sys-apps/dbus</pkg> which enables better communications with your device (recommended)</flag> - <flag name='doc'>Build documentation</flag> - <flag name='fax'>Enable fax on multifunction devices which support it</flag> - <flag name='gtk'>Enable GTK+ dependencies, currently only the scanner GUI - with USE=scanner.</flag> - <flag name='minimal'>Only build internal hpijs driver (not recommended at + <flag name="fax">Enable fax on multifunction devices which support + it</flag> + <flag name="gtk">Enable GTK+ dependencies, currently only the scanner GUI + with USE=scanner</flag> + <flag name="hpcups">Build the hpcups driver for cups (by HP)</flag> + <flag name="hpijs">Build the IJS driver for cups (Foomatic)</flag> + <flag name="libnotify">Enables desktop notifications</flag> + <flag name="minimal">Only build internal hpijs driver (not recommended at all, make sure you know what you are doing)</flag> - <flag name='parport'>Enable parallel port for devices which require + <flag name="new-hpcups">Build the new hpcups driver for cups which is no + longer based on APDK (by HP)</flag> + <flag name="parport">Enable parallel port for devices which require it</flag> - <flag name='ppds'>Use precompiled PPD files (obsolete, use cupsddk + <flag name="policykit">Enable sys-auth/policykit authentication + support</flag> + <flag name="ppds">Use precompiled PPD files (obsolete, use cupsddk instead)</flag> - <flag name='qt3'>Enable graphical interface using Qt 3; when both qt3 and - qt4 USE flags are enabled then qt4 has priority over qt3</flag> - <flag name='qt4'>Enable graphical interface using Qt 4; when both qt3 and - qt4 USE flags are enabled then qt4 has priority over qt3</flag> - <flag name='scanner'>Enable scanner on multifunction devices which support - it </flag> - <flag name='snmp'>Add support for <pkg>net-analyzer/net-snmp</pkg> - which enables this driver to work over networks (both for server and + <flag name="qt3">Enable graphical interface using Qt 3; when both qt3 and + qt4 USE flags are enabled then qt4 has priority over qt3</flag> + <flag name="qt4">Enable graphical interface using Qt 4; when both qt3 and + qt4 USE flags are enabled then qt4 has priority over qt3</flag> + <flag name="scanner">Enable scanner on multifunction devices which support + it</flag> + <flag name="snmp">Add support for <pkg>net-analyzer/net-snmp</pkg> which + enables this driver to work over networks (both for server and client)</flag> - <flag name='udev-acl'>Install udev acl rules. This needs - <pkg>sys-fs/udev</pkg> with acl support.</flag> - <flag name='zeroconf'>Zeroconf support. Enable this flag to make use of the - mDNS network search for network attached printers.</flag> - <flag name="cups"> - Build the hpcups driver for cups. - </flag> - <flag name="foomatic"> - Build the IJS/foomatic driver for cups. - </flag> - - <flag name="hpcups"> - Build the hpcups driver for cups (by HP). - </flag> - - <flag name="hpijs"> - Build the IJS driver for cups (Foomatic) - </flag> - - <flag name="static-ppds"> - Use statically-generated PPDs instead of Dynamic PPDs. This is - deprecated, and this USE flag is thus suggested to stay turned - off. - </flag> + <flag name="static-ppds">Use statically-generated PPDs instead of Dynamic + PPDs. This is deprecated, and this USE flag is thus suggested to stay + turned off</flag> + <flag name="udev-acl">Install udev acl rules which needs + <pkg>sys-fs/udev</pkg> with acl support</flag> + <flag name="zeroconf">Zeroconf support. Enable this flag to make use of the + mDNS network search for network attached printers</flag> </use> </pkgmetadata> |