Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/gimp/
Date: Wed, 31 Aug 2022 22:26:50
Message-Id: 1661984793.1bcaafc79ff6b55d1b3c1e9f290cf6d309e91045.sam@gentoo
1 commit: 1bcaafc79ff6b55d1b3c1e9f290cf6d309e91045
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Mon Aug 29 23:01:10 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 22:26:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bcaafc7
7
8 media-gfx/gimp: 2.99.12 version bump
9
10 In this release of Gimp dev-preview 2.99.12 the porting
11 from Autotools to Meson build system take place.
12
13 The Meson now is preferred by upstream.
14
15 Due to diferences of configuration options withon configure.ac
16 and meson_options.txt the some src_configuration options dropped
17
18 1. related to flags:
19 USE="aqua cpu_flags_ppc_altivec cpu_flags_ppc_mmx cpu_flags_ppc_sse"
20
21 2. autotools configure options:
22 GEGL="${EPREFIX}"/usr/bin/gegl-0.4
23 GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen
24 --with-pdbgen
25
26 Also some patches are dropped in src_prepare() phase:
27
28 sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
29 sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
30
31 sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
32 grep -F -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
33
34 The USE="X" adds conditional support of x11-libs/libXcursor.
35
36 The FEATURES="test" now use x11-misc/xvfb-run instead virtualx.eclass to run tests.
37
38 In addition USE="doc" now build related to gobject-introspection (g-ir-doc)
39 plugin documentations. Early it's built was broken for autotools.
40
41 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
42 Signed-off-by: Sam James <sam <AT> gentoo.org>
43
44 media-gfx/gimp/Manifest | 1 +
45 .../gimp/{gimp-9999.ebuild => gimp-2.99.12.ebuild} | 164 ++++++++++-----------
46 media-gfx/gimp/gimp-9999.ebuild | 159 ++++++++++----------
47 3 files changed, 159 insertions(+), 165 deletions(-)
48
49 diff --git a/media-gfx/gimp/Manifest b/media-gfx/gimp/Manifest
50 index 1e53ece76a38..5ff7fc538a25 100644
51 --- a/media-gfx/gimp/Manifest
52 +++ b/media-gfx/gimp/Manifest
53 @@ -1,2 +1,3 @@
54 DIST gimp-2.10.32.tar.bz2 31397425 BLAKE2B 3887e2e29ebfd5dcfa671a9d1549180d11bd5e3656c6854ff4130c6c6e6ca9479df075981e09b9b6b97e47dd1fcd939fea726ca09c08c040ebd1998d80e61771 SHA512 aa999c1ec388154965f84d995a9b5517e9c38608d03a0d0bb6ec9fa55de946f9da106e7d6f7c02052b61d2b6806e7a378e786539f0de5b5ffaa2fcd1bbd9c7f1
55 DIST gimp-2.99.10.tar.bz2 26782056 BLAKE2B 103e7fa2d04b1989e59fb03964a122891831d122cdc6dd3b7637f06cff28310e12d9a79678ac477b56728f4ceb53292001c53f026e94be417db76dd7e14740ab SHA512 898c1e1ffd2270ccc965db9a8263e04d95455535361b47f92256b4028808e1e91eb1924cf6cef7ff9e988194ebbc67535bd9cfbf0243159824e58551a2b91ba3
56 +DIST gimp-2.99.12.tar.xz 24282140 BLAKE2B 2174e1d50941071ea6e96f0e3f315484867aa90ae06cbcdc7b30914f959c1a15a7e7ea34ba22ce09a973b29acf1277e3a4519d744140c3fcabc59f31dc3ebf43 SHA512 4b87dd40eccc39c560e69a90b4042b1b19506e9ae52e5079ace442325b54bf7c47477662197da8f7655c12aad16e08bae60d11cf269684b8aa291e978d246917
57
58 diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-2.99.12.ebuild
59 similarity index 57%
60 copy from media-gfx/gimp/gimp-9999.ebuild
61 copy to media-gfx/gimp/gimp-2.99.12.ebuild
62 index 0f655ffb58a9..1ccb1b787b59 100644
63 --- a/media-gfx/gimp/gimp-9999.ebuild
64 +++ b/media-gfx/gimp/gimp-2.99.12.ebuild
65 @@ -5,20 +5,19 @@ EAPI=8
66
67 LUA_COMPAT=( luajit )
68 PYTHON_COMPAT=( python3_{8..10} )
69 -GNOME2_EAUTORECONF=yes
70 VALA_MIN_API_VERSION="0.50"
71 VALA_USE_DEPEND=vapigen
72
73 -inherit git-r3 gnome2 lua-single python-single-r1 toolchain-funcs vala virtualx
74 +inherit lua-single meson python-single-r1 vala xdg
75
76 DESCRIPTION="GNU Image Manipulation Program"
77 HOMEPAGE="https://www.gimp.org/"
78 -EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gimp.git"
79 -SRC_URI=""
80 +SRC_URI="mirror://gimp/v2.99/${P}.tar.xz"
81 +
82 LICENSE="GPL-3 LGPL-3"
83 SLOT="0/3"
84
85 -IUSE="aalib alsa aqua doc gnome heif javascript jpeg2k jpegxl 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"
86 +IUSE="X aalib alsa doc gnome heif javascript jpeg2k jpegxl lua mng openexr postscript python test udev unwind vala vector-icons webp wmf xpm"
87 REQUIRED_USE="
88 lua? ( ${LUA_REQUIRED_USE} )
89 python? ( ${PYTHON_REQUIRED_USE} )
90 @@ -39,10 +38,10 @@ COMMON_DEPEND="
91 dev-libs/libxslt
92 >=gnome-base/librsvg-2.40.21:2
93 >=media-gfx/mypaint-brushes-2.0.2:=
94 - >=media-libs/babl-0.1.92[introspection,lcms,vala?]
95 + >=media-libs/babl-0.1.96[introspection,lcms,vala?]
96 >=media-libs/fontconfig-2.12.6
97 >=media-libs/freetype-2.10.2
98 - >=media-libs/gegl-0.4.36:0.4[cairo,introspection,lcms,vala?]
99 + >=media-libs/gegl-0.4.38:0.4[cairo,introspection,lcms,vala?]
100 >=media-libs/gexiv2-0.14.0
101 >=media-libs/harfbuzz-2.6.5:=
102 >=media-libs/lcms-2.9:2
103 @@ -55,11 +54,9 @@ COMMON_DEPEND="
104 >=x11-libs/cairo-1.16.0
105 >=x11-libs/gdk-pixbuf-2.40.0:2[introspection]
106 >=x11-libs/gtk+-3.24.16:3[introspection]
107 - x11-libs/libXcursor
108 >=x11-libs/pango-1.44.7
109 aalib? ( media-libs/aalib )
110 alsa? ( >=media-libs/alsa-lib-1.0.0 )
111 - aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
112 heif? ( >=media-libs/libheif-1.9.1:= )
113 javascript? ( dev-libs/gjs )
114 jpeg2k? ( >=media-libs/openjpeg-2.3.1:2= )
115 @@ -83,6 +80,7 @@ COMMON_DEPEND="
116 unwind? ( >=sys-libs/libunwind-1.1.0:= )
117 webp? ( >=media-libs/libwebp-0.6.0:= )
118 wmf? ( >=media-libs/libwmf-0.2.8 )
119 + X? ( x11-libs/libXcursor )
120 xpm? ( x11-libs/libXpm )
121 "
122
123 @@ -94,20 +92,22 @@ RDEPEND="
124
125 DEPEND="
126 ${COMMON_DEPEND}
127 - >=dev-lang/perl-5.30.3
128 - dev-util/gdbus-codegen
129 - dev-util/gtk-update-icon-cache
130 - >=dev-util/intltool-0.51.0
131 - >=sys-devel/autoconf-2.54
132 - >=sys-devel/automake-1.11
133 - >=sys-devel/gettext-0.21
134 - >=sys-devel/libtool-2.4.6
135 - doc? ( dev-util/gi-docgen )
136 + test? ( x11-misc/xvfb-run )
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 +BDEPEND="
143 + >=dev-lang/perl-5.30.3
144 + dev-util/gdbus-codegen
145 + >=sys-devel/gettext-0.21
146 + doc? (
147 + app-text/yelp-tools
148 + dev-libs/gobject-introspection[doctool]
149 + dev-util/gi-docgen
150 + )
151 + virtual/pkgconfig
152 +"
153
154 DOCS=( "AUTHORS" "devel-docs/CODING_STYLE.md" "devel-docs/HACKING.md" "NEWS" "README" "README.i18n" )
155
156 @@ -120,19 +120,21 @@ pkg_setup() {
157 }
158
159 src_prepare() {
160 -# sed -i -e '/validate/s:${GIMP_TESTING:--no-net ${GIMP_TESTING:' desktop/test-appdata.sh.in || die # Bug 685210 (and duplicate 691070)
161 -
162 - sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794
163 + default
164
165 - sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
166 - sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
167 + sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' meson.build || die #737794
168
169 - gnome2_src_prepare # calls eautoreconf
170 + # Fix (typo) MMX and SSE support detection
171 + sed -i -e "s/'-mmx'/'-mmmx'/" -e "s/'-sse'/'-msse'/" meson.build || die
172
173 - sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
174 - grep -F -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
175 + # Fix Gimp and GimpUI devel doc installation paths
176 + sed -i -e "s/'doc'/'gtk-doc'/" devel-docs/reference/gimp/meson.build || die
177 + sed -i -e "s/'doc'/'gtk-doc'/" devel-docs/reference/gimp-ui/meson.build || die
178
179 - export CC_FOR_BUILD="$(tc-getBUILD_CC)"
180 + # Fix pygimp.interp python implementation path.
181 + # Meson @PYTHON_PATH@ use sandbox path e.g.:
182 + # '/var/tmp/portage/media-gfx/gimp-2.99.12/temp/python3.10/bin/python3'
183 + sed -i -e 's:@PYTHON_PATH@:'${EPYTHON}':' plug-ins/python/pygimp.interp.in || die
184 }
185
186 _adjust_sandbox() {
187 @@ -154,78 +156,67 @@ src_configure() {
188
189 use vala && vala_setup
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-bug-report-url=https://bugs.gentoo.org/
200 - --with-pdbgen
201 - --with-xmc
202 - --without-appdata-test
203 - --without-libbacktrace
204 - --without-webkit
205 - --without-xvfb-run
206 - $(use_enable cpu_flags_ppc_altivec altivec)
207 - $(use_enable cpu_flags_x86_mmx mmx)
208 - $(use_enable cpu_flags_x86_sse sse)
209 - $(use_enable doc gi-docgen)
210 - $(use_enable vector-icons)
211 - $(use_with aalib aa)
212 - $(use_with alsa)
213 - $(use_with !aqua x)
214 - $(use_with heif libheif)
215 - $(use_with javascript)
216 - $(use_with jpeg2k jpeg2000)
217 - $(use_with jpegxl)
218 - $(use_with lua)
219 - $(use_with mng libmng)
220 - $(use_with openexr)
221 - $(use_with postscript gs)
222 - $(use_with python)
223 - $(use_with udev gudev)
224 - $(use_with unwind libunwind)
225 - $(use_with vala)
226 - $(use_with webp)
227 - $(use_with wmf)
228 - $(use_with xpm libxpm)
229 + local emesonargs=(
230 + -Denable-default-bin=true
231 +
232 + -Dcheck-update=no
233 + -Denable-multiproc=true
234 + -Dappdata-test=disabled
235 + -Dbug-report-url=https://bugs.gentoo.org/
236 + -Dlibbacktrace=false
237 + -Dwebkit-unmaintained=false
238 + $(meson_feature aalib aa)
239 + $(meson_feature alsa)
240 + $(meson_feature doc gi-docgen)
241 + $(meson_feature heif)
242 + $(meson_feature jpeg2k jpeg2000)
243 + $(meson_feature jpegxl jpeg-xl)
244 + $(meson_feature mng)
245 + $(meson_feature openexr)
246 + $(meson_feature postscript ghostscript)
247 + $(meson_feature test headless-tests)
248 + $(meson_feature udev gudev)
249 + $(meson_feature vala vala-plugins)
250 + $(meson_feature webp)
251 + $(meson_feature wmf)
252 + $(meson_feature X xcursor)
253 + $(meson_feature xpm)
254 + $(meson_use doc g-ir-doc)
255 + $(meson_use javascript)
256 + $(meson_use lua)
257 + $(meson_use python)
258 + $(meson_use unwind libunwind)
259 + $(meson_use vector-icons)
260 )
261
262 - gnome2_src_configure "${myconf[@]}"
263 + meson_src_configure
264 }
265
266 src_compile() {
267 export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
268 - gnome2_src_compile
269 + meson_src_compile
270 }
271
272 # for https://bugs.gentoo.org/664938
273 _rename_plugins() {
274 einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
275 - local prepend=gimp-org-
276 + local prename=gimp-org-
277 (
278 cd "${ED}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
279 for plugin_slash in $(ls -d1 */); do
280 - plugin=${plugin_slash%/}
281 - if [[ -f ${plugin}/${plugin} ]]; then
282 - # NOTE: Folder and file name need to match for Gimp to load that plug-in
283 - # so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg"
284 - mv ${plugin}/{,${prepend}}${plugin} || exit 1
285 - mv {,${prepend}}${plugin} || exit 1
286 - fi
287 + plugin=${plugin_slash%/}
288 + if [[ -f ${plugin}/${plugin} ]]; then
289 + # NOTE: Folder and file name need to match for Gimp to load that plug-in
290 + # so "file-svg/file-svg" becomes "${prename}file-svg/${prename}file-svg"
291 + mv ${plugin}/{,${prename}}${plugin} || exit 1
292 + mv {,${prename}}${plugin} || exit 1
293 + fi
294 done
295 )
296 }
297
298 -src_test() {
299 - virtx emake check
300 -}
301 -
302 src_install() {
303 - gnome2_src_install
304 + meson_src_install
305
306 if use python; then
307 python_optimize
308 @@ -240,13 +231,20 @@ src_install() {
309 # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
310 mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die
311
312 + # Create symlinks for Gimp exec in /usr/bin
313 + dosym "${ESYSROOT}"/usr/bin/gimp-2.99 /usr/bin/gimp
314 + dosym "${ESYSROOT}"/usr/bin/gimp-console-2.99 /usr/bin/gimp-console
315 + dosym "${ESYSROOT}"/usr/bin/gimp-script-fu-interpreter-3.0 /usr/bin/gimp-script-fu-interpreter
316 + dosym "${ESYSROOT}"/usr/bin/gimp-test-clipboard-2.99 /usr/bin/gimp-test-clipboard
317 + dosym "${ESYSROOT}"/usr/bin/gimptool-2.99 /usr/bin/gimptool
318 +
319 _rename_plugins || die
320 }
321
322 pkg_postinst() {
323 - gnome2_pkg_postinst
324 + xdg_desktop_database_update
325 }
326
327 pkg_postrm() {
328 - gnome2_pkg_postrm
329 + xdg_desktop_database_update
330 }
331
332 diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-9999.ebuild
333 index 0f655ffb58a9..8b99104d33d7 100644
334 --- a/media-gfx/gimp/gimp-9999.ebuild
335 +++ b/media-gfx/gimp/gimp-9999.ebuild
336 @@ -5,11 +5,10 @@ EAPI=8
337
338 LUA_COMPAT=( luajit )
339 PYTHON_COMPAT=( python3_{8..10} )
340 -GNOME2_EAUTORECONF=yes
341 VALA_MIN_API_VERSION="0.50"
342 VALA_USE_DEPEND=vapigen
343
344 -inherit git-r3 gnome2 lua-single python-single-r1 toolchain-funcs vala virtualx
345 +inherit git-r3 lua-single meson python-single-r1 vala xdg
346
347 DESCRIPTION="GNU Image Manipulation Program"
348 HOMEPAGE="https://www.gimp.org/"
349 @@ -18,7 +17,7 @@ SRC_URI=""
350 LICENSE="GPL-3 LGPL-3"
351 SLOT="0/3"
352
353 -IUSE="aalib alsa aqua doc gnome heif javascript jpeg2k jpegxl 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"
354 +IUSE="X aalib alsa doc gnome heif javascript jpeg2k jpegxl lua mng openexr postscript python test udev unwind vala vector-icons webp wmf xpm"
355 REQUIRED_USE="
356 lua? ( ${LUA_REQUIRED_USE} )
357 python? ( ${PYTHON_REQUIRED_USE} )
358 @@ -39,10 +38,10 @@ COMMON_DEPEND="
359 dev-libs/libxslt
360 >=gnome-base/librsvg-2.40.21:2
361 >=media-gfx/mypaint-brushes-2.0.2:=
362 - >=media-libs/babl-0.1.92[introspection,lcms,vala?]
363 + >=media-libs/babl-0.1.96[introspection,lcms,vala?]
364 >=media-libs/fontconfig-2.12.6
365 >=media-libs/freetype-2.10.2
366 - >=media-libs/gegl-0.4.36:0.4[cairo,introspection,lcms,vala?]
367 + >=media-libs/gegl-0.4.38:0.4[cairo,introspection,lcms,vala?]
368 >=media-libs/gexiv2-0.14.0
369 >=media-libs/harfbuzz-2.6.5:=
370 >=media-libs/lcms-2.9:2
371 @@ -55,11 +54,9 @@ COMMON_DEPEND="
372 >=x11-libs/cairo-1.16.0
373 >=x11-libs/gdk-pixbuf-2.40.0:2[introspection]
374 >=x11-libs/gtk+-3.24.16:3[introspection]
375 - x11-libs/libXcursor
376 >=x11-libs/pango-1.44.7
377 aalib? ( media-libs/aalib )
378 alsa? ( >=media-libs/alsa-lib-1.0.0 )
379 - aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
380 heif? ( >=media-libs/libheif-1.9.1:= )
381 javascript? ( dev-libs/gjs )
382 jpeg2k? ( >=media-libs/openjpeg-2.3.1:2= )
383 @@ -83,6 +80,7 @@ COMMON_DEPEND="
384 unwind? ( >=sys-libs/libunwind-1.1.0:= )
385 webp? ( >=media-libs/libwebp-0.6.0:= )
386 wmf? ( >=media-libs/libwmf-0.2.8 )
387 + X? ( x11-libs/libXcursor )
388 xpm? ( x11-libs/libXpm )
389 "
390
391 @@ -94,20 +92,22 @@ RDEPEND="
392
393 DEPEND="
394 ${COMMON_DEPEND}
395 - >=dev-lang/perl-5.30.3
396 - dev-util/gdbus-codegen
397 - dev-util/gtk-update-icon-cache
398 - >=dev-util/intltool-0.51.0
399 - >=sys-devel/autoconf-2.54
400 - >=sys-devel/automake-1.11
401 - >=sys-devel/gettext-0.21
402 - >=sys-devel/libtool-2.4.6
403 - doc? ( dev-util/gi-docgen )
404 + test? ( x11-misc/xvfb-run )
405 vala? ( $(vala_depend) )
406 "
407
408 # TODO: there are probably more atoms in DEPEND which should be in BDEPEND now
409 -BDEPEND="virtual/pkgconfig"
410 +BDEPEND="
411 + >=dev-lang/perl-5.30.3
412 + dev-util/gdbus-codegen
413 + >=sys-devel/gettext-0.21
414 + doc? (
415 + app-text/yelp-tools
416 + dev-libs/gobject-introspection[doctool]
417 + dev-util/gi-docgen
418 + )
419 + virtual/pkgconfig
420 +"
421
422 DOCS=( "AUTHORS" "devel-docs/CODING_STYLE.md" "devel-docs/HACKING.md" "NEWS" "README" "README.i18n" )
423
424 @@ -120,19 +120,18 @@ pkg_setup() {
425 }
426
427 src_prepare() {
428 -# sed -i -e '/validate/s:${GIMP_TESTING:--no-net ${GIMP_TESTING:' desktop/test-appdata.sh.in || die # Bug 685210 (and duplicate 691070)
429 -
430 - sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794
431 -
432 - sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
433 - sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
434 + default
435
436 - gnome2_src_prepare # calls eautoreconf
437 + sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' meson.build || die #737794
438
439 - sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
440 - grep -F -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
441 + # Fix Gimp and GimpUI devel doc installation paths
442 + sed -i -e "s/'doc'/'gtk-doc'/" devel-docs/reference/gimp/meson.build || die
443 + sed -i -e "s/'doc'/'gtk-doc'/" devel-docs/reference/gimp-ui/meson.build || die
444
445 - export CC_FOR_BUILD="$(tc-getBUILD_CC)"
446 + # Fix pygimp.interp python implementation path.
447 + # Meson @PYTHON_PATH@ use sandbox path e.g.:
448 + # '/var/tmp/portage/media-gfx/gimp-2.99.12/temp/python3.10/bin/python3'
449 + sed -i -e 's:@PYTHON_PATH@:'${EPYTHON}':' plug-ins/python/pygimp.interp.in || die
450 }
451
452 _adjust_sandbox() {
453 @@ -154,78 +153,67 @@ src_configure() {
454
455 use vala && vala_setup
456
457 - local myconf=(
458 - GEGL="${EPREFIX}"/usr/bin/gegl-0.4
459 - GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen
460 -
461 - --enable-default-binary
462 -
463 - --disable-check-update
464 - --enable-mp
465 - --with-bug-report-url=https://bugs.gentoo.org/
466 - --with-pdbgen
467 - --with-xmc
468 - --without-appdata-test
469 - --without-libbacktrace
470 - --without-webkit
471 - --without-xvfb-run
472 - $(use_enable cpu_flags_ppc_altivec altivec)
473 - $(use_enable cpu_flags_x86_mmx mmx)
474 - $(use_enable cpu_flags_x86_sse sse)
475 - $(use_enable doc gi-docgen)
476 - $(use_enable vector-icons)
477 - $(use_with aalib aa)
478 - $(use_with alsa)
479 - $(use_with !aqua x)
480 - $(use_with heif libheif)
481 - $(use_with javascript)
482 - $(use_with jpeg2k jpeg2000)
483 - $(use_with jpegxl)
484 - $(use_with lua)
485 - $(use_with mng libmng)
486 - $(use_with openexr)
487 - $(use_with postscript gs)
488 - $(use_with python)
489 - $(use_with udev gudev)
490 - $(use_with unwind libunwind)
491 - $(use_with vala)
492 - $(use_with webp)
493 - $(use_with wmf)
494 - $(use_with xpm libxpm)
495 + local emesonargs=(
496 + -Denable-default-bin=true
497 +
498 + -Dcheck-update=no
499 + -Denable-multiproc=true
500 + -Dappdata-test=disabled
501 + -Dbug-report-url=https://bugs.gentoo.org/
502 + -Dlibbacktrace=false
503 + -Dwebkit-unmaintained=false
504 + $(meson_feature aalib aa)
505 + $(meson_feature alsa)
506 + $(meson_feature doc gi-docgen)
507 + $(meson_feature heif)
508 + $(meson_feature jpeg2k jpeg2000)
509 + $(meson_feature jpegxl jpeg-xl)
510 + $(meson_feature mng)
511 + $(meson_feature openexr)
512 + $(meson_feature postscript ghostscript)
513 + $(meson_feature test headless-tests)
514 + $(meson_feature udev gudev)
515 + $(meson_feature vala vala-plugins)
516 + $(meson_feature webp)
517 + $(meson_feature wmf)
518 + $(meson_feature X xcursor)
519 + $(meson_feature xpm)
520 + $(meson_use doc g-ir-doc)
521 + $(meson_use javascript)
522 + $(meson_use lua)
523 + $(meson_use python)
524 + $(meson_use unwind libunwind)
525 + $(meson_use vector-icons)
526 )
527
528 - gnome2_src_configure "${myconf[@]}"
529 + meson_src_configure
530 }
531
532 src_compile() {
533 export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
534 - gnome2_src_compile
535 + meson_src_compile
536 }
537
538 # for https://bugs.gentoo.org/664938
539 _rename_plugins() {
540 einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
541 - local prepend=gimp-org-
542 + local prename=gimp-org-
543 (
544 cd "${ED}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
545 for plugin_slash in $(ls -d1 */); do
546 - plugin=${plugin_slash%/}
547 - if [[ -f ${plugin}/${plugin} ]]; then
548 - # NOTE: Folder and file name need to match for Gimp to load that plug-in
549 - # so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg"
550 - mv ${plugin}/{,${prepend}}${plugin} || exit 1
551 - mv {,${prepend}}${plugin} || exit 1
552 - fi
553 + plugin=${plugin_slash%/}
554 + if [[ -f ${plugin}/${plugin} ]]; then
555 + # NOTE: Folder and file name need to match for Gimp to load that plug-in
556 + # so "file-svg/file-svg" becomes "${prename}file-svg/${prename}file-svg"
557 + mv ${plugin}/{,${prename}}${plugin} || exit 1
558 + mv {,${prename}}${plugin} || exit 1
559 + fi
560 done
561 )
562 }
563
564 -src_test() {
565 - virtx emake check
566 -}
567 -
568 src_install() {
569 - gnome2_src_install
570 + meson_src_install
571
572 if use python; then
573 python_optimize
574 @@ -240,13 +228,20 @@ src_install() {
575 # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
576 mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die
577
578 + # Create symlinks for Gimp exec in /usr/bin
579 + dosym "${ESYSROOT}"/usr/bin/gimp-2.99 /usr/bin/gimp
580 + dosym "${ESYSROOT}"/usr/bin/gimp-console-2.99 /usr/bin/gimp-console
581 + dosym "${ESYSROOT}"/usr/bin/gimp-script-fu-interpreter-3.0 /usr/bin/gimp-script-fu-interpreter
582 + dosym "${ESYSROOT}"/usr/bin/gimp-test-clipboard-2.99 /usr/bin/gimp-test-clipboard
583 + dosym "${ESYSROOT}"/usr/bin/gimptool-2.99 /usr/bin/gimptool
584 +
585 _rename_plugins || die
586 }
587
588 pkg_postinst() {
589 - gnome2_pkg_postinst
590 + xdg_desktop_database_update
591 }
592
593 pkg_postrm() {
594 - gnome2_pkg_postrm
595 + xdg_desktop_database_update
596 }