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

Contents of /media-gfx/gimp/gimp-2.6.12-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue May 29 06:47:50 2012 UTC (2 years, 6 months ago) by sping
Branch: MAIN
Changes since 1.1: +1 -2 lines
media-gfx/gimp: Support yi locale (bug #418053)

(Portage version: 2.1.10.56/cvs/Linux x86_64)

1 sping 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 sping 1.2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.6.12-r1.ebuild,v 1.1 2012/05/28 22:26:41 sping Exp $
4 sping 1.1
5     EAPI="3"
6    
7     PYTHON_DEPEND="python? 2:2.5"
8    
9     inherit eutils gnome2 fdo-mime multilib python
10    
11     DESCRIPTION="GNU Image Manipulation Program"
12     HOMEPAGE="http://www.gimp.org/"
13     SRC_URI="
14     http://dev.gentoo.org/~jlec/distfiles/${PN}-2.6.11-underlinking.patch.xz
15     mirror://gimp/v2.6/${P}.tar.bz2"
16    
17     LICENSE="GPL-2"
18     SLOT="2"
19     KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
20    
21     LANGS="am ar ast az be bg ca ca@valencia cs da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml mr ms my nb nds ne nl nn oc or pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
22     IUSE="alsa aalib altivec curl dbus debug doc exif gnome jpeg lcms mmx mng pdf png python smp sse svg tiff webkit wmf"
23    
24     for lang in ${LANGS}; do
25     IUSE+=" linguas_${lang}"
26     done
27    
28     RDEPEND="
29     >=dev-libs/glib-2.18.1:2
30     dev-libs/libxml2
31     dev-libs/libxslt
32     >=media-libs/fontconfig-2.2.0
33     >=media-libs/freetype-2.1.7
34     >=media-libs/gegl-0.0.22 <media-libs/gegl-0.2
35     >=x11-libs/gtk+-2.12.5:2
36     x11-libs/libXpm
37     >=x11-libs/pango-1.18.0
38     sys-libs/zlib
39     x11-themes/hicolor-icon-theme
40     aalib? ( media-libs/aalib )
41     alsa? ( media-libs/alsa-lib )
42     curl? ( net-misc/curl )
43     dbus? ( dev-libs/dbus-glib )
44     exif? ( >=media-libs/libexif-0.6.15 )
45     gnome? ( gnome-base/gvfs )
46     jpeg? ( virtual/jpeg:0 )
47     lcms? ( =media-libs/lcms-1* )
48     mng? ( media-libs/libmng )
49     pdf? ( >=app-text/poppler-0.12.3-r3[cairo] )
50     png? ( >=media-libs/libpng-1.2.2:0 )
51     python? ( >=dev-python/pygtk-2.10.4:2 )
52     svg? ( >=gnome-base/librsvg-2.8.0:2 )
53     tiff? ( >=media-libs/tiff-3.5.7:0 )
54     webkit? ( net-libs/webkit-gtk:2 )
55     wmf? ( >=media-libs/libwmf-0.2.8 )"
56     DEPEND="${RDEPEND}
57     >=dev-util/intltool-0.40
58     virtual/pkgconfig
59     >=sys-devel/gettext-0.17
60     doc? ( >=dev-util/gtk-doc-1 )"
61    
62     DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
63    
64     pkg_setup() {
65     G2CONF="--enable-default-binary \
66     --with-x \
67     $(use_with aalib aa) \
68     $(use_with alsa) \
69     $(use_enable altivec) \
70     $(use_with curl libcurl) \
71     $(use_with dbus) \
72     --without-hal \
73     $(use_with gnome gvfs) \
74     --without-gnomevfs \
75     $(use_with webkit) \
76     $(use_with jpeg libjpeg) \
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 wmf)"
89    
90     if use python; then
91     python_set_active_version 2
92     python_pkg_setup
93     fi
94     }
95    
96     src_prepare() {
97     # don't use empty, removed header
98     # https://bugs.gentoo.org/show_bug.cgi?id=377075
99     epatch "${FILESDIR}"/gimp-curl-headers.diff
100    
101     # apply file-uri patch by upstream
102     # https://bugs.gentoo.org/show_bug.cgi?id=372941
103     # https://bugzilla.gnome.org/show_bug.cgi?id=653980#c6
104     epatch "${FILESDIR}"/${PN}-2.6.11-file-uri.patch
105    
106     # fix test suite
107     # https://bugs.gentoo.org/show_bug.cgi?id=406625
108     epatch "${FILESDIR}"/${P}-potfiles-skip.patch
109    
110     echo '#!/bin/sh' > py-compile
111     gnome2_src_prepare
112     }
113    
114     _clean_up_locales() {
115     elog "Cleaning up locales..."
116     for lang in ${LANGS}; do
117     use "linguas_${lang}" && {
118     elog "- keeping ${lang}"
119     continue
120     }
121     rm -Rf "${D}"/usr/share/locale/"${lang}" || die
122     done
123     }
124    
125     src_install() {
126     gnome2_src_install
127    
128     if use python; then
129     python_convert_shebangs -r $(python_get_version) "${ED}"
130     python_need_rebuild
131     fi
132    
133     # Workaround for bug #321111 to give GIMP the least
134     # precedence on PDF documents by default
135     mv "${D}"/usr/share/applications/{,zzz-}gimp.desktop || die
136    
137     find "${D}" -name '*.la' -delete || die
138    
139     _clean_up_locales
140     }
141    
142     pkg_postinst() {
143     gnome2_pkg_postinst
144    
145     use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
146     /usr/$(get_libdir)/gimp/2.0/plug-ins
147     }
148    
149     pkg_postrm() {
150     gnome2_pkg_postrm
151    
152     use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
153     /usr/$(get_libdir)/gimp/2.0/plug-ins
154     }

  ViewVC Help
Powered by ViewVC 1.1.20