# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /cvs/linux-imaging-and-printing/test/hplip-0.8.4.ebuild,v 1.2 2005/01/13 18:17:33 come Exp $ inherit eutils DESCRIPTION="HP Linux and Imaging Solution" HOMEPAGE="http://hpinkjet.sourceforge.net/" SRC_URI="mirror://sourceforge/hpinkjet/${P}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="x86" IUSE="scanner qt X snmp cups usb" DEPEND="scanner? ( >=media-gfx/sane-backends-1.0.9 ) scanner? ( || ( X? ( >=media-gfx/xsane-0.89 ) >=media-gfx/sane-frontends-1.0.9 ) ) snmp? ( net-analyzer/net-snmp ) cups? ( >=net-print/cups-1.1.18-r2 ) usb? ( dev-libs/libusb sys-apps/hotplug ) qt? ( dev-python/PyQt )" HPLIP_HOME="/usr/local/hplip" src_compile() { myconf="" use snmp \ && myconf="${myconf} --with-snmp=/usr" \ || myconf="${myconf} --without-snmp" use qt \ && myconf="${myconf} --with-qt=/usr/qt/3" \ || myconf="${myconf} --without-qt" use scanner \ && myconf="${myconf} --with-sane-backend=/usr" \ || myconf="${myconf} --without-sane" ./configure ${myconf} --prefix=/usr --enable-rpm-install # --disable-cups-install emake || die } src_install() { # do this manually einstall || die exeinto /etc/init.d newexec ${FILESDIR}/init.d.hplip hplip } src_postinst() { dosym $HPLIP_HOME/hpssd.py /usr/bin/hpssd }