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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon May 28 21:46:36 2012 UTC (5 years, 6 months ago) by sping
Branch: MAIN
Changes since 1.1: +4 -3 lines
media-gfx/gimp: Resolve linguas code duplication for 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.8.0-r1.ebuild,v 1.1 2012/05/28 21:01:14 sping Exp $
4 sping 1.1
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     LICENSE="GPL-3 LGPL-3"
14     SLOT="2"
15     KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16    
17 sping 1.2 LANGS="am ar ast az be bg br ca ca@valencia cs csb 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 ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
18 sping 1.1 IUSE="alsa aalib altivec bzip2 curl dbus debug doc exif gnome gs jpeg jpeg2k lcms mmx mng pdf png python smp sse svg tiff udev webkit wmf xpm"
19    
20     for lang in ${LANGS}; do
21 sping 1.2 [[ ${lang} == yi ]] && continue # bug #418053
22 sping 1.1 IUSE+=" linguas_${lang}"
23     done
24    
25     RDEPEND=">=dev-libs/glib-2.30.2:2
26     >=dev-libs/atk-2.2.0
27     >=x11-libs/gtk+-2.24.10:2
28     >=x11-libs/gdk-pixbuf-2.24.1:2
29     >=x11-libs/cairo-1.10.2
30     >=x11-libs/pango-1.29.4
31     xpm? ( x11-libs/libXpm )
32     >=media-libs/freetype-2.1.7
33     >=media-libs/fontconfig-2.2.0
34     sys-libs/zlib
35     dev-libs/libxml2
36     dev-libs/libxslt
37     x11-themes/hicolor-icon-theme
38     >=media-libs/babl-0.1.10
39     >=media-libs/gegl-0.2.0
40     aalib? ( media-libs/aalib )
41     alsa? ( media-libs/alsa-lib )
42     curl? ( net-misc/curl )
43     dbus? ( dev-libs/dbus-glib )
44     gnome? ( gnome-base/gvfs )
45     webkit? ( >=net-libs/webkit-gtk-1.6.1:2 )
46     jpeg? ( virtual/jpeg:0 )
47     jpeg2k? ( media-libs/jasper )
48     exif? ( >=media-libs/libexif-0.6.15 )
49     lcms? ( >=media-libs/lcms-1.16:0 )
50     mng? ( media-libs/libmng )
51     pdf? ( >=app-text/poppler-0.12.4[cairo] )
52     png? ( >=media-libs/libpng-1.2.37:0 )
53     python? ( >=dev-python/pygtk-2.10.4:2 )
54     tiff? ( >=media-libs/tiff-3.5.7:0 )
55     svg? ( >=gnome-base/librsvg-2.34.2:2 )
56     wmf? ( >=media-libs/libwmf-0.2.8 )
57     x11-libs/libXcursor
58     sys-libs/zlib
59     bzip2? ( app-arch/bzip2 )
60     gs? ( app-text/ghostscript-gpl )
61     udev? ( sys-fs/udev[gudev] )"
62     DEPEND="${RDEPEND}
63     sys-apps/findutils
64     virtual/pkgconfig
65     >=dev-util/intltool-0.40.1
66     >=sys-devel/gettext-0.17
67     doc? ( >=dev-util/gtk-doc-1 )
68     >=sys-devel/libtool-2.2
69     >=sys-devel/automake-1.11
70     dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
71    
72     DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
73    
74     S="${WORKDIR}"/${P}
75    
76     pkg_setup() {
77     G2CONF="--enable-default-binary \
78     --with-x \
79     $(use_with aalib aa) \
80     $(use_with alsa) \
81     $(use_enable altivec) \
82     $(use_with bzip2) \
83     $(use_with curl libcurl) \
84     $(use_with dbus) \
85     $(use_with gnome gvfs) \
86     $(use_with webkit) \
87     $(use_with jpeg libjpeg) \
88     $(use_with jpeg2k libjasper) \
89     $(use_with exif libexif) \
90     $(use_with lcms) \
91     $(use_with gs) \
92     $(use_enable mmx) \
93     $(use_with mng libmng) \
94     $(use_with pdf poppler) \
95     $(use_with png libpng) \
96     $(use_enable python) \
97     $(use_enable smp mp) \
98     $(use_enable sse) \
99     $(use_with svg librsvg) \
100     $(use_with tiff libtiff) \
101     $(use_with udev gudev) \
102     $(use_with wmf) \
103     --with-xmc \
104     $(use_with xpm libxpm) \
105     --without-xvfb-run"
106    
107     if use python; then
108     python_set_active_version 2
109     python_pkg_setup
110     fi
111     }
112    
113     src_prepare() {
114     epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
115     epatch "${FILESDIR}"/${PN}-2.8.0-bzip2.patch # bug 414525
116     eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
117    
118     echo '#!/bin/sh' > py-compile
119     gnome2_src_prepare
120     }
121    
122     _clean_up_locales() {
123     elog "Cleaning up locales..."
124 sping 1.2 for lang in ${LANGS}; do
125 sping 1.1 use "linguas_${lang}" && {
126     elog "- keeping ${lang}"
127     continue
128     }
129     rm -Rf "${D}"/usr/share/locale/"${lang}" || die
130     done
131     }
132    
133     src_install() {
134     gnome2_src_install
135    
136     if use python; then
137     python_convert_shebangs -r $(python_get_version) "${ED}"
138     python_need_rebuild
139     fi
140    
141     # Workaround for bug #321111 to give GIMP the least
142     # precedence on PDF documents by default
143     mv "${D}"/usr/share/applications/{,zzz-}gimp.desktop || die
144    
145     find "${D}" -name '*.la' -delete || die
146    
147     _clean_up_locales
148     }
149    
150     pkg_postinst() {
151     gnome2_pkg_postinst
152    
153     use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
154     /usr/$(get_libdir)/gimp/2.0/plug-ins
155     }
156    
157     pkg_postrm() {
158     gnome2_pkg_postrm
159    
160     use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
161     /usr/$(get_libdir)/gimp/2.0/plug-ins
162     }

  ViewVC Help
Powered by ViewVC 1.1.20