Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 117707 | Differences between
and this patch

Collapse All | Expand All

(-)/home/flame/devel/gentoo-x86/media-gfx/gimp-print/gimp-print-5.0.0_rc1.ebuild (-20 / +23 lines)
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.0.0_rc1.ebuild,v 1.1 2005/11/02 23:52:51 metalgod Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp-print/gimp-print-5.0.0_rc1.ebuild,v 1.1 2005/11/02 23:52:51 metalgod Exp $
4
4
5
inherit flag-o-matic libtool
5
inherit flag-o-matic libtool autotools
6
6
7
IUSE="cups foomaticdb gtk nls readline ppds"
7
IUSE="cups foomaticdb gtk nls readline ppds"
8
8
Lines 13-19 Link Here
13
KEYWORDS="~x86 ~ppc ~alpha ~sparc ~hppa ~amd64 ~ppc64"
13
KEYWORDS="~x86 ~ppc ~alpha ~sparc ~hppa ~amd64 ~ppc64"
14
SRC_URI="mirror://sourceforge/gimp-print/${MY_P}.tar.bz2"
14
SRC_URI="mirror://sourceforge/gimp-print/${MY_P}.tar.bz2"
15
15
16
DEPEND="cups? ( >=net-print/cups-1.1.14 )
16
RDEPEND="cups? ( >=net-print/cups-1.1.14 )
17
	media-gfx/imagemagick
17
	media-gfx/imagemagick
18
	virtual/ghostscript
18
	virtual/ghostscript
19
	sys-libs/readline
19
	sys-libs/readline
Lines 21-26 Link Here
21
	dev-lang/perl
21
	dev-lang/perl
22
	foomaticdb? ( net-print/foomatic-db-engine )"
22
	foomaticdb? ( net-print/foomatic-db-engine )"
23
23
24
DEPEND="${RDEPEND}
25
	sys-devel/autoconf
26
	sys-devel/automake
27
	sys-devel/libtool"
28
24
LICENSE="GPL-2"
29
LICENSE="GPL-2"
25
SLOT="0"
30
SLOT="0"
26
31
Lines 28-53 Link Here
28
33
29
append-flags -fno-inline-functions
34
append-flags -fno-inline-functions
30
35
31
src_compile() {
36
src_unpack() {
32
	elibtoolize --reverse-deps
37
	unpack ${A}
38
	cd ${S}
33
39
34
	use nls \
40
	epatch "${FILESDIR}/${P}-asneeded.patch"
35
		&& myconf="${myconf} --enable-nls" \
36
		|| myconf="${myconf} --disable-nls"
37
38
	use readline \
39
		&& myconf="${myconf} --with-readline" \
40
		|| myconf="${myconf} --without-readline"
41
42
	use gtk \
43
		&& myconf="${myconf} --enable-lexmarkutil" \
44
		|| myconf="${myconf} --disable-lexmarkutil"
45
41
46
	if use cups; then
42
	# get rid of the libtool.m4 file that's broken
47
		myconf="${myconf} --with-cups"
43
	rm -f ${S}/m4extra/libtool.m4
48
	else
44
49
		myconf="${myconf} --without-cups"
45
	AT_M4DIR="m4 m4extra" eautoreconf
50
	fi
46
}
47
48
src_compile() {
49
	elibtoolize --reverse-deps
51
50
52
	if use cups && use ppds; then
51
	if use cups && use ppds; then
53
		myconf="${myconf} --enable-cups-ppds --enable-cups-level3-ppds"
52
		myconf="${myconf} --enable-cups-ppds --enable-cups-level3-ppds"
Lines 66-71 Link Here
66
		--with-user-guide \
65
		--with-user-guide \
67
		--with-samples \
66
		--with-samples \
68
		--with-escputil \
67
		--with-escputil \
68
		$(use_enable nls) \
69
		$(use_with readline) \
70
		$(use_enable gtk lexmarkutil) \
71
		$(use_with cups) \
69
		$myconf || die
72
		$myconf || die
70
73
71
	# IJS Patch
74
	# IJS Patch

Return to bug 117707