summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2007-04-27 06:58:42 +0000
committerDenis Dupeyron <calchan@gentoo.org>2007-04-27 06:58:42 +0000
commit6ef1c6b7af786c9bd38e7f3e89c2c5de491b3b6e (patch)
treefed624f62ab742de6623e6d34bfd8c581772deda /net-print/hplip
parentAdded rdiff-backup-1.1.5 to the tree. (diff)
downloadgentoo-2-6ef1c6b7af786c9bd38e7f3e89c2c5de491b3b6e.tar.gz
gentoo-2-6ef1c6b7af786c9bd38e7f3e89c2c5de491b3b6e.tar.bz2
gentoo-2-6ef1c6b7af786c9bd38e7f3e89c2c5de491b3b6e.zip
Version bump. Added fax and parport local USE flags. Dependency cleanups.
(Portage version: 2.1.2.4)
Diffstat (limited to 'net-print/hplip')
-rw-r--r--net-print/hplip/ChangeLog8
-rw-r--r--net-print/hplip/files/digest-hplip-1.7.4a6
-rw-r--r--net-print/hplip/hplip-1.7.4a.ebuild133
-rw-r--r--net-print/hplip/metadata.xml4
4 files changed, 150 insertions, 1 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog
index 1400e3d1cded..8f2ca2792f21 100644
--- a/net-print/hplip/ChangeLog
+++ b/net-print/hplip/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-print/hplip
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.60 2007/04/23 22:29:26 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.61 2007/04/27 06:58:42 calchan Exp $
+
+*hplip-1.7.4a (27 Apr 2007)
+
+ 27 Apr 2007; Denis Dupeyron <calchan@gentoo.org> metadata.xml,
+ +hplip-1.7.4a.ebuild:
+ Version bump. Added fax and parport local USE flags. Dependency cleanups.
*hplip-1.7.4 (23 Apr 2007)
diff --git a/net-print/hplip/files/digest-hplip-1.7.4a b/net-print/hplip/files/digest-hplip-1.7.4a
new file mode 100644
index 000000000000..5fae59ecf518
--- /dev/null
+++ b/net-print/hplip/files/digest-hplip-1.7.4a
@@ -0,0 +1,6 @@
+MD5 1c4b65222333d048450d37082d521b1e foomatic-db-hpijs-20060720.tar.gz 98252
+RMD160 0c2c09f3cea6fc2a8e5da216bd9996b96d91613d foomatic-db-hpijs-20060720.tar.gz 98252
+SHA256 1e50f603b46b1d07980212b2e5dfc5d72d07c889259e79ecbf09469fef5ad20e foomatic-db-hpijs-20060720.tar.gz 98252
+MD5 210e948d1f1f376426a2cca0ed9d1e6c hplip-1.7.4a.tar.gz 13566965
+RMD160 e2777b8b065abe385bfe557b9eed86848029e2c9 hplip-1.7.4a.tar.gz 13566965
+SHA256 903957b1b1aa86438d546a205a3d526a600b1e56754a5ba5ce99228a26cc475e hplip-1.7.4a.tar.gz 13566965
diff --git a/net-print/hplip/hplip-1.7.4a.ebuild b/net-print/hplip/hplip-1.7.4a.ebuild
new file mode 100644
index 000000000000..ed6afc7071e5
--- /dev/null
+++ b/net-print/hplip/hplip-1.7.4a.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-1.7.4a.ebuild,v 1.1 2007/04/27 06:58:42 calchan Exp $
+
+inherit eutils
+
+DB_V=20060720
+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
+ foomaticdb? (
+ http://gentooexperimental.org/~genstef/dist/foomatic-db-hpijs-${DB_V}.tar.gz
+ http://www.linuxprinting.org/download/foomatic/foomatic-db-hpijs-${DB_V}.tar.gz
+ )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cups fax foomaticdb parport ppds qt3 scanner snmp X"
+
+DEPEND="!net-print/hpijs
+ !net-print/hpoj
+ dev-libs/openssl
+ virtual/ghostscript
+ >=media-libs/jpeg-6b
+ net-print/cups
+ dev-libs/libusb
+ >=dev-lang/python-2.2
+ net-print/foomatic-filters
+ fax? ( >=dev-lang/python-2.3
+ dev-python/reportlab )
+ foomaticdb? ( net-print/foomatic-db-engine )
+ snmp? ( net-analyzer/net-snmp )
+ qt3? ( >=dev-python/PyQt-3.11 =x11-libs/qt-3* )
+ scanner? (
+ >=media-gfx/sane-backends-1.0.9
+ X? ( || (
+ >=media-gfx/xsane-0.89
+ >=media-gfx/sane-frontends-1.0.9
+ ) )
+ !X? ( || (
+ >=media-gfx/sane-frontends-1.0.9
+ >=media-gfx/xsane-0.89
+ ) )
+ )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ # 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 -f ${ROOT}/usr/libexec/cups/backend/hp{,fax};
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # bug 98428
+ sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" \
+ hpssd.py
+}
+src_compile() {
+ econf \
+ $(use_enable cups cups-install) \
+ $(use_enable fax fax-build) \
+ $(use_enable parport pp-build) \
+ $(use_enable ppds foomatic-install) \
+ $(use_enable qt3 gui-build) \
+ $(use_enable scanner scan-build) \
+ $(use_enable snmp network-build) \
+ || die "econf failed"
+ emake || die "emake failed"
+
+ if use foomaticdb ; then
+ cd ../foomatic-db-hpijs-${DB_V}
+ econf || die "econf failed"
+ rm -fR data-generators/hpijs-rss
+ emake || die "emake failed"
+ fi
+}
+
+
+src_install() {
+ # cups-1.2 installation paths, make sure that the .desktop is installed
+ sed -i -e "s:/usr/lib/cups:$(cups-config --serverbin):" \
+ -e 's:\(ICON_FILE = \).*:\1hplip.desktop:' \
+ -e 's:\(ICON_PATH = \).*:\1/usr/share/applications:' \
+ Makefile
+
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+
+ newinitd "${FILESDIR}"/hplip.init.d hplip
+
+ if use scanner; then
+ dodir /usr/$(get_libdir)/sane
+ for i in libsane-hpaio.{la,so{,.1{,.0.0}}}; do
+ dosym /usr/$(get_libdir)/${i} /usr/$(get_libdir)/sane/${i}; done
+ else
+ rm -f "${D}"/usr/$(get_libdir)/libsane-hpaio.{la,so{,.1{,.0.0}}}
+ rm -f "${D}"/etc/sane.d/dll.conf
+ fi
+
+ # bug 106035
+ if ! use qt3 ; then
+ rm -f "${D}"/usr/{bin/hp-,share/hplip/}{print,toolbox}
+ rm -f "${D}"/usr/share/applications/hplip.desktop
+ rm -f "${D}"/usr/lib/menu/hplip
+ fi
+
+ rm -rf ${D}/$(cups-config --serverbin)/filter ${D}/usr/bin/foomatic-rip
+
+ if use foomaticdb ; then
+ cd ../foomatic-db-hpijs-${DB_V}
+ emake DESTDIR="${D}" install || die "emake install failed"
+ fi
+}
+
+pkg_preinst() {
+ if use scanner; then
+ insinto /etc/sane.d
+ [ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf .
+ [ -e ${ROOT}/etc/sane.d/dll.conf ] && cp ${ROOT}/etc/sane.d/dll.conf .
+ grep -q hpaio dll.conf || echo hpaio >> dll.conf
+ doins dll.conf
+ fi
+}
+
+pkg_postinst() {
+ if ! use qt3 ; then
+ elog "You need to enable the qt3 useflag to use the GUI"
+ fi
+}
diff --git a/net-print/hplip/metadata.xml b/net-print/hplip/metadata.xml
index 1fa0ca569505..3f0df6e37ab5 100644
--- a/net-print/hplip/metadata.xml
+++ b/net-print/hplip/metadata.xml
@@ -2,4 +2,8 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>printing</herd>
+<maintainer>
+<email>calchan@gentoo.org</email>
+<name>Denis Dupeyron</name>
+</maintainer>
</pkgmetadata>