Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: media-gfx/gimp/
Date: Wed, 02 May 2018 19:48:30
Message-Id: 1525290384.cb5f891157ac7466aba39d98050ec002138d052f.sping@gentoo
1 commit: cb5f891157ac7466aba39d98050ec002138d052f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 2 19:15:34 2018 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 19:46:24 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=cb5f8911
7
8 media-gfx/gimp: 2.10.0
9
10 Bug: https://bugs.gentoo.org/654240
11
12 media-gfx/gimp/gimp-2.10.0.ebuild | 198 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 198 insertions(+)
14
15 diff --git a/media-gfx/gimp/gimp-2.10.0.ebuild b/media-gfx/gimp/gimp-2.10.0.ebuild
16 new file mode 100644
17 index 00000000..4f478d5e
18 --- /dev/null
19 +++ b/media-gfx/gimp/gimp-2.10.0.ebuild
20 @@ -0,0 +1,198 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +PYTHON_COMPAT=( python2_7 )
26 +
27 +MY_PV="${PV/_rc/-RC}"
28 +MY_P="${PN}-${MY_PV}"
29 +
30 +inherit versionator virtualx autotools gnome2 multilib python-single-r1 ltprune
31 +
32 +DESCRIPTION="GNU Image Manipulation Program"
33 +HOMEPAGE="https://www.gimp.org/"
34 +SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
35 +LICENSE="GPL-3 LGPL-3"
36 +SLOT="2"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +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"
40 +IUSE="alsa aalib altivec aqua debug doc openexr gnome postscript jpeg2k cpu_flags_x86_mmx mng python smp cpu_flags_x86_sse udev vector-icons webp wmf xpm"
41 +
42 +RDEPEND=">=dev-libs/glib-2.54.2:2
43 + >=dev-libs/atk-2.2.0
44 + >=x11-libs/gtk+-2.24.10:2
45 + dev-util/gtk-update-icon-cache
46 + >=x11-libs/gdk-pixbuf-2.31:2
47 + >=x11-libs/cairo-1.12.2
48 + >=x11-libs/pango-1.29.4
49 + xpm? ( x11-libs/libXpm )
50 + >=media-libs/freetype-2.1.7
51 + >=media-libs/harfbuzz-0.9.19
52 + >=media-libs/gexiv2-0.10.6
53 + >=media-libs/libmypaint-1.3.0[gegl]
54 + >=media-gfx/mypaint-brushes-1.3.0
55 + >=media-libs/fontconfig-2.12.4
56 + sys-libs/zlib
57 + dev-libs/libxml2
58 + dev-libs/libxslt
59 + x11-themes/hicolor-icon-theme
60 + >=media-libs/babl-0.1.46
61 + >=media-libs/gegl-0.4.0:0.4[cairo]
62 + >=dev-libs/glib-2.43
63 + aalib? ( media-libs/aalib )
64 + alsa? ( media-libs/alsa-lib )
65 + aqua? ( x11-libs/gtk-mac-integration )
66 + gnome? ( gnome-base/gvfs )
67 + virtual/jpeg:0
68 + jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
69 + >=media-libs/lcms-2.8:2
70 + mng? ( media-libs/libmng )
71 + openexr? ( >=media-libs/openexr-1.6.1 )
72 + >=app-text/poppler-0.44[cairo]
73 + >=app-text/poppler-data-0.4.7
74 + >=media-libs/libpng-1.6.25:0=
75 + python? (
76 + ${PYTHON_DEPS}
77 + >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
78 + >=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
79 + )
80 + >=media-libs/tiff-3.5.7:0
81 + >=gnome-base/librsvg-2.40.6:2
82 + webp? ( >=media-libs/libwebp-0.6.0 )
83 + wmf? ( >=media-libs/libwmf-0.2.8 )
84 + net-libs/glib-networking[ssl]
85 + x11-libs/libXcursor
86 + sys-libs/zlib
87 + app-arch/bzip2
88 + >=app-arch/xz-utils-5.0.0
89 + postscript? ( app-text/ghostscript-gpl )
90 + udev? ( virtual/libgudev:= )"
91 +DEPEND="${RDEPEND}
92 + >=dev-lang/perl-5.10.0
93 + dev-libs/appstream-glib
94 + sys-apps/findutils
95 + virtual/pkgconfig
96 + >=dev-util/intltool-0.40.1
97 + >=sys-devel/gettext-0.19
98 + doc? ( >=dev-util/gtk-doc-1 )
99 + >=sys-devel/libtool-2.2
100 + >=sys-devel/automake-1.11
101 + dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
102 +
103 +DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
104 +
105 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
106 +
107 +S="${WORKDIR}/${MY_P}"
108 +
109 +pkg_setup() {
110 + if use python; then
111 + python-single-r1_pkg_setup
112 + fi
113 +}
114 +
115 +src_prepare() {
116 + gnome2_src_prepare
117 +
118 + sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
119 + sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
120 + eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
121 +
122 + sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
123 + fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
124 +}
125 +
126 +src_configure() {
127 + local myconf=(
128 + GEGL="${EPREFIX}"/usr/bin/gegl-0.4
129 + GDBUS_CODEGEN="${EPREFIX}"/bin/false
130 +
131 + --enable-default-binary
132 + --disable-silent-rules
133 +
134 + $(use_with !aqua x)
135 + $(use_with aalib aa)
136 + $(use_with alsa)
137 + $(use_enable altivec)
138 + --with-appdata-test
139 + --without-webkit
140 + $(use_with jpeg2k jpeg2000)
141 + $(use_with postscript gs)
142 + $(use_enable cpu_flags_x86_mmx mmx)
143 + $(use_with mng libmng)
144 + $(use_with openexr)
145 + $(use_with webp)
146 + $(use_enable python)
147 + $(use_enable smp mp)
148 + $(use_enable cpu_flags_x86_sse sse)
149 + $(use_with udev gudev)
150 + $(use_with wmf)
151 + --with-xmc
152 + $(use_with xpm libxpm)
153 + $(use_enable vector-icons)
154 + --without-xvfb-run
155 + )
156 +
157 + gnome2_src_configure "${myconf[@]}"
158 +}
159 +
160 +src_compile() {
161 + # Bugs #569738 and #591214
162 + local nv
163 + for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
164 + # We do not check for existence as they may show up later
165 + # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
166 + addwrite "${nv}"
167 + done
168 + addwrite /dev/dri/ # bug #574038
169 + addwrite /dev/ati/ # bug 589198
170 + addwrite /proc/mtrr # bug 589198
171 +
172 + export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
173 + gnome2_src_compile
174 +}
175 +
176 +_clean_up_locales() {
177 + [[ -z ${LINGUAS+set} ]] && return
178 + einfo "Cleaning up locales..."
179 + for lang in ${LANGS}; do
180 + has ${lang} ${LINGUAS} && {
181 + einfo "- keeping ${lang}"
182 + continue
183 + }
184 + rm -Rf "${ED%/}"/usr/share/locale/"${lang}"
185 + done
186 +}
187 +
188 +src_test() {
189 + virtx emake check
190 +}
191 +
192 +src_install() {
193 + gnome2_src_install
194 +
195 + if use python; then
196 + python_optimize
197 + fi
198 +
199 + # Workaround for bug #321111 to give GIMP the least
200 + # precedence on PDF documents by default
201 + mv "${ED%/}"/usr/share/applications/{,zzz-}gimp.desktop || die
202 +
203 + prune_libtool_files --all
204 +
205 + # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
206 + local gimp_app_version=$(get_version_component_range 1-2)
207 + mv "${ED%/}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
208 +
209 + _clean_up_locales
210 +}
211 +
212 +pkg_postinst() {
213 + gnome2_pkg_postinst
214 +}
215 +
216 +pkg_postrm() {
217 + gnome2_pkg_postrm
218 +}