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

Collapse All | Expand All

(-)gimp-2.4.6.ebuild (-39 / +29 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/gimp-2.4.6.ebuild,v 1.1 2008/06/02 13:28:21 hanno Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.4.6.ebuild,v 1.1 2008/06/02 13:28:21 hanno Exp $
4
4
5
inherit fdo-mime flag-o-matic multilib python eutils autotools
5
inherit gnome2 fdo-mime flag-o-matic multilib python eutils autotools
6
6
7
DESCRIPTION="GNU Image Manipulation Program"
7
DESCRIPTION="GNU Image Manipulation Program"
8
HOMEPAGE="http://www.gimp.org/"
8
HOMEPAGE="http://www.gimp.org/"
Lines 52-57 Link Here
52
	>=sys-devel/gettext-0.17
52
	>=sys-devel/gettext-0.17
53
	doc? ( >=dev-util/gtk-doc-1 )"
53
	doc? ( >=dev-util/gtk-doc-1 )"
54
54
55
DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
56
55
pkg_setup() {
57
pkg_setup() {
56
	if use pdf && ! built_with_use app-text/poppler-bindings gtk; then
58
	if use pdf && ! built_with_use app-text/poppler-bindings gtk; then
57
		eerror "This package requires app-text/poppler-bindings compiled with GTK+ support."
59
		eerror "This package requires app-text/poppler-bindings compiled with GTK+ support."
Lines 61-100 Link Here
61
		eerror "This package requires media-libs/alsa-lib compiled with midi support."
63
		eerror "This package requires media-libs/alsa-lib compiled with midi support."
62
		die "Please reemerge media-libs/alsa-lib with USE=\"midi\"."
64
		die "Please reemerge media-libs/alsa-lib with USE=\"midi\"."
63
	fi
65
	fi
64
}
65
66
src_unpack() {
67
	unpack ${A}
68
	cd "${S}"
69
	epatch "${FILESDIR}/gimp-web-browser.patch"
70
71
	# Workaround for MIME-type, this is fixed in gimp trunk, so we can
72
	# remove this with >= 2.5
73
	use svg && epatch "${FILESDIR}/gimp-svg.diff"
74
75
	eautoreconf
76
}
77
78
src_compile() {
79
	# workaround portage variable leakage
80
	local AA=
81
82
	# gimp uses inline functions (e.g. plug-ins/common/grid.c) (#23078)
83
	# gimp uses floating point math, needs accuracy (#98685)
84
	filter-flags "-fno-inline" "-ffast-math"
85
	# gimp assumes char is signed (fixes preview corruption)
86
	if use ppc || use ppc64; then
87
		append-flags "-fsigned-char"
88
	fi
89
66
90
	econf --enable-default-binary \
67
	G2CONF="--enable-default-binary \
91
		--with-x \
68
		--with-x \
92
		$(use_with aalib aa) \
69
		$(use_with aalib aa) \
93
		$(use_with alsa) \
70
		$(use_with alsa) \
94
		$(use_enable altivec) \
71
		$(use_enable altivec) \
95
		$(use_with curl) \
72
		$(use_with curl) \
96
		$(use_enable debug) \
97
		$(use_enable doc gtk-doc) \
98
		$(use_with dbus) \
73
		$(use_with dbus) \
99
		$(use_with hal) \
74
		$(use_with hal) \
100
		$(use_with gnome gnomevfs) \
75
		$(use_with gnome gnomevfs) \
Lines 111-131 Link Here
111
		$(use_enable sse) \
86
		$(use_enable sse) \
112
		$(use_with svg librsvg) \
87
		$(use_with svg librsvg) \
113
		$(use_with tiff libtiff) \
88
		$(use_with tiff libtiff) \
114
		$(use_with wmf) \
89
		$(use_with wmf)"
115
		|| die "econf failed"
90
}
91
92
src_unpack() {
93
	gnome2_src_unpack
94
	epatch "${FILESDIR}/gimp-web-browser.patch"
116
95
117
	emake || die "emake failed"
96
	# Workaround for MIME-type, this is fixed in gimp trunk, so we can
97
	# remove this with >= 2.5
98
	use svg && epatch "${FILESDIR}/gimp-svg.diff"
99
100
	eautoreconf
118
}
101
}
119
102
120
src_install() {
103
src_compile() {
121
	make DESTDIR="${D}" install || die "make install failed"
104
	# workaround portage variable leakage
105
	local AA=
106
107
	# gimp uses inline functions (e.g. plug-ins/common/grid.c) (#23078)
108
	# gimp uses floating point math, needs accuracy (#98685)
109
	filter-flags "-fno-inline" "-ffast-math"
110
	# gimp assumes char is signed (fixes preview corruption)
111
	if use ppc || use ppc64; then
112
		append-flags "-fsigned-char"
113
	fi
122
114
123
	dodoc AUTHORS ChangeLog* HACKING NEWS README*
115
	gnome2_src_compile
124
}
116
}
125
117
126
pkg_postinst() {
118
pkg_postinst() {
127
	fdo-mime_desktop_database_update
119
	gnome2_pkg_postinst
128
	fdo-mime_mime_database_update
129
120
130
	elog
121
	elog
131
	elog "If you want Postscript file support, emerge ghostscript."
122
	elog "If you want Postscript file support, emerge ghostscript."
Lines 136-143 Link Here
136
}
127
}
137
128
138
pkg_postrm() {
129
pkg_postrm() {
139
	fdo-mime_desktop_database_update
130
	gnome2_pkg_postrm
140
	fdo-mime_mime_database_update
141
	python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
131
	python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
142
		/usr/$(get_libdir)/gimp/2.0/plug-ins
132
		/usr/$(get_libdir)/gimp/2.0/plug-ins
143
}
133
}

Return to bug 228337