1 |
commit: 14f5a8d956d935f391b1c6e6ee01655c17077efe |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Sat Feb 26 00:24:39 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 02:12:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14f5a8d9 |
7 |
|
8 |
media-gfx/gimp: 2.99.10 dev version bump |
9 |
|
10 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/24351 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-gfx/gimp/Manifest | 1 + |
15 |
media-gfx/gimp/gimp-2.99.10.ebuild | 251 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 252 insertions(+) |
17 |
|
18 |
diff --git a/media-gfx/gimp/Manifest b/media-gfx/gimp/Manifest |
19 |
index 8fb494d0dc20..d89a337aae83 100644 |
20 |
--- a/media-gfx/gimp/Manifest |
21 |
+++ b/media-gfx/gimp/Manifest |
22 |
@@ -4,3 +4,4 @@ DIST gimp-2.10.28.tar.bz2 31675862 BLAKE2B b491b55d5adf08221feb7cee8b3adc1d8b090 |
23 |
DIST gimp-2.10.30.tar.bz2 31731327 BLAKE2B 6d948e16fbf7bae7b514a60a44fc5eaac32bebb915de0dcb5120d10739501a01973cb1f5821699d94c4d4cc7ef86d0e5456674a87623b6996d9b276d83a6eb74 SHA512 02ca9e8846dc2ae856f720b92f3c6af69984cf0b3ce85ba5a67479e5c3c813315a0551b7d011dcf7a6c83dc771e550cc31041126bbea0be3fd483176e0eb2851 |
24 |
DIST gimp-2.99.6.tar.bz2 30663040 BLAKE2B ccbdc2baa9e99a94e85345ce90bcba6ca56c0f264d3248d198009b730a5c810997b76c7d7a3cf131374316298d719a3e70c81ee7bc0a5e34beda1b112921807a SHA512 51ada696693ac51624ba222d1fff54d39bdc72a06de54f7c244b89740b77f7205aab44f1cec90785ca4196cab32f817e7390b4287a30f5024606163f24222961 |
25 |
DIST gimp-2.99.8.tar.bz2 30799403 BLAKE2B a67863f5e7d40beca80f931973759dc4523718ac2740cac4924dae8e1611491e59c43436ca670643be1878e1d9ff1575174a59c919b33103128a812e7eba6042 SHA512 c603d9a315c21c9da716cc1d8c0c784061e7d0eac4b3d28467aabc3c63c950da0a52649e498049e0b8475933ef93d721a2b8423811b47b00c9490485d316345e |
26 |
+DIST gimp-2.99.10.tar.bz2 26782056 BLAKE2B 103e7fa2d04b1989e59fb03964a122891831d122cdc6dd3b7637f06cff28310e12d9a79678ac477b56728f4ceb53292001c53f026e94be417db76dd7e14740ab SHA512 898c1e1ffd2270ccc965db9a8263e04d95455535361b47f92256b4028808e1e91eb1924cf6cef7ff9e988194ebbc67535bd9cfbf0243159824e58551a2b91ba3 |
27 |
|
28 |
diff --git a/media-gfx/gimp/gimp-2.99.10.ebuild b/media-gfx/gimp/gimp-2.99.10.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..d21a53c727cf |
31 |
--- /dev/null |
32 |
+++ b/media-gfx/gimp/gimp-2.99.10.ebuild |
33 |
@@ -0,0 +1,251 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+LUA_COMPAT=( luajit ) |
40 |
+PYTHON_COMPAT=( python3_{8..10} ) |
41 |
+GNOME2_EAUTORECONF=yes |
42 |
+VALA_MIN_API_VERSION="0.44" |
43 |
+VALA_USE_DEPEND=vapigen |
44 |
+ |
45 |
+inherit gnome2 lua-single python-single-r1 toolchain-funcs vala virtualx |
46 |
+ |
47 |
+DESCRIPTION="GNU Image Manipulation Program" |
48 |
+HOMEPAGE="https://www.gimp.org/" |
49 |
+SRC_URI="mirror://gimp/v2.99/${P}.tar.bz2" |
50 |
+LICENSE="GPL-3 LGPL-3" |
51 |
+SLOT="0/3" |
52 |
+ |
53 |
+IUSE="aalib alsa aqua doc gnome heif javascript jpeg2k lua mng openexr postscript python udev unwind vala vector-icons webp wmf xpm cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse" |
54 |
+REQUIRED_USE=" |
55 |
+ lua? ( ${LUA_REQUIRED_USE} ) |
56 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
57 |
+" |
58 |
+ |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+# media-libs/{babl,gegl} are required to be built with USE="introspection" |
62 |
+# to fix the compilation checking of /usr/share/gir-1.0/{Babl-0.1gir,Gegl-0.4.gir} |
63 |
+COMMON_DEPEND=" |
64 |
+ >=app-text/poppler-0.90.1[cairo] |
65 |
+ >=app-text/poppler-data-0.4.9 |
66 |
+ >=dev-libs/appstream-glib-0.7.16 |
67 |
+ >=dev-libs/atk-2.34.1 |
68 |
+ >=dev-libs/glib-2.68.0:2 |
69 |
+ >=dev-libs/json-glib-1.4.4 |
70 |
+ dev-libs/libxml2:2 |
71 |
+ dev-libs/libxslt |
72 |
+ >=gnome-base/librsvg-2.40.21:2 |
73 |
+ >=media-gfx/mypaint-brushes-2.0.2:= |
74 |
+ >=media-libs/babl-0.1.90[introspection,lcms,vala?] |
75 |
+ >=media-libs/fontconfig-2.12.6 |
76 |
+ >=media-libs/freetype-2.10.2 |
77 |
+ >=media-libs/gegl-0.4.36:0.4[cairo,introspection,lcms,vala?] |
78 |
+ >=media-libs/gexiv2-0.12.2 |
79 |
+ >=media-libs/harfbuzz-2.6.5:= |
80 |
+ >=media-libs/lcms-2.9:2 |
81 |
+ >=media-libs/libmypaint-1.6.1:= |
82 |
+ >=media-libs/libpng-1.6.37:0= |
83 |
+ >=media-libs/tiff-4.1.0:0 |
84 |
+ net-libs/glib-networking[ssl] |
85 |
+ sys-libs/zlib |
86 |
+ virtual/jpeg |
87 |
+ >=x11-libs/cairo-1.16.0 |
88 |
+ >=x11-libs/gdk-pixbuf-2.40.0:2[introspection] |
89 |
+ >=x11-libs/gtk+-3.24.16:3[introspection] |
90 |
+ x11-libs/libXcursor |
91 |
+ >=x11-libs/pango-1.44.7 |
92 |
+ aalib? ( media-libs/aalib ) |
93 |
+ alsa? ( >=media-libs/alsa-lib-1.0.0 ) |
94 |
+ aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 ) |
95 |
+ heif? ( >=media-libs/libheif-1.9.1:= ) |
96 |
+ javascript? ( dev-libs/gjs ) |
97 |
+ jpeg2k? ( >=media-libs/openjpeg-2.3.1:2= ) |
98 |
+ lua? ( |
99 |
+ ${LUA_DEPS} |
100 |
+ $(lua_gen_cond_dep ' |
101 |
+ dev-lua/lgi[${LUA_USEDEP}] |
102 |
+ ') |
103 |
+ ) |
104 |
+ mng? ( media-libs/libmng:= ) |
105 |
+ openexr? ( >=media-libs/openexr-2.3.0:= ) |
106 |
+ postscript? ( app-text/ghostscript-gpl ) |
107 |
+ python? ( |
108 |
+ ${PYTHON_DEPS} |
109 |
+ $(python_gen_cond_dep ' |
110 |
+ >=dev-python/pygobject-3.0:3[${PYTHON_USEDEP}] |
111 |
+ ') |
112 |
+ ) |
113 |
+ udev? ( >=dev-libs/libgudev-167:= ) |
114 |
+ unwind? ( >=sys-libs/libunwind-1.1.0:= ) |
115 |
+ webp? ( >=media-libs/libwebp-0.6.0:= ) |
116 |
+ wmf? ( >=media-libs/libwmf-0.2.8 ) |
117 |
+ xpm? ( x11-libs/libXpm ) |
118 |
+" |
119 |
+ |
120 |
+RDEPEND=" |
121 |
+ ${COMMON_DEPEND} |
122 |
+ x11-themes/hicolor-icon-theme |
123 |
+ gnome? ( gnome-base/gvfs ) |
124 |
+" |
125 |
+ |
126 |
+DEPEND=" |
127 |
+ ${COMMON_DEPEND} |
128 |
+ >=dev-lang/perl-5.30.3 |
129 |
+ dev-util/gdbus-codegen |
130 |
+ dev-util/gtk-update-icon-cache |
131 |
+ >=dev-util/intltool-0.51.0 |
132 |
+ >=sys-devel/autoconf-2.54 |
133 |
+ >=sys-devel/automake-1.11 |
134 |
+ >=sys-devel/gettext-0.21 |
135 |
+ >=sys-devel/libtool-2.4.6 |
136 |
+ doc? ( dev-util/gi-docgen ) |
137 |
+ vala? ( $(vala_depend) ) |
138 |
+" |
139 |
+ |
140 |
+# TODO: there are probably more atoms in DEPEND which should be in BDEPEND now |
141 |
+BDEPEND="virtual/pkgconfig" |
142 |
+ |
143 |
+DOCS=( "AUTHORS" "devel-docs/CODING_STYLE.md" "devel-docs/HACKING.md" "NEWS" "README" "README.i18n" ) |
144 |
+ |
145 |
+# Bugs 685210 (and duplicate 691070) |
146 |
+PATCHES=( |
147 |
+ "${FILESDIR}/${PN}-2.10_fix_test-appdata.patch" |
148 |
+) |
149 |
+ |
150 |
+pkg_setup() { |
151 |
+ use lua && lua-single_pkg_setup |
152 |
+ |
153 |
+ if use python; then |
154 |
+ python-single-r1_pkg_setup |
155 |
+ fi |
156 |
+} |
157 |
+ |
158 |
+src_prepare() { |
159 |
+ sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794 |
160 |
+ |
161 |
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864 |
162 |
+ sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144 |
163 |
+ |
164 |
+ gnome2_src_prepare # calls eautoreconf |
165 |
+ |
166 |
+ use vala && vala_src_prepare |
167 |
+ |
168 |
+ sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144 |
169 |
+ fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test |
170 |
+ |
171 |
+ export CC_FOR_BUILD="$(tc-getBUILD_CC)" |
172 |
+} |
173 |
+ |
174 |
+_adjust_sandbox() { |
175 |
+ # Bugs #569738 and #591214 |
176 |
+ local nv |
177 |
+ for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do |
178 |
+ # We do not check for existence as they may show up later |
179 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21 |
180 |
+ addwrite "${nv}" |
181 |
+ done |
182 |
+ |
183 |
+ addwrite /dev/dri/ # bugs #574038 and #684886 |
184 |
+ addwrite /dev/ati/ # bug #589198 |
185 |
+ addwrite /proc/mtrr # bug #589198 |
186 |
+} |
187 |
+ |
188 |
+src_configure() { |
189 |
+ _adjust_sandbox |
190 |
+ |
191 |
+ local myconf=( |
192 |
+ GEGL="${EPREFIX}"/usr/bin/gegl-0.4 |
193 |
+ GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen |
194 |
+ |
195 |
+ --enable-default-binary |
196 |
+ |
197 |
+ --disable-check-update |
198 |
+ --enable-mp |
199 |
+ --with-appdata-test |
200 |
+ --with-bug-report-url=https://bugs.gentoo.org/ |
201 |
+ --with-xmc |
202 |
+ --without-libbacktrace |
203 |
+ --without-webkit |
204 |
+ --without-xvfb-run |
205 |
+ $(use_enable cpu_flags_ppc_altivec altivec) |
206 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
207 |
+ $(use_enable cpu_flags_x86_sse sse) |
208 |
+ $(use_enable doc gi-docgen) |
209 |
+ $(use_enable vector-icons) |
210 |
+ $(use_with aalib aa) |
211 |
+ $(use_with alsa) |
212 |
+ $(use_with !aqua x) |
213 |
+ $(use_with heif libheif) |
214 |
+ $(use_with javascript) |
215 |
+ $(use_with jpeg2k jpeg2000) |
216 |
+ $(use_with lua) |
217 |
+ $(use_with mng libmng) |
218 |
+ $(use_with openexr) |
219 |
+ $(use_with postscript gs) |
220 |
+ $(use_with python) |
221 |
+ $(use_with udev gudev) |
222 |
+ $(use_with unwind libunwind) |
223 |
+ $(use_with vala) |
224 |
+ $(use_with webp) |
225 |
+ $(use_with wmf) |
226 |
+ $(use_with xpm libxpm) |
227 |
+ ) |
228 |
+ |
229 |
+ gnome2_src_configure "${myconf[@]}" |
230 |
+} |
231 |
+ |
232 |
+src_compile() { |
233 |
+ export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004 |
234 |
+ gnome2_src_compile |
235 |
+} |
236 |
+ |
237 |
+# for https://bugs.gentoo.org/664938 |
238 |
+_rename_plugins() { |
239 |
+ einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...' |
240 |
+ local prepend=gimp-org- |
241 |
+ ( |
242 |
+ cd "${ED}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1 |
243 |
+ for plugin_slash in $(ls -d1 */); do |
244 |
+ plugin=${plugin_slash%/} |
245 |
+ if [[ -f ${plugin}/${plugin} ]]; then |
246 |
+ # NOTE: Folder and file name need to match for Gimp to load that plug-in |
247 |
+ # so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg" |
248 |
+ mv ${plugin}/{,${prepend}}${plugin} || exit 1 |
249 |
+ mv {,${prepend}}${plugin} || exit 1 |
250 |
+ fi |
251 |
+ done |
252 |
+ ) |
253 |
+} |
254 |
+ |
255 |
+src_test() { |
256 |
+ virtx emake check |
257 |
+} |
258 |
+ |
259 |
+src_install() { |
260 |
+ gnome2_src_install |
261 |
+ |
262 |
+ if use python; then |
263 |
+ python_optimize |
264 |
+ fi |
265 |
+ |
266 |
+ # Workaround for bug #321111 to give GIMP the least |
267 |
+ # precedence on PDF documents by default |
268 |
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die |
269 |
+ |
270 |
+ find "${D}" -name '*.la' -type f -delete || die |
271 |
+ |
272 |
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527) |
273 |
+ mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die |
274 |
+ |
275 |
+ _rename_plugins || die |
276 |
+} |
277 |
+ |
278 |
+pkg_postinst() { |
279 |
+ gnome2_pkg_postinst |
280 |
+} |
281 |
+ |
282 |
+pkg_postrm() { |
283 |
+ gnome2_pkg_postrm |
284 |
+} |