diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2006-10-20 18:38:05 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2006-10-20 18:38:05 +0000 |
commit | 6a64d51f07f09b47b22ea4084c029a949fc912ed (patch) | |
tree | 19a4b1f80a64b1d8f70ecc7d631c732fad2230ce /net-print/hplip/hplip-1.6.10.ebuild | |
parent | Version bump, marked newer version stable on amd64 and pruned old version. (diff) | |
download | historical-6a64d51f07f09b47b22ea4084c029a949fc912ed.tar.gz historical-6a64d51f07f09b47b22ea4084c029a949fc912ed.tar.bz2 historical-6a64d51f07f09b47b22ea4084c029a949fc912ed.zip |
version bump thanks to Francisco Lloret <fcolloret@terra.es> in bug 152139 and fix san dll.conf thanks to rob miller <rob@janerob.com> in bug 150801
Package-Manager: portage-2.1.2_pre3-r5
Diffstat (limited to 'net-print/hplip/hplip-1.6.10.ebuild')
-rw-r--r-- | net-print/hplip/hplip-1.6.10.ebuild | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/net-print/hplip/hplip-1.6.10.ebuild b/net-print/hplip/hplip-1.6.10.ebuild new file mode 100644 index 000000000000..4efac1c34128 --- /dev/null +++ b/net-print/hplip/hplip-1.6.10.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-1.6.10.ebuild,v 1.1 2006/10/20 18:38:05 genstef 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="foomaticdb snmp X qt3 ppds scanner" + +DEPEND=">=dev-lang/python-2.2.0 + snmp? ( >=net-analyzer/net-snmp-5.0.9 ) + !net-print/hpijs + !net-print/hpoj" + +RDEPEND="virtual/ghostscript + scanner? ( + >=media-gfx/sane-backends-1.0.9 + || ( + X? ( >=media-gfx/xsane-0.89 ) + >=media-gfx/sane-frontends-1.0.9 + ) + ) + qt3? ( >=dev-python/PyQt-3.11 =x11-libs/qt-3* ) + >=dev-libs/libusb-0.1.10a + sys-apps/hotplug-base + net-print/cups + foomaticdb? ( net-print/foomatic-db-engine ) + >=net-print/foomatic-filters-3.0.2 + ${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 snmp network-build) \ + $(use_enable cups cups-install) \ + $(use_enable ppds foomatic-install) \ + || 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 + dosym /usr/$(get_libdir)/libsane-hpaio.la /usr/$(get_libdir)/sane/libsane-hpaio.la + dosym /usr/$(get_libdir)/libsane-hpaio.so /usr/$(get_libdir)/sane/libsane-hpaio.so + dosym /usr/$(get_libdir)/libsane-hpaio.so.1 /usr/$(get_libdir)/sane/libsane-hpaio.so.1 + dosym /usr/$(get_libdir)/libsane-hpaio.so.1.0.0 /usr/$(get_libdir)/sane/libsane-hpaio.so.1.0.0 + else + rm -f "${D}"/usr/$(get_libdir)/libsane-hpaio.la + rm -f "${D}"/usr/$(get_libdir)/libsane-hpaio.so + rm -f "${D}"/usr/$(get_libdir)/libsane-hpaio.so.1 + rm -f "${D}"/usr/$(get_libdir)/libsane-hpaio.so.1.0.0 + fi + + # bug 106035 + if ! use qt3 ; then + rm -f "${D}"/usr/bin/hp-print + rm -f "${D}"/usr/bin/hp-toolbox + rm -f "${D}"/usr/share/hplip/print + rm -f "${D}"/usr/share/hplip/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 ] && ${ROOT}/etc/sane.d/dll.conf . + grep -q hpaio dll.conf || echo hpaio >> dll.conf + doins dll.conf + fi +} |