blob: 73c5c60ed63bad71e8c4596631444c95b0f104e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp-print/gimp-print-5.0.0.ebuild,v 1.3 2006/09/14 22:33:26 genstef Exp $
inherit flag-o-matic eutils libtool
IUSE="cups foomaticdb gtk nls readline ppds"
MY_P=gutenprint-${PV/_/-}
DESCRIPTION="Gimp Print Drivers"
HOMEPAGE="http://gimp-print.sourceforge.net"
KEYWORDS="~x86 ~ppc ~alpha ~sparc ~hppa ~amd64 ~ppc64"
SRC_URI="mirror://sourceforge/gimp-print/${MY_P}.tar.bz2"
RDEPEND="cups? ( >=net-print/cups-1.1.14 )
virtual/ghostscript
sys-libs/readline
gtk? ( x11-libs/gtk+ )
dev-lang/perl
foomaticdb? ( net-print/foomatic-db-engine )"
DEPEND="${RDEPEND}
gtk? ( dev-util/pkgconfig )"
LICENSE="GPL-2"
SLOT="0"
S=${WORKDIR}/${MY_P}
append-flags -fno-inline-functions
pkg_setup() {
if has_version "<media-gfx/gimp-2.3.10" && built_with_use media-gfx/gimp gimpprint; then
ewarn "gimpprint is not yet available due to the API Change in version 5.0"
ewarn "Please remerge gimp with USE=-gimpprint to avoid collissions"
die "gimp with gimpprint USE-flag detected"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
elibtoolize
}
src_compile() {
if use cups && use ppds; then
myconf="${myconf} --enable-cups-ppds --enable-cups-level3-ppds"
else
myconf="${myconf} --disable-cups-ppds"
fi
use foomaticdb \
&& myconf="${myconf} --with-foomatic3" \
|| myconf="${myconf} --without-foomatic"
econf \
--enable-test \
--with-ghostscript \
--with-user-guide \
--with-samples \
--with-escputil \
--disable-translated-cups-ppds \
$(use_enable nls) \
$(use_with readline) \
$(use_enable gtk lexmarkutil) \
$(use_with cups) \
$myconf || die "econf failed"
# IJS Patch
sed -i -e "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die "sed failed"
emake || die "emake failed"
}
src_install () {
make install DESTDIR=${D} || die "make install failed"
exeinto /usr/share/gutenprint
doexe test/{unprint,pcl-unprint,bjc-unprint,parse-escp2,escp2-weavetest,run-testdither,run-weavetest,testdither}
dodoc AUTHORS COPYING ChangeLog NEWS README \
doc/users_guide/users-guide.ps doc/users_guide/users-guide.pdf \
${D}/usr/share/gutenprint/doc/gutenprint.pdf
dohtml doc/FAQ.html
dohtml -r doc/users_guide/html doc/developer/developer-html
rm -fR ${D}/usr/share/gutenprint/doc
}
|