Lines 1-15
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2010 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/gutenprint-5.1.4.ebuild,v 1.5 2009/12/26 17:43:20 pva Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/gutenprint-5.1.4.ebuild,v 1.5 2009/12/26 17:43:20 pva Exp $ |
4 |
|
4 |
|
5 |
inherit flag-o-matic eutils multilib |
5 |
inherit flag-o-matic eutils multilib |
6 |
|
6 |
|
7 |
IUSE="cups foomaticdb gimp gtk readline ppds" |
|
|
8 |
|
9 |
DESCRIPTION="Ghostscript and cups printer drivers" |
7 |
DESCRIPTION="Ghostscript and cups printer drivers" |
10 |
HOMEPAGE="http://gutenprint.sourceforge.net" |
8 |
HOMEPAGE="http://gutenprint.sourceforge.net" |
11 |
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" |
|
|
12 |
SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2" |
9 |
SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2" |
|
|
10 |
|
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" |
14 |
IUSE="cups foomaticdb gimp gtk readline ppds" |
13 |
RESTRICT="test" |
15 |
RESTRICT="test" |
14 |
|
16 |
|
15 |
RDEPEND="cups? ( >=net-print/cups-1.1.14 ) |
17 |
RDEPEND="cups? ( >=net-print/cups-1.1.14 ) |
Lines 22-30
Link Here
|
22 |
DEPEND="${RDEPEND} |
24 |
DEPEND="${RDEPEND} |
23 |
gtk? ( dev-util/pkgconfig )" |
25 |
gtk? ( dev-util/pkgconfig )" |
24 |
|
26 |
|
25 |
LICENSE="GPL-2" |
|
|
26 |
SLOT="0" |
27 |
|
28 |
append-flags -fno-inline-functions |
27 |
append-flags -fno-inline-functions |
29 |
|
28 |
|
30 |
src_compile() { |
29 |
src_compile() { |
Lines 46-79
Link Here
|
46 |
|
45 |
|
47 |
econf \ |
46 |
econf \ |
48 |
--enable-test \ |
47 |
--enable-test \ |
49 |
--enable-epson \ |
|
|
50 |
--with-ghostscript \ |
48 |
--with-ghostscript \ |
51 |
--with-user-guide \ |
49 |
--enable-samples \ |
52 |
--with-samples \ |
50 |
--enable-escputil \ |
53 |
--with-escputil \ |
|
|
54 |
--disable-translated-cups-ppds \ |
51 |
--disable-translated-cups-ppds \ |
55 |
--enable-nls \ |
52 |
--enable-nls \ |
56 |
$(use_with readline) \ |
53 |
$(use_with readline) \ |
57 |
$(use_with gimp gimp2) \ |
54 |
$(use_with gimp gimp2) \ |
58 |
$(use_with gimp gimp2-as-gutenprint) \ |
55 |
$(use_with gimp gimp2-as-gutenprint) \ |
59 |
$(use_with cups) \ |
56 |
$(use_with cups) \ |
60 |
$myconf || die "econf failed" |
57 |
$myconf || die |
61 |
|
58 |
|
62 |
# IJS Patch |
59 |
# IJS Patch |
63 |
sed -i -e "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die "sed failed" |
60 |
sed -i -e "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die "sed failed" |
64 |
|
61 |
|
65 |
emake || die "emake failed" |
62 |
emake || die |
66 |
} |
63 |
} |
67 |
|
64 |
|
68 |
src_install () { |
65 |
src_install () { |
69 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
66 |
emake -j1 DESTDIR="${D}" install || die |
70 |
|
67 |
|
71 |
exeinto /usr/share/gutenprint |
68 |
exeinto /usr/share/gutenprint |
72 |
doexe test/{unprint,pcl-unprint,bjc-unprint,parse-escp2,escp2-weavetest,run-testdither,run-weavetest,testdither} |
69 |
doexe \ |
73 |
|
70 |
test/{unprint,pcl-unprint,bjc-unprint,parse-escp2,escp2-weavetest,run-testdither,run-weavetest,testdither} || die |
74 |
dodoc AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} |
71 |
dodoc \ |
75 |
dohtml doc/FAQ.html |
72 |
AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} || die |
76 |
dohtml -r doc/users_guide/html doc/developer/developer-html |
73 |
dohtml doc/FAQ.html || die |
77 |
rm -fR "${D}"/usr/share/gutenprint/doc |
74 |
rm -fR "${D}"/usr/share/gutenprint/doc |
78 |
if ! use gtk && ! use gimp; then |
75 |
if ! use gtk && ! use gimp; then |
79 |
rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc |
76 |
rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc |