# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-print/lprng/lprng-3.8.26.ebuild,v 1.2 2004/03/17 09:45:28 seemant Exp $ inherit eutils flag-o-matic IUSE="nls snmp" MY_PN=ifhp S=${WORKDIR}/${MY_PN}-${PV} DESCRIPTION="HP print filter" HOMEPAGE="http://www.lprng.com/" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64" SRC_URI="ftp://ftp.lprng.com/pub/LPRng/${MY_PN}/${MY_PN}-${PV}.tgz" DEPEND="virtual/glibc nls? ( sys-devel/gettext ) snmp? ( dev-perl/Net-SNMP ) " RDEPEND="virtual/glibc virtual/lpr" LICENSE="GPL-2 | Artistic" SLOT="0" src_compile() { local myconf use nls && myconf="--enable-nls" || myconf="--disable-nls" use snmp || myconf="$myconf --disable-snmp" # wont compile with -O3, needs -O2 #replace-flags -O[3-9] -O2 ./configure \ --prefix=/usr \ --libexecdir=/usr/lib \ --sysconfdir=/etc/ifhp \ --mandir=/usr/share/man \ --disable-gscheck \ --host=${CHOST} ${myconf} || die make || die "printer on fire!" } src_install() { make install \ DESTDIR=${D} \ POSTINSTALL=NO \ gnulocaledir=${D}/usr/share/locale || die dodoc CHANGES Copyright LICENSE README* VERSION \ HOWTO/IFHP-HOWTO.pdf dohtml HOWTO/* insinto /etc/ifhp newins ifhp.conf ifhp.conf.sample exeinto /etc/init.d newexe ${FILESDIR}/lprng-init lprng } pkg_postinst() { einfo "If printing does not work, try 'checkpc'/'checkpc -f'" }