/[gentoo-x86]/media-gfx/gimp/gimp-2.7.4.ebuild
Gentoo

Contents of /media-gfx/gimp/gimp-2.7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Apr 12 04:40:01 2012 UTC (3 years, 4 months ago) by sping
Branch: MAIN
Changes since 1.2: +2 -2 lines
media-gfx/gimp: deny gegl 0.2 for Gimp <2.8_rc1 (bug #411673)

(Portage version: 2.1.10.56/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.7.4.ebuild,v 1.2 2012/01/02 18:49:04 sping Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2:2.5"
7
8 inherit versionator autotools eutils gnome2 fdo-mime multilib python
9
10 DESCRIPTION="GNU Image Manipulation Program"
11 HOMEPAGE="http://www.gimp.org/"
12 SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
13
14 LICENSE="GPL-3 LGPL-3"
15 SLOT="2"
16 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
17
18 IUSE="alsa aalib altivec curl dbus debug doc exif gnome jpeg jpeg2k lcms mmx mng pdf png python smp sse svg tiff udev webkit wmf xpm"
19
20 RDEPEND=">=dev-libs/glib-2.30.2:2
21 >=x11-libs/gtk+-2.24.7:2
22 >=x11-libs/gdk-pixbuf-2.24:2
23 >=x11-libs/cairo-1.10.2
24 >=x11-libs/pango-1.29.4
25 xpm? ( x11-libs/libXpm )
26 >=media-libs/freetype-2.1.7
27 >=media-libs/fontconfig-2.2.0
28 sys-libs/zlib
29 dev-libs/libxml2
30 dev-libs/libxslt
31 x11-misc/xdg-utils
32 x11-themes/hicolor-icon-theme
33 >=media-libs/babl-0.1.6
34 >=media-libs/gegl-0.1.8 <media-libs/gegl-0.2
35 aalib? ( media-libs/aalib )
36 alsa? ( media-libs/alsa-lib )
37 curl? ( net-misc/curl )
38 dbus? ( dev-libs/dbus-glib )
39 gnome? ( gnome-base/gvfs )
40 webkit? ( >=net-libs/webkit-gtk-1.6.1:2 )
41 jpeg? ( virtual/jpeg:0 )
42 jpeg2k? ( media-libs/jasper )
43 exif? ( >=media-libs/libexif-0.6.15 )
44 lcms? ( >=media-libs/lcms-1.16:0 )
45 mng? ( media-libs/libmng )
46 pdf? ( >=app-text/poppler-0.12.4[cairo] )
47 png? ( >=media-libs/libpng-1.2.37:0 )
48 python? ( >=dev-python/pygtk-2.10.4:2 )
49 tiff? ( >=media-libs/tiff-3.5.7:0 )
50 svg? ( >=gnome-base/librsvg-2.34.2:2 )
51 wmf? ( >=media-libs/libwmf-0.2.8 )
52 x11-libs/libXcursor
53 udev? ( sys-fs/udev[gudev] )"
54 DEPEND="${RDEPEND}
55 >=dev-util/pkgconfig-0.22
56 >=dev-util/intltool-0.40.1
57 >=sys-devel/gettext-0.17
58 doc? ( >=dev-util/gtk-doc-1 )
59 >=sys-devel/libtool-2.2
60 >=sys-devel/automake-1.11
61 dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
62
63 DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
64
65 pkg_setup() {
66 G2CONF="--enable-default-binary \
67 --with-x \
68 $(use_with aalib aa) \
69 $(use_with alsa) \
70 $(use_enable altivec) \
71 $(use_with curl libcurl) \
72 $(use_with dbus) \
73 $(use_with gnome gvfs) \
74 $(use_with webkit) \
75 $(use_with jpeg libjpeg) \
76 $(use_with jpeg2k libjasper) \
77 $(use_with exif libexif) \
78 $(use_with lcms) \
79 $(use_enable mmx) \
80 $(use_with mng libmng) \
81 $(use_with pdf poppler) \
82 $(use_with png libpng) \
83 $(use_enable python) \
84 $(use_enable smp mp) \
85 $(use_enable sse) \
86 $(use_with svg librsvg) \
87 $(use_with tiff libtiff) \
88 $(use_with udev gudev) \
89 $(use_with wmf) \
90 --with-xmc \
91 $(use_with xpm libxpm) \
92 --without-xvfb-run"
93
94 if use python; then
95 python_set_active_version 2
96 python_pkg_setup
97 fi
98 }
99
100 src_prepare() {
101 epatch "${FILESDIR}"/${P}-no-deprecation.patch # bug 395695, comment 9 and 16
102 eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
103
104 echo '#!/bin/sh' > py-compile
105 gnome2_src_prepare
106 }
107
108 src_install() {
109 gnome2_src_install
110
111 if use python; then
112 python_convert_shebangs -r $(python_get_version) "${ED}"
113 python_need_rebuild
114 fi
115
116 # Workaround for bug #321111 to give GIMP the least
117 # precedence on PDF documents by default
118 mv "${D}"/usr/share/applications/{,zzz-}gimp.desktop || die
119 }
120
121 pkg_postinst() {
122 gnome2_pkg_postinst
123
124 use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
125 /usr/$(get_libdir)/gimp/2.0/plug-ins
126 }
127
128 pkg_postrm() {
129 gnome2_pkg_postrm
130
131 use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
132 /usr/$(get_libdir)/gimp/2.0/plug-ins
133 }

  ViewVC Help
Powered by ViewVC 1.1.20