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

Collapse All | Expand All

(-)gegl-0.0.22.ebuild (-31 / +8 lines)
Lines 1-12 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
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-libs/gegl/gegl-0.0.22.ebuild,v 1.12 2009/07/07 00:20:26 jer Exp $
3
# $Header: $
4
4
5
inherit eutils
5
EAPI="2"
6
6
7
DESCRIPTION="A graph based image processing framework"
7
DESCRIPTION="A graph based image processing framework"
8
HOMEPAGE="http://www.gegl.org/"
8
HOMEPAGE="http://www.gegl.org/"
9
SRC_URI="ftp://ftp.gimp.org/pub/${PN}/0.0/${P}.tar.bz2"
9
SRC_URI="ftp://ftp.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.bz2"
10
10
11
LICENSE="|| ( GPL-3 LGPL-3 )"
11
LICENSE="|| ( GPL-3 LGPL-3 )"
12
SLOT="0"
12
SLOT="0"
Lines 14-20 Link Here
14
14
15
IUSE="cairo debug doc ffmpeg jpeg mmx openexr png raw sdl sse svg v4l"
15
IUSE="cairo debug doc ffmpeg jpeg mmx openexr png raw sdl sse svg v4l"
16
16
17
DEPEND=">=media-libs/babl-0.0.20
17
DEPEND=">=media-libs/babl-0.1.0
18
	>=dev-libs/glib-2.18.0
18
	>=dev-libs/glib-2.18.0
19
	media-libs/libpng
19
	media-libs/libpng
20
	>=x11-libs/gtk+-2.14.0
20
	>=x11-libs/gtk+-2.14.0
Lines 25-31 Link Here
25
		>=dev-lang/lua-5.1.0
25
		>=dev-lang/lua-5.1.0
26
		app-text/enscript
26
		app-text/enscript
27
		media-gfx/graphviz
27
		media-gfx/graphviz
28
		media-gfx/imagemagick )
28
		media-gfx/imagemagick[png] )
29
	ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326 )
29
	ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326 )
30
	jpeg? ( media-libs/jpeg )
30
	jpeg? ( media-libs/jpeg )
31
	openexr? ( media-libs/openexr )
31
	openexr? ( media-libs/openexr )
Lines 34-54 Link Here
34
	svg? ( >=gnome-base/librsvg-2.14.0 )"
34
	svg? ( >=gnome-base/librsvg-2.14.0 )"
35
RDEPEND="${DEPEND}"
35
RDEPEND="${DEPEND}"
36
36
37
pkg_setup() {
37
src_configure() {
38
	if use doc && ! built_with_use 'media-gfx/imagemagick' 'png'; then
39
		eerror "You must build imagemagick with png support"
40
		die "media-gfx/imagemagick built without png"
41
	fi
42
}
43
44
src_unpack() {
45
	unpack ${A}
46
	cd "${S}"
47
	epatch "${FILESDIR}/${P}-locale_h.diff"
48
	epatch "${FILESDIR}/replace-imgconvert-by-swsscale.patch"
49
}
50
51
src_compile() {
52
	econf --with-gtk --with-pango --with-gdk-pixbuf \
38
	econf --with-gtk --with-pango --with-gdk-pixbuf \
53
		$(use_enable debug) \
39
		$(use_enable debug) \
54
		$(use_with cairo) \
40
		$(use_with cairo) \
Lines 66-85 Link Here
66
		$(use_with raw libopenraw) \
52
		$(use_with raw libopenraw) \
67
		$(use_with sdl) \
53
		$(use_with sdl) \
68
		$(use_with svg librsvg) \
54
		$(use_with svg librsvg) \
69
		$(use_enable sse) \
55
		$(use_enable sse)
70
		|| die "econf failed"
71
	emake || die "emake failed"
72
}
56
}
73
57
74
src_install() {
58
src_install() {
75
	# emake install doesn't install anything
59
	emake DESTDIR="${D}" install || die "emake install failed"
76
	einstall || die "einstall failed"
77
	find "${D}" -name '*.la' -delete
60
	find "${D}" -name '*.la' -delete
78
	dodoc ChangeLog INSTALL README NEWS || die "dodoc failed"
61
	dodoc ChangeLog INSTALL README NEWS || die "dodoc failed"
79
80
	# don't know why einstall omits this?!
81
	insinto "/usr/include/${PN}-0.0/${PN}/buffer/"
82
	doins "${WORKDIR}/${P}/${PN}"/buffer/*.h || die "doins buffer failed"
83
	insinto "/usr/include/${PN}-0.0/${PN}/module/"
84
	doins "${WORKDIR}/${P}/${PN}"/module/*.h || die "doins module failed"
85
}
62
}

Return to bug 281264