diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2010-02-23 14:59:03 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2010-02-23 14:59:03 +0000 |
commit | c3a08b8ecc2adc47945cedf0343b2b2544eb79cd (patch) | |
tree | 78ec42a1d6a93cd4c1360e5cfdfe25415237fea3 /net-print | |
parent | Marked ppc/ppc64 stable for bug #305733. (diff) | |
download | gentoo-2-c3a08b8ecc2adc47945cedf0343b2b2544eb79cd.tar.gz gentoo-2-c3a08b8ecc2adc47945cedf0343b2b2544eb79cd.tar.bz2 gentoo-2-c3a08b8ecc2adc47945cedf0343b2b2544eb79cd.zip |
[net-print/gutenprint] Revbump to eapi2
(Portage version: 2.2_rc63/cvs/Linux x86_64)
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/gutenprint/ChangeLog | 8 | ||||
-rw-r--r-- | net-print/gutenprint/gutenprint-5.2.5-r1.ebuild | 93 |
2 files changed, 100 insertions, 1 deletions
diff --git a/net-print/gutenprint/ChangeLog b/net-print/gutenprint/ChangeLog index 0664bb694c41..7427f4c38cce 100644 --- a/net-print/gutenprint/ChangeLog +++ b/net-print/gutenprint/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-print/gutenprint # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/ChangeLog,v 1.9 2010/02/23 12:51:49 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/ChangeLog,v 1.10 2010/02/23 14:59:03 alexxy Exp $ + +*gutenprint-5.2.5-r1 (23 Feb 2010) + + 23 Feb 2010; Alexey Shvetsov <alexxy@gentoo.org> + +gutenprint-5.2.5-r1.ebuild: + Revbump to EAPI2 23 Feb 2010; Alexey Shvetsov <alexxy@gentoo.org> gutenprint-5.2.5.ebuild: Fix typo in ebuild diff --git a/net-print/gutenprint/gutenprint-5.2.5-r1.ebuild b/net-print/gutenprint/gutenprint-5.2.5-r1.ebuild new file mode 100644 index 000000000000..70fb02d4404a --- /dev/null +++ b/net-print/gutenprint/gutenprint-5.2.5-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/gutenprint-5.2.5-r1.ebuild,v 1.1 2010/02/23 14:59:03 alexxy Exp $ + +EAPI="2" + +inherit autotools 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 ) + app-text/ghostscript-gpl + 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" + +src_prepare() { + # Respect gentoo CFLAGS + epatch "${FILESDIR}/${PN}-5.2.4-CFLAGS.patch" + # IJS Patch + sed -i -e "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die "sed failed" + # Regen configure + mkdir m4local + AT_M4DIR="m4extra" eautoreconf +} + +src_configure() { + 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" +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} + dohtml doc/FAQ.html + dohtml -r doc/users_guide/html doc/developer/developer-html + rm -fR "${D}"/usr/share/gutenprint/doc + if ! use gtk && ! use gimp; then + rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc + rm -rf "${D}"/usr/include/gutenprintui2 + fi +} + +pkg_postinst() { + if [ "${ROOT}" == "/" ] && [ -x /usr/sbin/cups-genppdupdate ]; then + elog "Updating installed printer ppd files" + elog $(/usr/sbin/cups-genppdupdate) + else + elog "You need to update installed ppds manually using cups-genppdupdate" + fi +} |