Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/gimp/
Date: Sat, 26 Dec 2020 23:18:45
Message-Id: 1609024699.52b195c1624b27428e4fca190e0ab4316cf52d2d.marecki@gentoo
1 commit: 52b195c1624b27428e4fca190e0ab4316cf52d2d
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 22:15:10 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 23:18:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52b195c1
7
8 media-gfx/gimp/gimp: migrate to lua-single.eclass
9
10 Latest 2.99 and the live ebuild; older versions do not depend on Lua.
11 Approved by the maintainer via comment in the GitHub PR #18768.
12 Also includes the requested Pango version bump in the dependencies of 9999.
13
14 Closes: https://bugs.gentoo.org/752747
15 Closes: https://bugs.gentoo.org/755962
16 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
17
18 .../{gimp-9999.ebuild => gimp-2.99.2-r100.ebuild} | 46 +++++++++++-----------
19 media-gfx/gimp/gimp-9999.ebuild | 32 +++++++++------
20 2 files changed, 44 insertions(+), 34 deletions(-)
21
22 diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-2.99.2-r100.ebuild
23 similarity index 85%
24 copy from media-gfx/gimp/gimp-9999.ebuild
25 copy to media-gfx/gimp/gimp-2.99.2-r100.ebuild
26 index 0d94d06ee02..0ee31a0bca9 100644
27 --- a/media-gfx/gimp/gimp-9999.ebuild
28 +++ b/media-gfx/gimp/gimp-2.99.2-r100.ebuild
29 @@ -1,25 +1,26 @@
30 # Copyright 1999-2020 Gentoo Authors
31 # Distributed under the terms of the GNU General Public License v2
32
33 -EAPI=6
34 +EAPI=7
35
36 +LUA_COMPAT=( luajit )
37 PYTHON_COMPAT=( python3_{6,7,8,9} )
38 GNOME2_EAUTORECONF=yes
39 VALA_MIN_API_VERSION="0.40"
40 VALA_USE_DEPEND=vapigen
41
42 -inherit autotools git-r3 gnome2 python-single-r1 toolchain-funcs vala virtualx
43 +inherit autotools gnome2 lua-single python-single-r1 toolchain-funcs vala virtualx
44
45 DESCRIPTION="GNU Image Manipulation Program"
46 HOMEPAGE="https://www.gimp.org/"
47 -EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gimp.git"
48 -SRC_URI=""
49 +SRC_URI="mirror://gimp/v2.99/${P}.tar.bz2"
50 LICENSE="GPL-3 LGPL-3"
51 SLOT="0/3"
52 -KEYWORDS=""
53 +#KEYWORDS="~amd64"
54
55 IUSE="aalib alsa aqua debug 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"
56 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
57 +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
58 + python? ( ${PYTHON_REQUIRED_USE} )"
59
60 RESTRICT="!test? ( test )"
61
62 @@ -35,10 +36,10 @@ COMMON_DEPEND="
63 dev-libs/libxslt
64 >=gnome-base/librsvg-2.40.21:2
65 >=media-gfx/mypaint-brushes-2.0.2:=
66 - >=media-libs/babl-0.1.82[introspection,lcms,vala?]
67 + >=media-libs/babl-0.1.78[introspection,lcms,vala?]
68 >=media-libs/fontconfig-2.12.6
69 >=media-libs/freetype-2.10.2
70 - >=media-libs/gegl-0.4.27:0.4[cairo,introspection,lcms,vala?]
71 + >=media-libs/gegl-0.4.26:0.4[cairo,introspection,lcms,vala?]
72 >=media-libs/gexiv2-0.10.10
73 >=media-libs/harfbuzz-2.6.5
74 >=media-libs/lcms-2.9:2
75 @@ -60,8 +61,10 @@ COMMON_DEPEND="
76 javascript? ( dev-libs/gjs )
77 jpeg2k? ( >=media-libs/openjpeg-2.3.1:2= )
78 lua? (
79 - dev-lang/luajit
80 - dev-lua/lgi
81 + ${LUA_DEPS}
82 + $(lua_gen_cond_dep '
83 + dev-lua/lgi[${LUA_USEDEP}]
84 + ')
85 )
86 mng? ( media-libs/libmng:= )
87 openexr? ( >=media-libs/openexr-2.3.0:= )
88 @@ -97,7 +100,6 @@ DEPEND="
89 >=sys-devel/automake-1.11
90 >=sys-devel/gettext-0.21
91 >=sys-devel/libtool-2.4.6
92 - virtual/pkgconfig
93 doc? (
94 >=dev-util/gtk-doc-1.32
95 dev-util/gtk-doc-am
96 @@ -105,33 +107,33 @@ DEPEND="
97 vala? ( $(vala_depend) )
98 "
99
100 +# TODO: there are probably more atoms in DEPEND which should be in BDEPEND now
101 +BDEPEND="virtual/pkgconfig"
102 +
103 DOCS=( "AUTHORS" "HACKING" "NEWS" "README" "README.i18n" )
104
105 # Bugs 685210 (and duplicate 691070)
106 PATCHES=(
107 "${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
108 + "${FILESDIR}/${P}_fix_autoconf-2.70.patch"
109 )
110
111 pkg_setup() {
112 + use lua && lua-single_pkg_setup
113 +
114 if use python; then
115 python-single-r1_pkg_setup
116 fi
117 }
118
119 src_prepare() {
120 + sed -i -e 's/\[gegl_micro_version\], \[27\]/\[gegl_micro_version\], \[26\]/' configure.ac || die
121 +
122 sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794
123
124 sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
125 sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
126
127 - # Fix checking of gtk-doc.make if USE="-doc" like autogen.sh
128 - # USE="doc" is currently broken for gimp-9999 due to absence of appropriate *.m4 file
129 - if ! use doc ; then
130 - echo "EXTRA_DIST = missing-gtk-doc" > gtk-doc.make
131 - sed -i -e "/CLEANFILES/s/^/#/g" \
132 - "${S}"/devel-docs/{libgimp,libgimpbase,libgimpcolor,libgimpconfig,libgimpmath,libgimpmodule,libgimpthumb,libgimpwidgets}/Makefile.am || die
133 - fi
134 -
135 gnome2_src_prepare # calls eautoreconf
136
137 use vala && vala_src_prepare
138 @@ -210,7 +212,7 @@ _rename_plugins() {
139 einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
140 local prepend=gimp-org-
141 (
142 - cd "${ED%/}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
143 + cd "${ED}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
144 for plugin_slash in $(ls -d1 */); do
145 plugin=${plugin_slash%/}
146 if [[ -f ${plugin}/${plugin} ]]; then
147 @@ -236,12 +238,12 @@ src_install() {
148
149 # Workaround for bug #321111 to give GIMP the least
150 # precedence on PDF documents by default
151 - mv "${ED%/}"/usr/share/applications/{,zzz-}gimp.desktop || die
152 + mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
153
154 find "${D}" -name '*.la' -type f -delete || die
155
156 # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
157 - mv "${ED%/}"/usr/share/man/man1/gimp-console{-*,}.1 || die
158 + mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die
159
160 _rename_plugins || die
161 }
162
163 diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-9999.ebuild
164 index 0d94d06ee02..04c9a09842a 100644
165 --- a/media-gfx/gimp/gimp-9999.ebuild
166 +++ b/media-gfx/gimp/gimp-9999.ebuild
167 @@ -1,14 +1,15 @@
168 # Copyright 1999-2020 Gentoo Authors
169 # Distributed under the terms of the GNU General Public License v2
170
171 -EAPI=6
172 +EAPI=7
173
174 +LUA_COMPAT=( luajit )
175 PYTHON_COMPAT=( python3_{6,7,8,9} )
176 GNOME2_EAUTORECONF=yes
177 VALA_MIN_API_VERSION="0.40"
178 VALA_USE_DEPEND=vapigen
179
180 -inherit autotools git-r3 gnome2 python-single-r1 toolchain-funcs vala virtualx
181 +inherit autotools git-r3 gnome2 lua-single python-single-r1 toolchain-funcs vala virtualx
182
183 DESCRIPTION="GNU Image Manipulation Program"
184 HOMEPAGE="https://www.gimp.org/"
185 @@ -19,7 +20,8 @@ SLOT="0/3"
186 KEYWORDS=""
187
188 IUSE="aalib alsa aqua debug 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"
189 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
190 +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
191 + python? ( ${PYTHON_REQUIRED_USE} )"
192
193 RESTRICT="!test? ( test )"
194
195 @@ -35,10 +37,10 @@ COMMON_DEPEND="
196 dev-libs/libxslt
197 >=gnome-base/librsvg-2.40.21:2
198 >=media-gfx/mypaint-brushes-2.0.2:=
199 - >=media-libs/babl-0.1.82[introspection,lcms,vala?]
200 + >=media-libs/babl-0.1.84[introspection,lcms,vala?]
201 >=media-libs/fontconfig-2.12.6
202 >=media-libs/freetype-2.10.2
203 - >=media-libs/gegl-0.4.27:0.4[cairo,introspection,lcms,vala?]
204 + >=media-libs/gegl-0.4.28:0.4[cairo,introspection,lcms,vala?]
205 >=media-libs/gexiv2-0.10.10
206 >=media-libs/harfbuzz-2.6.5
207 >=media-libs/lcms-2.9:2
208 @@ -52,7 +54,7 @@ COMMON_DEPEND="
209 >=x11-libs/gdk-pixbuf-2.40.0:2
210 >=x11-libs/gtk+-3.24.16:3
211 x11-libs/libXcursor
212 - >=x11-libs/pango-1.42.4
213 + >=x11-libs/pango-1.44.7
214 aalib? ( media-libs/aalib )
215 alsa? ( >=media-libs/alsa-lib-1.0.0 )
216 aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
217 @@ -60,8 +62,10 @@ COMMON_DEPEND="
218 javascript? ( dev-libs/gjs )
219 jpeg2k? ( >=media-libs/openjpeg-2.3.1:2= )
220 lua? (
221 - dev-lang/luajit
222 - dev-lua/lgi
223 + ${LUA_DEPS}
224 + $(lua_gen_cond_dep '
225 + dev-lua/lgi[${LUA_USEDEP}]
226 + ')
227 )
228 mng? ( media-libs/libmng:= )
229 openexr? ( >=media-libs/openexr-2.3.0:= )
230 @@ -97,7 +101,6 @@ DEPEND="
231 >=sys-devel/automake-1.11
232 >=sys-devel/gettext-0.21
233 >=sys-devel/libtool-2.4.6
234 - virtual/pkgconfig
235 doc? (
236 >=dev-util/gtk-doc-1.32
237 dev-util/gtk-doc-am
238 @@ -105,6 +108,9 @@ DEPEND="
239 vala? ( $(vala_depend) )
240 "
241
242 +# TODO: there are probably more atoms in DEPEND which should be in BDEPEND now
243 +BDEPEND="virtual/pkgconfig"
244 +
245 DOCS=( "AUTHORS" "HACKING" "NEWS" "README" "README.i18n" )
246
247 # Bugs 685210 (and duplicate 691070)
248 @@ -113,6 +119,8 @@ PATCHES=(
249 )
250
251 pkg_setup() {
252 + use lua && lua-single_pkg_setup
253 +
254 if use python; then
255 python-single-r1_pkg_setup
256 fi
257 @@ -210,7 +218,7 @@ _rename_plugins() {
258 einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
259 local prepend=gimp-org-
260 (
261 - cd "${ED%/}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
262 + cd "${ED}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
263 for plugin_slash in $(ls -d1 */); do
264 plugin=${plugin_slash%/}
265 if [[ -f ${plugin}/${plugin} ]]; then
266 @@ -236,12 +244,12 @@ src_install() {
267
268 # Workaround for bug #321111 to give GIMP the least
269 # precedence on PDF documents by default
270 - mv "${ED%/}"/usr/share/applications/{,zzz-}gimp.desktop || die
271 + mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
272
273 find "${D}" -name '*.la' -type f -delete || die
274
275 # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
276 - mv "${ED%/}"/usr/share/man/man1/gimp-console{-*,}.1 || die
277 + mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die
278
279 _rename_plugins || die
280 }