# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp-print/gimp-print-4.2.7.ebuild,v 1.11 2005/09/13 16:37:17 agriffis Exp $ inherit libtool IUSE="nls gtk readline cups foomaticdb ppds" DESCRIPTION="Gimp Print Drivers" HOMEPAGE="http://gimp-print.sourceforge.net" KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86" SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.gz" DEPEND="cups? ( >=net-print/cups-1.1.14 ) media-gfx/imagemagick virtual/ghostscript sys-libs/readline gtk? ( =x11-libs/gtk+-1.2* ) dev-lang/perl foomaticdb? ( net-print/foomatic-db-engine )" LICENSE="GPL-2" SLOT="0" src_compile() { elibtoolize --reverse-deps local myconf use nls \ && myconf="${myconf} --enable-nls" \ || myconf="${myconf} --disable-nls" use readline \ && myconf="${myconf} --with-readline" \ || myconf="${myconf} --without-readline" use gtk \ && myconf="${myconf} --enable-lexmarkutil" \ || myconf="${myconf} --disable-lexmarkutil" has_version =media-gfx/gimp-1.2* \ && myconf="${myconf} --with-gimp" \ || myconf="${myconf} --without-gimp" if use cups; then myconf="${myconf} --with-cups" else myconf="${myconf} --without-cups" fi use foomaticdb \ && myconf="${myconf} --with-foomatic3" \ || myconf="${myconf} --without-foomatic" GIMPTOOL=/usr/bin/gimptool-1.2 econf \ --enable-test \ --with-ghosts \ --with-user-guide \ --with-samples \ --with-escputil \ --without-translated-ppds \ $myconf || die # IJS Patch sed -i -e "s/