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

Contents of /media-gfx/gimp/gimp-2.6.11-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Sep 22 20:58:04 2012 UTC (2 years, 1 month ago) by sping
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
media-gfx/gimp: Remove some old revisions

(Portage version: 2.1.10.65/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.6.11-r3.ebuild,v 1.5 2012/05/18 22:32:00 sping Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2:2.5"
7
8 inherit eutils gnome2 fdo-mime multilib python
9
10 DESCRIPTION="GNU Image Manipulation Program"
11 HOMEPAGE="http://www.gimp.org/"
12 SRC_URI="mirror://gimp/v2.6/${P}.tar.bz2"
13
14 LICENSE="GPL-2"
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 lcms mmx mng pdf png python smp sse svg tiff webkit wmf"
19
20 RDEPEND=">=dev-libs/glib-2.18.1:2
21 >=x11-libs/gtk+-2.12.5:2
22 >=x11-libs/pango-1.18.0
23 x11-libs/libXpm
24 >=media-libs/freetype-2.1.7
25 >=media-libs/fontconfig-2.2.0
26 sys-libs/zlib
27 dev-libs/libxml2
28 dev-libs/libxslt
29 x11-themes/hicolor-icon-theme
30 >=media-libs/gegl-0.0.22 <media-libs/gegl-0.2
31 aalib? ( media-libs/aalib )
32 alsa? ( media-libs/alsa-lib )
33 curl? ( net-misc/curl )
34 dbus? ( dev-libs/dbus-glib )
35 gnome? ( gnome-base/gvfs )
36 webkit? ( net-libs/webkit-gtk:2 )
37 jpeg? ( virtual/jpeg:0 )
38 exif? ( >=media-libs/libexif-0.6.15 )
39 lcms? ( =media-libs/lcms-1* )
40 mng? ( media-libs/libmng )
41 pdf? ( >=app-text/poppler-0.12.3-r3[cairo] )
42 png? ( >=media-libs/libpng-1.2.2:0 )
43 python? ( >=dev-python/pygtk-2.10.4:2 )
44 tiff? ( >=media-libs/tiff-3.5.7:0 )
45 svg? ( >=gnome-base/librsvg-2.8.0:2 )
46 wmf? ( >=media-libs/libwmf-0.2.8 )"
47 DEPEND="${RDEPEND}
48 virtual/pkgconfig
49 >=dev-util/intltool-0.40
50 >=sys-devel/gettext-0.17
51 doc? ( >=dev-util/gtk-doc-1 )"
52
53 DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
54
55 pkg_setup() {
56 G2CONF="--enable-default-binary \
57 --with-x \
58 $(use_with aalib aa) \
59 $(use_with alsa) \
60 $(use_enable altivec) \
61 $(use_with curl libcurl) \
62 $(use_with dbus) \
63 --without-hal \
64 $(use_with gnome gvfs) \
65 --without-gnomevfs \
66 $(use_with webkit) \
67 $(use_with jpeg libjpeg) \
68 $(use_with exif libexif) \
69 $(use_with lcms) \
70 $(use_enable mmx) \
71 $(use_with mng libmng) \
72 $(use_with pdf poppler) \
73 $(use_with png libpng) \
74 $(use_enable python) \
75 $(use_enable smp mp) \
76 $(use_enable sse) \
77 $(use_with svg librsvg) \
78 $(use_with tiff libtiff) \
79 $(use_with wmf)"
80
81 if use python; then
82 python_set_active_version 2
83 python_pkg_setup
84 fi
85 }
86
87 src_prepare() {
88 # security fixes from upstream, see
89 # https://bugzilla.gnome.org/show_bug.cgi?id=639203
90 epatch "${FILESDIR}"/gimp-CVE-2010-4540-to-4543.diff
91
92 # fixes for libpng 1.5 (incomplete), see
93 # https://bugzilla.gnome.org/show_bug.cgi?id=640409
94 epatch "${FILESDIR}"/gimp-libpng15-v2.diff
95
96 # don't use empty, removed header
97 # https://bugs.gentoo.org/show_bug.cgi?id=377075
98 epatch "${FILESDIR}"/gimp-curl-headers.diff
99
100 # apply file-uri patch by upstream
101 # https://bugs.gentoo.org/show_bug.cgi?id=372941
102 # https://bugzilla.gnome.org/show_bug.cgi?id=653980#c6
103 epatch "${FILESDIR}"/${P}-file-uri.patch
104
105 echo '#!/bin/sh' > py-compile
106 gnome2_src_prepare
107 }
108
109 src_install() {
110 gnome2_src_install
111
112 if use python; then
113 python_convert_shebangs -r $(python_get_version) "${ED}"
114 python_need_rebuild
115 fi
116 }
117
118 pkg_postinst() {
119 gnome2_pkg_postinst
120
121 use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
122 /usr/$(get_libdir)/gimp/2.0/plug-ins
123 }
124
125 pkg_postrm() {
126 gnome2_pkg_postrm
127
128 use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
129 /usr/$(get_libdir)/gimp/2.0/plug-ins
130 }

  ViewVC Help
Powered by ViewVC 1.1.20