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-libs/gegl/
Date: Sat, 26 Feb 2022 02:16:17
Message-Id: 1645841558.43f916ffdc00a795377e33dc76d661d20c2fe7b6.sam@gentoo
1 commit: 43f916ffdc00a795377e33dc76d661d20c2fe7b6
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Fri Feb 25 21:48:00 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 02:12:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43f916ff
7
8 media-libs/gegl: 0.4.36 version bump
9
10 Bugs: https://bugs.gentoo.org/829880
11
12 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 media-libs/gegl/Manifest | 1 +
16 media-libs/gegl/gegl-0.4.36.ebuild | 157 +++++++++++++++++++++++++++++++++++++
17 2 files changed, 158 insertions(+)
18
19 diff --git a/media-libs/gegl/Manifest b/media-libs/gegl/Manifest
20 index 685f654e64e9..4f6f2f0f4657 100644
21 --- a/media-libs/gegl/Manifest
22 +++ b/media-libs/gegl/Manifest
23 @@ -3,3 +3,4 @@ DIST gegl-0.4.28.tar.xz 4966580 BLAKE2B fcf4fb0e4fac0357d25987348c6abe2434db17bd
24 DIST gegl-0.4.30.tar.xz 5398052 BLAKE2B c57b34ed64d3b9305d3e639b872c283bd4c9c798d13f7bde49b991044139bb4e433a3adb0a9e991b78b2905985496ca3bf4ed116333ceaaccc043b8a66426131 SHA512 73db2d18260ba061fbbc2adb3256ea9d5b822b57f5654cc3aefb59e7afeeb2e4f0fd7e95ac14603c0a549935df04d5744001089efb378511c914c68664dbd378
25 DIST gegl-0.4.32.tar.xz 5633796 BLAKE2B a4ba5d19291a61c6903dcc368e6cc3e1934e8d89b555e81afd22709504fbb8a7ed104890af5f1e7bfbdd5664caef8f5e015341c7882f2171ecb518afe32a65ef SHA512 68da02b8df0a1d234063958896f3678ead62772e611bddb39a6f21ec58cc744599d0a691224c057f2da4d04f2ccfb155a545deea92e77c728dbaeeb90e68cad6
26 DIST gegl-0.4.34.tar.xz 5647516 BLAKE2B 7d9e0c395e6bf38e407ed55f43c090789e29692254990a341e7b9a391ae67423a9948821c1b8a4dd156fb42c16fe6b8572de2ee7b5be09b9f802b892e82df580 SHA512 13bbc19c4fb1feee609d2191b09fe1d2f020da1be788f9dcf7ed89dfef8465ce77dc34a9cb74279c88336aa0f3d3a7a44ca35335a3c2374516f590a40edbc08e
27 +DIST gegl-0.4.36.tar.xz 5680876 BLAKE2B e2051d21eadfd6ff5c4547d337e749ebb9526be0b45bf80116cfdd1bb98b0fd3b4cced83b4700ecb04c003f83074928ac0c7b4bc8929134c57950a1ac957d50b SHA512 4d681091b15e7911229f86bf22381d62268451da57bba072bcb8ee3f4db79e2719dd7e70ab208c2c021e5353f42a9f88c18f62132512b18fe78ed6ad279660f8
28
29 diff --git a/media-libs/gegl/gegl-0.4.36.ebuild b/media-libs/gegl/gegl-0.4.36.ebuild
30 new file mode 100644
31 index 000000000000..823ba12190b8
32 --- /dev/null
33 +++ b/media-libs/gegl/gegl-0.4.36.ebuild
34 @@ -0,0 +1,157 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +PYTHON_COMPAT=( python3_{8..10} )
41 +# vala and introspection support is broken, bug #468208
42 +VALA_USE_DEPEND=vapigen
43 +
44 +inherit meson optfeature python-any-r1 vala
45 +
46 +if [[ ${PV} == *9999* ]]; then
47 + inherit git-r3
48 + EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git"
49 + SRC_URI=""
50 +else
51 + SRC_URI="https://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
52 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
53 +fi
54 +
55 +DESCRIPTION="A graph based image processing framework"
56 +HOMEPAGE="https://gegl.org/"
57 +
58 +LICENSE="|| ( GPL-3+ LGPL-3 )"
59 +SLOT="0.4"
60 +
61 +IUSE="cairo debug ffmpeg introspection lcms lensfun openexr pdf raw sdl svg test tiff umfpack vala v4l webp"
62 +REQUIRED_USE="
63 + svg? ( cairo )
64 + test? ( introspection )
65 + vala? ( introspection )
66 +"
67 +
68 +RESTRICT="!test? ( test )"
69 +
70 +# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE
71 +# so there is no chance to support libav right now (Gentoo bug #567638)
72 +# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks!
73 +RDEPEND="
74 + >=dev-libs/glib-2.68.2:2
75 + >=dev-libs/json-glib-1.2.6
76 + >=media-libs/babl-0.1.90[introspection?,lcms?,vala?]
77 + media-libs/libnsgif
78 + >=media-libs/libpng-1.6.0:0=
79 + >=sys-libs/zlib-1.2.0
80 + virtual/jpeg:0=
81 + >=x11-libs/gdk-pixbuf-2.32:2
82 + >=x11-libs/pango-1.38.0
83 + cairo? ( >=x11-libs/cairo-1.12.2 )
84 + ffmpeg? ( media-video/ffmpeg:0= )
85 + introspection? ( >=dev-libs/gobject-introspection-1.32:= )
86 + lcms? ( >=media-libs/lcms-2.8:2 )
87 + lensfun? ( >=media-libs/lensfun-0.2.5 )
88 + openexr? ( >=media-libs/openexr-1.6.1:= )
89 + pdf? ( >=app-text/poppler-0.71.0[cairo] )
90 + raw? ( >=media-libs/libraw-0.15.4:0= )
91 + sdl? ( >=media-libs/libsdl-1.2.0 )
92 + svg? ( >=gnome-base/librsvg-2.40.6:2 )
93 + tiff? ( >=media-libs/tiff-4:0 )
94 + umfpack? ( sci-libs/umfpack )
95 + v4l? ( >=media-libs/libv4l-1.0.1 )
96 + webp? ( >=media-libs/libwebp-0.5.0:= )
97 +"
98 +DEPEND="${RDEPEND}"
99 +BDEPEND="
100 + ${PYTHON_DEPS}
101 + dev-lang/perl
102 + >=dev-util/gtk-doc-am-1
103 + >=sys-devel/gettext-0.19.8
104 + >=sys-devel/libtool-2.2
105 + virtual/pkgconfig
106 + test? ( $(python_gen_any_dep '>=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]') )
107 + vala? ( $(vala_depend) )
108 +"
109 +
110 +DOCS=( AUTHORS docs/ChangeLog docs/NEWS.adoc )
111 +
112 +python_check_deps() {
113 + use test || return 0
114 + has_version -b ">=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]"
115 +}
116 +
117 +src_prepare() {
118 + default
119 + # patch executables suffix
120 + sed -i -e "s/'gegl'/'gegl-0.4'/" bin/meson.build || die
121 + sed -i -e "s/'gegl-imgcmp'/'gegl-imgcmp-0.4'/" tools/meson.build || die
122 + sed -i -e "s/gegl-imgcmp/gegl-imgcmp-0.4/" tests/simple/test-exp-combine.sh || die
123 + # skip UNEXPECTED PASSED 'matting-levin' test
124 + sed -i -e "s/composition_tests += 'matting-levin'//" \
125 + -e "s/composition_tests_fail += 'matting-levin'//" tests/compositions/meson.build || die
126 +
127 + # don't require Apple's OpenCL on versions of OSX that don't have it
128 + if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then
129 + sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die
130 + fi
131 +
132 + # commit 7c78497b : tests that use gegl.png are broken on non-amd64
133 + sed -e '/clones.xml/d' \
134 + -e '/composite-transform.xml/d' \
135 + -i tests/compositions/meson.build || die
136 +
137 + # fix 'build'headers from *.cl on gentoo-hardened, bug 739816
138 + pushd "${S}/opencl/" || die
139 + for file in *.cl; do
140 + if [[ -f ${file} ]]; then
141 + "${EPYTHON}" cltostring.py "${file}" || die
142 + fi
143 + done
144 + popd || die
145 +
146 + use vala && vala_src_prepare
147 +}
148 +
149 +src_configure() {
150 + local emesonargs=(
151 + # - Disable documentation as the generating is bit automagic
152 + # if anyone wants to work on it just create bug with patch
153 + -Ddocs=false
154 + -Dexiv2=disabled
155 + -Dgdk-pixbuf=enabled
156 + -Djasper=disabled
157 + # - libspiro: not in portage main tree
158 + -Dlibspiro=disabled
159 + -Dlua=disabled
160 + -Dmrg=disabled
161 + -Dpango=enabled
162 + -Dsdl2=disabled
163 + # - Parameter -Dworkshop=false disables any use of Lua, effectivly
164 + -Dworkshop=false
165 + $(meson_feature cairo)
166 + $(meson_feature cairo pangocairo)
167 + $(meson_feature ffmpeg libav)
168 + $(meson_feature lcms)
169 + $(meson_feature lensfun)
170 + $(meson_feature openexr)
171 + $(meson_feature pdf poppler)
172 + $(meson_feature raw libraw)
173 + $(meson_feature sdl sdl1)
174 + $(meson_feature svg librsvg)
175 + $(meson_feature test pygobject)
176 + $(meson_feature tiff libtiff)
177 + $(meson_feature umfpack)
178 + # - v4l support does not work with our media-libs/libv4l-0.8.9,
179 + # upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675
180 + $(meson_feature v4l libv4l)
181 + $(meson_feature v4l libv4l2)
182 + $(meson_feature vala vapigen)
183 + $(meson_feature webp)
184 + $(meson_use introspection)
185 + )
186 + meson_src_configure
187 +}
188 +
189 +pkg_postinst() {
190 + optfeature "'Show Image Graph' under GIMP[debug] menu 'File - Debug'" media-gfx/graphviz
191 +}