Lines 4-15
Link Here
|
4 |
|
4 |
|
5 |
inherit autotools flag-o-matic eutils multilib |
5 |
inherit autotools 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 |
src_unpack() { |
27 |
src_unpack() { |
29 |
unpack ${A} |
28 |
unpack ${A} |
30 |
cd "${S}" |
29 |
cd "${S}" |
Lines 57-84
Link Here
|
57 |
|
56 |
|
58 |
econf \ |
57 |
econf \ |
59 |
--enable-test \ |
58 |
--enable-test \ |
60 |
--enable-epson \ |
|
|
61 |
--with-ghostscript \ |
59 |
--with-ghostscript \ |
62 |
--with-user-guide \ |
60 |
--enable-samples \ |
63 |
--with-samples \ |
61 |
--enable-escputil \ |
64 |
--with-escputil \ |
|
|
65 |
--disable-translated-cups-ppds \ |
62 |
--disable-translated-cups-ppds \ |
66 |
--enable-nls \ |
63 |
--enable-nls \ |
67 |
$(use_with readline) \ |
64 |
$(use_with readline) \ |
68 |
$(use_with gimp gimp2) \ |
65 |
$(use_with gimp gimp2) \ |
69 |
$(use_with gimp gimp2-as-gutenprint) \ |
66 |
$(use_with gimp gimp2-as-gutenprint) \ |
70 |
$(use_with cups) \ |
67 |
$(use_with cups) \ |
71 |
${myconf} || die "econf failed" |
68 |
${myconf} || die |
72 |
|
69 |
|
73 |
emake || die "emake failed" |
70 |
emake || die |
74 |
} |
71 |
} |
75 |
|
72 |
|
76 |
src_install () { |
73 |
src_install () { |
77 |
emake DESTDIR="${D}" install || die "emake install failed" |
74 |
emake DESTDIR="${D}" install || die |
78 |
|
75 |
|
79 |
dodoc AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} |
76 |
dodoc \ |
80 |
dohtml doc/FAQ.html |
77 |
AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} || die |
81 |
dohtml -r doc/users_guide/html doc/developer/developer-html |
78 |
dohtml doc/FAQ.html || die |
82 |
rm -fR "${D}"/usr/share/gutenprint/doc |
79 |
rm -fR "${D}"/usr/share/gutenprint/doc |
83 |
if ! use gtk && ! use gimp; then |
80 |
if ! use gtk && ! use gimp; then |
84 |
rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc |
81 |
rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc |