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

Collapse All | Expand All

(-)gutenprint-5.2.5-r1.ebuild.orig (-15 / +12 lines)
Lines 6-17 Link Here
6
6
7
inherit autotools flag-o-matic eutils multilib
7
inherit autotools flag-o-matic eutils multilib
8
8
9
IUSE="cups foomaticdb gimp gtk readline ppds"
10
11
DESCRIPTION="Ghostscript and cups printer drivers"
9
DESCRIPTION="Ghostscript and cups printer drivers"
12
HOMEPAGE="http://gutenprint.sourceforge.net"
10
HOMEPAGE="http://gutenprint.sourceforge.net"
13
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
14
SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2"
11
SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2"
12
13
LICENSE="GPL-2"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16
IUSE="cups foomaticdb gimp gtk readline ppds"
15
RESTRICT="test"
17
RESTRICT="test"
16
18
17
RDEPEND="cups? ( >=net-print/cups-1.1.14 )
19
RDEPEND="cups? ( >=net-print/cups-1.1.14 )
Lines 24-32 Link Here
24
DEPEND="${RDEPEND}
26
DEPEND="${RDEPEND}
25
	gtk? ( dev-util/pkgconfig )"
27
	gtk? ( dev-util/pkgconfig )"
26
28
27
LICENSE="GPL-2"
28
SLOT="0"
29
30
src_prepare() {
29
src_prepare() {
31
	# Respect gentoo CFLAGS
30
	# Respect gentoo CFLAGS
32
	epatch "${FILESDIR}/${PN}-5.2.4-CFLAGS.patch"
31
	epatch "${FILESDIR}/${PN}-5.2.4-CFLAGS.patch"
Lines 56-81 Link Here
56
55
57
	econf \
56
	econf \
58
		--enable-test \
57
		--enable-test \
59
		--enable-epson \
60
		--with-ghostscript \
58
		--with-ghostscript \
61
		--with-user-guide \
59
		--enable-samples \
62
		--with-samples \
60
		--enable-escputil \
63
		--with-escputil \
64
		--disable-translated-cups-ppds \
61
		--disable-translated-cups-ppds \
65
		--enable-nls \
62
		--enable-nls \
66
		$(use_with readline) \
63
		$(use_with readline) \
67
		$(use_with gimp gimp2) \
64
		$(use_with gimp gimp2) \
68
		$(use_with gimp gimp2-as-gutenprint) \
65
		$(use_with gimp gimp2-as-gutenprint) \
69
		$(use_with cups) \
66
		$(use_with cups) \
70
		${myconf} || die "econf failed"
67
		${myconf} || die
71
}
68
}
72
69
73
src_install () {
70
src_install () {
74
	emake DESTDIR="${D}" install || die "emake install failed"
71
	emake DESTDIR="${D}" install || die
75
72
76
	dodoc AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt}
73
	dodoc \
77
	dohtml doc/FAQ.html
74
		AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} || die
78
	dohtml -r doc/users_guide/html doc/developer/developer-html
75
	dohtml doc/FAQ.html || die
79
	rm -fR "${D}"/usr/share/gutenprint/doc
76
	rm -fR "${D}"/usr/share/gutenprint/doc
80
	if ! use gtk && ! use gimp; then
77
	if ! use gtk && ! use gimp; then
81
		rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc
78
		rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc

Return to bug 297337