# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-print/cupsddk/cupsddk-1.2.3.ebuild,v 1.8 2011/03/20 20:04:48 jlec Exp $ EAPI=1 inherit autotools eutils DESCRIPTION="Drivers, PPD file compiler, and utilities to develop printer drivers for CUPS and other printing envs" HOMEPAGE="http://www.cups.org/software.php#USING_DDK" SRC_URI="ftp://ftp.easysw.com/pub/${PN}/${PV}/${P}-source.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc ppc64 x86" IUSE="fltk" DEPEND=" >=net-print/cups-1.2 fltk? ( x11-libs/fltk:1 )" RDEPEND="${DEPEND}" WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" src_unpack() { unpack ${A} cd "${S}" # disable prestripping of compiled binaries sed -i -e "/INSTALL_BIN/s/-s//" Makedefs.in || die "sed failed" # fix automagic fltk dependency epatch "${FILESDIR}"/${P}-fltk-automagic.patch eautoconf } src_compile() { econf BUILDROOT="${D}" \ --with-docdir=/usr/share/doc/${PF} \ $(use_with fltk) \ || die "econf failed" emake BUILDROOT="${D}" || die "emake failed" } src_install() { emake BUILDROOT="${D}" install || die "emake install failed" keepdir /usr/share/cups/drv rm -f LICENSE.* doc/Makefile dodoc *.txt dohtml -r doc/* }