|
Lines 2-8
Link Here
|
| 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/media-gfx/gimp-print/gimp-print-5.1.0.ebuild,v 1.2 2007/04/07 15:52:41 genstef Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp-print/gimp-print-5.1.0.ebuild,v 1.2 2007/04/07 15:52:41 genstef Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit flag-o-matic eutils libtool |
5 |
inherit flag-o-matic eutils libtool multilib |
| 6 |
|
6 |
|
| 7 |
IUSE="cups foomaticdb gtk nls readline ppds" |
7 |
IUSE="cups foomaticdb gtk nls readline ppds" |
| 8 |
|
8 |
|
|
Lines 16-22
Link Here
|
| 16 |
RDEPEND="cups? ( >=net-print/cups-1.1.14 ) |
16 |
RDEPEND="cups? ( >=net-print/cups-1.1.14 ) |
| 17 |
virtual/ghostscript |
17 |
virtual/ghostscript |
| 18 |
sys-libs/readline |
18 |
sys-libs/readline |
| 19 |
gtk? ( x11-libs/gtk+ ) |
19 |
gtk? ( >=x11-libs/gtk+-2.0 >=media-gfx/gimp-2.2 ) |
| 20 |
dev-lang/perl |
20 |
dev-lang/perl |
| 21 |
foomaticdb? ( net-print/foomatic-db-engine )" |
21 |
foomaticdb? ( net-print/foomatic-db-engine )" |
| 22 |
DEPEND="${RDEPEND} |
22 |
DEPEND="${RDEPEND} |
|
Lines 29-42
Link Here
|
| 29 |
|
29 |
|
| 30 |
append-flags -fno-inline-functions |
30 |
append-flags -fno-inline-functions |
| 31 |
|
31 |
|
| 32 |
pkg_setup() { |
|
|
| 33 |
if has_version "<media-gfx/gimp-2.3.10" && built_with_use media-gfx/gimp gimpprint; then |
| 34 |
ewarn "gimpprint is not yet available due to the API Change in version 5.0" |
| 35 |
ewarn "Please remerge gimp with USE=-gimpprint to avoid collissions" |
| 36 |
die "gimp with gimpprint USE-flag detected" |
| 37 |
fi |
| 38 |
} |
| 39 |
|
| 40 |
src_unpack() { |
32 |
src_unpack() { |
| 41 |
unpack ${A} |
33 |
unpack ${A} |
| 42 |
cd "${S}" |
34 |
cd "${S}" |
|
Lines 55-61
Link Here
|
| 55 |
use foomaticdb \ |
47 |
use foomaticdb \ |
| 56 |
&& myconf="${myconf} --with-foomatic3" \ |
48 |
&& myconf="${myconf} --with-foomatic3" \ |
| 57 |
|| myconf="${myconf} --without-foomatic" |
49 |
|| myconf="${myconf} --without-foomatic" |
| 58 |
|
50 |
|
| 59 |
econf \ |
51 |
econf \ |
| 60 |
--enable-test \ |
52 |
--enable-test \ |
| 61 |
--enable-epson \ |
53 |
--enable-epson \ |
|
Lines 63-73
Link Here
|
| 63 |
--with-user-guide \ |
55 |
--with-user-guide \ |
| 64 |
--with-samples \ |
56 |
--with-samples \ |
| 65 |
--with-escputil \ |
57 |
--with-escputil \ |
| 66 |
--with-gimp2-as-gutenprint \ |
|
|
| 67 |
--disable-translated-cups-ppds \ |
58 |
--disable-translated-cups-ppds \ |
| 68 |
$(use_enable nls) \ |
59 |
$(use_enable nls) \ |
| 69 |
$(use_with readline) \ |
60 |
$(use_with readline) \ |
| 70 |
$(use_enable gtk lexmarkutil) \ |
61 |
$(use_with gtk gimp2) \ |
|
|
62 |
$(use_with gtk gimp2-as-gutenprint) \ |
| 63 |
$(use_enable gtk libgutenprintui2) \ |
| 71 |
$(use_with cups) \ |
64 |
$(use_with cups) \ |
| 72 |
$myconf || die "econf failed" |
65 |
$myconf || die "econf failed" |
| 73 |
|
66 |
|
|
Lines 78-90
Link Here
|
| 78 |
} |
71 |
} |
| 79 |
|
72 |
|
| 80 |
src_install () { |
73 |
src_install () { |
| 81 |
make install DESTDIR=${D} || die "make install failed" |
74 |
emake install DESTDIR="${D}" || die "make install failed" |
| 82 |
|
75 |
|
| 83 |
exeinto /usr/share/gutenprint |
76 |
exeinto /usr/share/gutenprint |
| 84 |
doexe test/{unprint,pcl-unprint,bjc-unprint,parse-escp2,escp2-weavetest,run-testdither,run-weavetest,testdither} |
77 |
doexe test/{unprint,pcl-unprint,bjc-unprint,parse-escp2,escp2-weavetest,run-testdither,run-weavetest,testdither} |
| 85 |
|
78 |
|
| 86 |
dodoc AUTHORS COPYING ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} |
79 |
dodoc AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} |
| 87 |
dohtml doc/FAQ.html |
80 |
dohtml doc/FAQ.html |
| 88 |
dohtml -r doc/users_guide/html doc/developer/developer-html |
81 |
dohtml -r doc/users_guide/html doc/developer/developer-html |
| 89 |
rm -fR ${D}/usr/share/gutenprint/doc |
82 |
rm -fR "${D}"/usr/share/gutenprint/doc |
|
|
83 |
if ! use gtk ; then |
| 84 |
rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc |
| 85 |
rm -rf "${D}"/usr/include/gutenprintui2 |
| 86 |
fi |
| 90 |
} |
87 |
} |