| 14 |
14 |
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git"
|
| 15 |
15 |
else
|
| 16 |
16 |
SRC_URI="https://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
|
| 17 |
|
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ~ppc ppc64 ~riscv x86"
|
|
17 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
|
| 18 |
18 |
fi
|
| 19 |
19 |
|
| 20 |
20 |
DESCRIPTION="A graph based image processing framework"
|
| ... | ... | |
| 23 |
23 |
LICENSE="|| ( GPL-3+ LGPL-3 )"
|
| 24 |
24 |
SLOT="0.4"
|
| 25 |
25 |
|
| 26 |
|
IUSE="cairo debug ffmpeg gtk-doc +introspection lcms lensfun openexr openmp pdf raw sdl sdl2 svg test tiff umfpack vala v4l webp"
|
|
26 |
IUSE="cairo debug ffmpeg gtk-doc +introspection jpeg2k lcms openexr openmp pdf raw sdl sdl2 svg test tiff umfpack vala v4l webp"
|
| 27 |
27 |
REQUIRED_USE="
|
| 28 |
28 |
gtk-doc? ( introspection )
|
| 29 |
29 |
svg? ( cairo )
|
| ... | ... | |
| 33 |
33 |
|
| 34 |
34 |
RESTRICT="!test? ( test )"
|
| 35 |
35 |
|
| 36 |
|
# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE
|
| 37 |
|
# so there is no chance to support libav right now (Gentoo bug #567638)
|
| 38 |
|
# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks!
|
|
36 |
# See https://gegl.org/build.html for upstream instructions on dependencies.
|
| 39 |
37 |
RDEPEND="
|
| 40 |
|
>=dev-libs/glib-2.68.2:2
|
| 41 |
|
>=dev-libs/json-glib-1.2.6
|
|
38 |
>=dev-libs/glib-2.44.0:2
|
|
39 |
>=dev-libs/json-glib-1.0.0
|
| 42 |
40 |
>=media-libs/babl-0.1.116[introspection?,lcms?,vala?]
|
| 43 |
|
media-libs/libjpeg-turbo:=
|
|
41 |
>=media-libs/libjpeg-turbo-1.0.0:=
|
| 44 |
42 |
>=media-libs/libnsgif-1.0.0:=
|
| 45 |
43 |
>=media-libs/libpng-1.6.0:0=
|
| 46 |
44 |
>=virtual/zlib-1.2.0:=
|
| ... | ... | |
| 49 |
47 |
cairo? ( >=x11-libs/cairo-1.12.2 )
|
| 50 |
48 |
ffmpeg? ( media-video/ffmpeg:0= )
|
| 51 |
49 |
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
|
50 |
jpeg2k? ( >=media-libs/jasper-1.900.1:= )
|
| 52 |
51 |
lcms? ( >=media-libs/lcms-2.8:2 )
|
| 53 |
|
lensfun? ( >=media-libs/lensfun-0.2.5 )
|
| 54 |
52 |
openexr? ( >=media-libs/openexr-1.6.1:= )
|
| 55 |
53 |
pdf? ( >=app-text/poppler-0.71.0[cairo] )
|
| 56 |
54 |
raw? ( >=media-libs/libraw-0.15.4:0= )
|
| 57 |
55 |
sdl? ( >=media-libs/libsdl-1.2.0 )
|
| 58 |
|
sdl2? ( >=media-libs/libsdl2-2.0.20 )
|
|
56 |
sdl2? ( >=media-libs/libsdl2-2.0.5 )
|
| 59 |
57 |
svg? ( >=gnome-base/librsvg-2.40.6:2 )
|
| 60 |
58 |
tiff? ( >=media-libs/tiff-4:= )
|
| 61 |
59 |
umfpack? ( sci-libs/umfpack )
|
| 62 |
60 |
v4l? ( >=media-libs/libv4l-1.0.1 )
|
| 63 |
61 |
webp? ( >=media-libs/libwebp-0.5.0:= )
|
| 64 |
62 |
"
|
| 65 |
|
DEPEND="${RDEPEND}
|
| 66 |
|
x11-base/xorg-proto"
|
|
63 |
DEPEND="${RDEPEND}"
|
| 67 |
64 |
BDEPEND="
|
| 68 |
65 |
${PYTHON_DEPS}
|
| 69 |
66 |
dev-lang/perl
|
| ... | ... | |
| 76 |
73 |
|
| 77 |
74 |
DOCS=( AUTHORS docs/ChangeLog docs/NEWS.adoc )
|
| 78 |
75 |
|
| 79 |
|
PATCHES=(
|
| 80 |
|
"${FILESDIR}"/gegl-0.4.64-system-libnsgif.patch
|
| 81 |
|
"${FILESDIR}"/gegl-0.4.64-Fix-implicit-declaration.patch
|
| 82 |
|
)
|
| 83 |
|
|
| 84 |
76 |
pkg_pretend() {
|
| 85 |
77 |
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
| 86 |
78 |
}
|
| ... | ... | |
| 110 |
102 |
sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die
|
| 111 |
103 |
fi
|
| 112 |
104 |
|
| 113 |
|
# fix 'build'headers from *.cl on gentoo-hardened, bug 739816
|
| 114 |
|
pushd "${S}/opencl/" || die
|
| 115 |
|
for file in *.cl; do
|
| 116 |
|
if [[ -f ${file} ]]; then
|
| 117 |
|
"${EPYTHON}" cltostring.py "${file}" || die
|
| 118 |
|
fi
|
| 119 |
|
done
|
| 120 |
|
popd || die
|
| 121 |
|
|
| 122 |
105 |
# Fix QA warning, install docs into /usr/share/gtk-doc/html/gegl-0.4 instead of /usr/share/doc/gegl-0.4
|
| 123 |
106 |
sed -i -e "s#'doc'#'gtk-doc' / 'html'#" docs/reference/meson.build || die
|
| 124 |
107 |
}
|
| ... | ... | |
| 130 |
113 |
use vala && vala_setup
|
| 131 |
114 |
|
| 132 |
115 |
local emesonargs=(
|
| 133 |
|
# - Disable documentation as the generating is bit automagic
|
| 134 |
|
# if anyone wants to work on it just create bug with patch
|
|
116 |
# Follow upstream order in meson_options.txt
|
|
117 |
|
|
118 |
# - Disable documentation as the generating is bit automagic
|
|
119 |
# if anyone wants to work on it just create bug with patch
|
| 135 |
120 |
-Ddocs=false # website
|
|
121 |
$(meson_feature gtk-doc gi-docgen)
|
|
122 |
# - Work in progress operations
|
|
123 |
# Might make sense to hook up if masked to make it an explicit opt-in
|
|
124 |
-Dworkshop=false
|
|
125 |
$(meson_use introspection)
|
|
126 |
$(meson_feature vala vapigen)
|
|
127 |
|
|
128 |
# Optional dependencies (as per upstream)
|
| 136 |
129 |
-Dgdk-pixbuf=enabled
|
| 137 |
|
-Djasper=disabled
|
| 138 |
|
# - libspiro: not in portage main tree
|
|
130 |
# - Dependency currently used for tests, examples and not installed tools.
|
|
131 |
# If in addition mrg and sdl are enabled then some substantive change could happen.
|
|
132 |
# With ffmpeg allows building tests that currently fail bug #907412
|
|
133 |
-Dgexiv2=disabled
|
|
134 |
# - Noop option. Its fully optional at runtime.
|
|
135 |
-Dgraphviz=disabled
|
|
136 |
$(meson_feature jpeg2k jasper)
|
|
137 |
$(meson_feature lcms)
|
|
138 |
# - Needs -Dworkshop=true
|
|
139 |
-Dlensfun=disabled
|
|
140 |
$(meson_feature ffmpeg libav)
|
|
141 |
$(meson_feature raw libraw)
|
|
142 |
$(meson_feature svg librsvg)
|
|
143 |
# - Not in portage main tree
|
| 139 |
144 |
-Dlibspiro=disabled
|
|
145 |
$(meson_feature tiff libtiff)
|
|
146 |
# - v4l support does not work with our media-libs/libv4l-0.8.9,
|
|
147 |
# upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675
|
|
148 |
$(meson_feature v4l libv4l)
|
|
149 |
$(meson_feature v4l libv4l2)
|
| 140 |
150 |
-Dlua=disabled
|
|
151 |
# - Unpackaged and discontinued upstream. mrg upstream recommends ctx which is vendored in gegl
|
| 141 |
152 |
-Dmrg=disabled
|
| 142 |
|
-Dpango=enabled
|
| 143 |
|
# - Parameter -Dworkshop=false disables any use of Lua, effectivly
|
| 144 |
|
-Dworkshop=false
|
| 145 |
|
$(meson_feature cairo)
|
| 146 |
|
$(meson_feature cairo pangocairo)
|
| 147 |
|
$(meson_feature ffmpeg libav)
|
| 148 |
|
$(meson_feature gtk-doc gi-docgen)
|
| 149 |
|
$(meson_feature lcms)
|
| 150 |
|
$(meson_feature lensfun)
|
|
153 |
# - Unpackaged, needs -Dworkshop=true
|
|
154 |
# Implementation of the feature in gimp stalled
|
|
155 |
# https://gitlab.gnome.org/GNOME/gimp/-/issues/2912
|
|
156 |
-Dmaxflow=disabled
|
| 151 |
157 |
$(meson_feature openexr)
|
| 152 |
158 |
$(meson_feature openmp)
|
|
159 |
$(meson_feature cairo)
|
|
160 |
-Dpango=enabled
|
|
161 |
$(meson_feature cairo pangocairo)
|
| 153 |
162 |
$(meson_feature pdf poppler)
|
| 154 |
|
$(meson_feature raw libraw)
|
|
163 |
# - Test dependency
|
|
164 |
$(meson_feature test pygobject)
|
| 155 |
165 |
$(meson_feature sdl sdl1)
|
| 156 |
166 |
$(meson_feature sdl2 sdl2)
|
| 157 |
|
$(meson_feature svg librsvg)
|
| 158 |
|
$(meson_feature test pygobject)
|
| 159 |
|
$(meson_feature tiff libtiff)
|
| 160 |
167 |
$(meson_feature umfpack)
|
| 161 |
|
# - v4l support does not work with our media-libs/libv4l-0.8.9,
|
| 162 |
|
# upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675
|
| 163 |
|
$(meson_feature v4l libv4l)
|
| 164 |
|
$(meson_feature v4l libv4l2)
|
| 165 |
|
$(meson_feature vala vapigen)
|
| 166 |
168 |
$(meson_feature webp)
|
| 167 |
|
$(meson_use introspection)
|
| 168 |
169 |
)
|
| 169 |
170 |
meson_src_configure
|
| 170 |
171 |
}
|