blob: cf721b0a8d458cbbbf95e4be9cd0ef53dc3ebd01 (
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
90
91
92
93
94
95
96
|
# 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-4.2.7.ebuild,v 1.14 2008/03/21 09:35:11 genstef Exp $
inherit libtool eutils
IUSE="nls gtk readline cups foomaticdb ppds"
DESCRIPTION="Gimp Print Drivers"
HOMEPAGE="http://gimp-print.sourceforge.net"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.gz"
DEPEND="cups? ( >=net-print/cups-1.1.14 )
media-gfx/imagemagick
virtual/ghostscript
sys-libs/readline
gtk? ( =x11-libs/gtk+-1.2* )
dev-lang/perl
foomaticdb? ( net-print/foomatic-db-engine )"
LICENSE="GPL-2"
SLOT="0"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-asneeded.patch"
}
src_compile() {
elibtoolize --reverse-deps
local myconf
use nls \
&& myconf="${myconf} --enable-nls" \
|| myconf="${myconf} --disable-nls"
use readline \
&& myconf="${myconf} --with-readline" \
|| myconf="${myconf} --without-readline"
use gtk \
&& myconf="${myconf} --enable-lexmarkutil" \
|| myconf="${myconf} --disable-lexmarkutil"
has_version =media-gfx/gimp-1.2* \
&& myconf="${myconf} --with-gimp" \
|| myconf="${myconf} --without-gimp"
if use cups; then
myconf="${myconf} --with-cups"
else
myconf="${myconf} --without-cups"
fi
use foomaticdb \
&& myconf="${myconf} --with-foomatic3" \
|| myconf="${myconf} --without-foomatic"
GIMPTOOL=/usr/bin/gimptool-1.2 econf \
--enable-test \
--with-ghosts \
--with-user-guide \
--with-samples \
--with-escputil \
--without-translated-ppds \
$myconf || die
# IJS Patch
sed -i -e "s/<ijs/<ijs\/ijs/g" src/ghost/ijsgimpprint.c
emake -j1 || die "compile problem"
}
src_install () {
make install DESTDIR=${D} || die
if ! use ppds; then
rm -fR ${D}/usr/share/cups/model/
fi
exeinto /usr/share/gimp-print
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/gimp-print/doc/gimpprint.ps
dohtml doc/FAQ.html
dohtml -r doc/users_guide/html doc/developer/developer-html
rm -fR ${D}/usr/share/gimp-print/doc
use foomaticdb && rm -f ${D}/usr/share/foomatic/db/source/driver/gimp-print.xml
}
|