|
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-93
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) \ |
|
Lines 111-131
Link Here
|
| 111 |
$(use_enable sse) \ |
88 |
$(use_enable sse) \ |
| 112 |
$(use_with svg librsvg) \ |
89 |
$(use_with svg librsvg) \ |
| 113 |
$(use_with tiff libtiff) \ |
90 |
$(use_with tiff libtiff) \ |
| 114 |
$(use_with wmf) \ |
91 |
$(use_with wmf)" |
| 115 |
|| die "econf failed" |
92 |
} |
|
|
93 |
|
| 94 |
src_unpack() { |
| 95 |
gnome2_src_unpack |
| 96 |
epatch "${FILESDIR}/gimp-web-browser.patch" |
| 116 |
|
97 |
|
| 117 |
emake || die "emake failed" |
98 |
# Workaround for MIME-type, this is fixed in gimp trunk, so we can |
|
|
99 |
# remove this with >= 2.5 |
| 100 |
use svg && epatch "${FILESDIR}/gimp-svg.diff" |
| 101 |
|
| 102 |
eautoreconf |
| 118 |
} |
103 |
} |
| 119 |
|
104 |
|
| 120 |
src_install() { |
105 |
src_compile() { |
| 121 |
make DESTDIR="${D}" install || die "make install failed" |
106 |
# workaround portage variable leakage |
|
|
107 |
local AA= |
| 108 |
|
| 109 |
# gimp uses inline functions (e.g. plug-ins/common/grid.c) (#23078) |
| 110 |
# gimp uses floating point math, needs accuracy (#98685) |
| 111 |
filter-flags "-fno-inline" "-ffast-math" |
| 112 |
# gimp assumes char is signed (fixes preview corruption) |
| 113 |
if use ppc || use ppc64; then |
| 114 |
append-flags "-fsigned-char" |
| 115 |
fi |
| 122 |
|
116 |
|
| 123 |
dodoc AUTHORS ChangeLog* HACKING NEWS README* |
117 |
gnome2_src_compile |
| 124 |
} |
118 |
} |
| 125 |
|
119 |
|
| 126 |
pkg_postinst() { |
120 |
pkg_postinst() { |
| 127 |
fdo-mime_desktop_database_update |
121 |
gnome2_pkg_postinst |
| 128 |
fdo-mime_mime_database_update |
|
|
| 129 |
|
122 |
|
| 130 |
elog |
123 |
elog |
| 131 |
elog "If you want Postscript file support, emerge ghostscript." |
124 |
elog "If you want Postscript file support, emerge ghostscript." |
|
Lines 136-143
Link Here
|
| 136 |
} |
129 |
} |
| 137 |
|
130 |
|
| 138 |
pkg_postrm() { |
131 |
pkg_postrm() { |
| 139 |
fdo-mime_desktop_database_update |
132 |
gnome2_pkg_postrm |
| 140 |
fdo-mime_mime_database_update |
|
|
| 141 |
python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \ |
133 |
python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \ |
| 142 |
/usr/$(get_libdir)/gimp/2.0/plug-ins |
134 |
/usr/$(get_libdir)/gimp/2.0/plug-ins |
| 143 |
} |
135 |
} |