# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/gutenprint-5.1.7.ebuild,v 1.2 2008/04/05 16:21:37 genstef Exp $ inherit flag-o-matic eutils multilib IUSE="cups foomaticdb gimp gtk readline ppds" DESCRIPTION="Ghostscript and cups printer drivers" HOMEPAGE="http://gutenprint.sourceforge.net" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2" RESTRICT="test" RDEPEND="cups? ( >=net-print/cups-1.1.14 ) virtual/ghostscript sys-libs/readline gtk? ( >=x11-libs/gtk+-2.0 ) gimp? ( >=media-gfx/gimp-2.2 >=x11-libs/gtk+-2.0 ) dev-lang/perl foomaticdb? ( net-print/foomatic-db-engine )" DEPEND="${RDEPEND} gtk? ( dev-util/pkgconfig )" LICENSE="GPL-2" SLOT="0" append-flags -fno-inline-functions src_compile() { if use cups && use ppds; then myconf="${myconf} --enable-cups-ppds --enable-cups-level3-ppds" else myconf="${myconf} --disable-cups-ppds" fi if use gtk || use gimp; then myconf="${myconf} --enable-libgutenprintui2" else myconf="${myconf} --disable-libgutenprintui2" fi use foomaticdb \ && myconf="${myconf} --with-foomatic3" \ || myconf="${myconf} --without-foomatic" econf \ --enable-test \ --enable-epson \ --with-ghostscript \ --with-user-guide \ --with-samples \ --with-escputil \ --disable-translated-cups-ppds \ --enable-nls \ $(use_with readline) \ $(use_with gimp gimp2) \ $(use_with gimp gimp2-as-gutenprint) \ $(use_with cups) \ $myconf || die "econf failed" # IJS Patch sed -i -e "s: