Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/imagemagick/
Date: Mon, 12 Jul 2021 14:35:52
Message-Id: 1626100541.c1d087e01a1d7a5c33d2694f611bc1b727895b74.whissi@gentoo
1 commit: c1d087e01a1d7a5c33d2694f611bc1b727895b74
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 12 14:35:27 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 12 14:35:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1d087e0
7
8 media-gfx/imagemagick: drop old
9
10 Package-Manager: Portage-3.0.21, Repoman-3.0.3
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 media-gfx/imagemagick/Manifest | 8 -
14 media-gfx/imagemagick/imagemagick-6.9.12.12.ebuild | 262 --------------------
15 media-gfx/imagemagick/imagemagick-6.9.12.13.ebuild | 262 --------------------
16 media-gfx/imagemagick/imagemagick-6.9.12.15.ebuild | 262 --------------------
17 media-gfx/imagemagick/imagemagick-6.9.12.16.ebuild | 262 --------------------
18 media-gfx/imagemagick/imagemagick-7.0.11.12.ebuild | 267 --------------------
19 media-gfx/imagemagick/imagemagick-7.0.11.13.ebuild | 267 --------------------
20 media-gfx/imagemagick/imagemagick-7.1.0.0.ebuild | 269 ---------------------
21 media-gfx/imagemagick/imagemagick-7.1.0.1.ebuild | 269 ---------------------
22 9 files changed, 2128 deletions(-)
23
24 diff --git a/media-gfx/imagemagick/Manifest b/media-gfx/imagemagick/Manifest
25 index 1874f9620ff..4fc9ebc3f42 100644
26 --- a/media-gfx/imagemagick/Manifest
27 +++ b/media-gfx/imagemagick/Manifest
28 @@ -1,10 +1,2 @@
29 -DIST ImageMagick-6.9.12-12.tar.xz 9141288 BLAKE2B 95ec30e77fc3f963bb0cae5280ad8e72ba9b6e0c8419fdf41f1899371ecbf5f64bbb70cc6193e751da0c3365551bdb2442e9f4746284ecff92ca351fc906fa4c SHA512 7e680809954326d32439c922cbcb65c9076823c50bd56ba2a230ec4a6d46f00a03a032d2ff153fe9b7651a9f6bac9625fe2aea7acccba56e15b6dce96e477c8d
30 -DIST ImageMagick-6.9.12-13.tar.xz 9172456 BLAKE2B cc931e49f152945a0022f6e57e49db08dc45169d5913b884cdf47d18d1f3d7a453f02b3ade56395e985cbe3f996584b8ad1686d947b6b4c04cc85475ca4f65c4 SHA512 4273e6cc864e759c55b5612475c268095948bb0ebabc1188637df87ac8595a97ce94ef7307687f0abd1325646ba23a8bf1219081655307b17ec96b335a01de6c
31 -DIST ImageMagick-6.9.12-15.tar.xz 9181060 BLAKE2B 099482e71ce899a95e22dd63ae4e3f0a36ed722f318a22796e5b28552d9c3770f33fef9d3dbeebbdcf91e78ac30421e7e48f9a3db7fdf73bfbdbafea4894ddc5 SHA512 7336b832abf96fed5d0f861b9c3724c27770a4f9fa868399406bb49003184a06a5fc51a96d3c66fa8d1ca85bcdfaa9ed59d9e80c751ae4c660f38f4d50a931ef
32 -DIST ImageMagick-6.9.12-16.tar.xz 9186096 BLAKE2B ce6db7e7d47f983be14f6a99dd7742fc249980bc3c872c613bf3e18b53c33060b767fd540498f76ec69252ddcf326cd95210185ef49c57d18e10d84f30d763dc SHA512 9248a916a4f930b797afc40600561555df362fdb80fab33d07bf0bca2444309eeb8d5fb564f442d3f3171557a91f33a9c0d9c7ebd30103c304ef579f36795d34
33 DIST ImageMagick-6.9.12-17.tar.xz 9172828 BLAKE2B 87724cfad2b11fa3901dcffb243c314efe303de6f6f17382b82fbbd05b963b70394f17f68b1d87cc53eb7a12233a62241145d4f7f9e48ce8b1fedb9be3dda981 SHA512 c966524b82fd667b2eea45a78d4c4f62745f744889ca15c4b0a5bf390f47c801fff926ecd54e48b42b6142637ff95babaa1464fb8eb401c615fcc000166f46b7
34 -DIST ImageMagick-7.0.11-12.tar.xz 10284100 BLAKE2B 2b664106152f764948f34fe766552cb48e7ff2a5c83f3f8b7e0a83861ed218bbda278f487678704d42aee900f1ef4be4252d94ccafda2192f39d9a3701115520 SHA512 f5faf124a1923d8b3d362ae59c594dff4d92cf097b42995f6631812bbb320830cee71ca10a15b3894cecf1a286b4fa10e874d213c7438356d194d3ebff778cbe
35 -DIST ImageMagick-7.0.11-13.tar.xz 10305476 BLAKE2B 464ea44f8e31148bdcbdf2e66410e5eb9fe0526d06b2b1376311018f7e4897648601d5f4d541469e9f8a72ecbc279695f23288e90725e564a917f68df92f8aed SHA512 8b5fe1ad06ca3af752454f67f53a066842668832bbd4efede35c515449cd2b970e6f7f23e716928ba598f89a7ec020bd988cc392196c89117586fb97a48e1d9e
36 -DIST ImageMagick-7.1.0-0.tar.xz 10307628 BLAKE2B cd59142d40fffa583e19b5bb3016ad84afd1901c3dc679798341f764ff2b341f85a5049907c560eeb58866ccb21985910a99ea92a5ca734d60e5af35fbbe8378 SHA512 51a52ee2c09bb8ea276445393cc2f3398a54c10047d58eaea29a1a1d231ddae0fc00d81b930f299661fed0a3940c08e8c9f0b3932ffd46128186348ebb89fb00
37 -DIST ImageMagick-7.1.0-1.tar.xz 10313392 BLAKE2B f451101f524d3b43de300bb7a54779c698a97bf8afece444849d491ef78e7b69cd68d97908243cda99adf8041013f449f84dc6c5c9a13c48a4e2baca8f62a70e SHA512 42eb8aee1f62782cff9e0e6e7ac1ef1dfb27ed03c803cf53a5d2a5c794110efc475ae886e8879e05219d067971d2359b4a183ad5802e8bc1f41a42fcd21bf19e
38 DIST ImageMagick-7.1.0-2.tar.xz 10312288 BLAKE2B 0c79b02a84c883e8016856bd5543a036228e9febab0160525737ab1105d3af52595959412b36d6120c52a11efb7a0f4c0638aa04d11b8dc3774fe655c347e929 SHA512 e9b38ccc56ad6936c59adbd934148aeca441f41015be8d2d4b7dd4106a120748aff8cba0239d8ada4288d679a19931696a0bec5ae05681eba7d3078fa119ad0a
39
40 diff --git a/media-gfx/imagemagick/imagemagick-6.9.12.12.ebuild b/media-gfx/imagemagick/imagemagick-6.9.12.12.ebuild
41 deleted file mode 100644
42 index 69de151f32b..00000000000
43 --- a/media-gfx/imagemagick/imagemagick-6.9.12.12.ebuild
44 +++ /dev/null
45 @@ -1,262 +0,0 @@
46 -# Copyright 1999-2021 Gentoo Authors
47 -# Distributed under the terms of the GNU General Public License v2
48 -
49 -EAPI="7"
50 -
51 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
52 -
53 -if [[ ${PV} == "9999" ]] ; then
54 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick6.git"
55 - inherit git-r3
56 - MY_P="imagemagick-9999"
57 -else
58 - MY_PV="$(ver_rs 3 '-')"
59 - MY_P="ImageMagick-${MY_PV}"
60 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
61 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
62 -fi
63 -
64 -DESCRIPTION="A collection of tools and libraries for many image formats"
65 -HOMEPAGE="https://www.imagemagick.org/"
66 -
67 -LICENSE="imagemagick"
68 -SLOT="0/6.9.11-60"
69 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
70 -
71 -REQUIRED_USE="corefonts? ( truetype )
72 - svg? ( xml )
73 - test? ( corefonts )"
74 -
75 -RESTRICT="!test? ( test )"
76 -
77 -BDEPEND="virtual/pkgconfig"
78 -
79 -RDEPEND="
80 - dev-libs/libltdl:0
81 - bzip2? ( app-arch/bzip2 )
82 - corefonts? ( media-fonts/corefonts )
83 - djvu? ( app-text/djvu )
84 - fftw? ( sci-libs/fftw:3.0 )
85 - fontconfig? ( media-libs/fontconfig )
86 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
87 - graphviz? ( media-gfx/graphviz )
88 - heif? ( media-libs/libheif:= )
89 - jbig? ( >=media-libs/jbigkit-2:= )
90 - jpeg? ( virtual/jpeg:0 )
91 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
92 - lcms? ( media-libs/lcms:2= )
93 - lqr? ( media-libs/liblqr )
94 - opencl? ( virtual/opencl )
95 - openexr? ( media-libs/openexr:0= )
96 - pango? ( x11-libs/pango )
97 - perl? ( >=dev-lang/perl-5.8.8:0= )
98 - png? ( media-libs/libpng:0= )
99 - postscript? ( app-text/ghostscript-gpl )
100 - raw? ( media-libs/libraw:= )
101 - svg? (
102 - gnome-base/librsvg
103 - media-gfx/potrace
104 - )
105 - tiff? ( media-libs/tiff:0= )
106 - truetype? (
107 - media-fonts/urw-fonts
108 - >=media-libs/freetype-2
109 - )
110 - webp? ( media-libs/libwebp:0= )
111 - wmf? ( media-libs/libwmf )
112 - X? (
113 - x11-libs/libICE
114 - x11-libs/libSM
115 - x11-libs/libXext
116 - x11-libs/libXt
117 - )
118 - xml? ( dev-libs/libxml2:= )
119 - lzma? ( app-arch/xz-utils )
120 - zlib? ( sys-libs/zlib:= )"
121 -
122 -DEPEND="${RDEPEND}
123 - !media-gfx/graphicsmagick[imagemagick]
124 - X? ( x11-base/xorg-proto )"
125 -
126 -S="${WORKDIR}/${MY_P}"
127 -
128 -src_prepare() {
129 - default
130 -
131 - # Apply hardening #664236
132 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
133 - sed -i -e '/^<policymap>$/ {
134 - r policy-hardening.snippet
135 - d
136 - }' \
137 - config/policy.xml || \
138 - die "Failed to apply hardening of policy.xml"
139 - einfo "policy.xml hardened"
140 -
141 - elibtoolize # for Darwin modules
142 -
143 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
144 - local ati_cards mesa_cards nvidia_cards render_cards
145 - shopt -s nullglob
146 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
147 - if test -n "${ati_cards}"; then
148 - addpredict "${ati_cards}"
149 - fi
150 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
151 - if test -n "${mesa_cards}"; then
152 - addpredict "${mesa_cards}"
153 - fi
154 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
155 - if test -n "${nvidia_cards}"; then
156 - addpredict "${nvidia_cards}"
157 - fi
158 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
159 - if test -n "${render_cards}"; then
160 - addpredict "${render_cards}"
161 - fi
162 - shopt -u nullglob
163 - addpredict /dev/nvidiactl
164 -}
165 -
166 -src_configure() {
167 - local depth=16
168 - use q8 && depth=8
169 - use q32 && depth=32
170 -
171 - local openmp=disable
172 - use openmp && { tc-has-openmp && openmp=enable; }
173 -
174 - use perl && perl_check_env
175 -
176 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
177 -
178 - local myeconfargs=(
179 - $(use_enable static-libs static)
180 - $(use_enable hdri)
181 - $(use_enable opencl)
182 - --with-threads
183 - --with-modules
184 - --with-quantum-depth=${depth}
185 - $(use_with cxx magick-plus-plus)
186 - $(use_with perl)
187 - --with-perl-options='INSTALLDIRS=vendor'
188 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
189 - $(use_with bzip2 bzlib)
190 - $(use_with X x)
191 - $(use_with zlib)
192 - --without-autotrace
193 - $(use_with postscript dps)
194 - $(use_with djvu)
195 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
196 - $(use_with fftw)
197 - $(use_with fpx)
198 - $(use_with fontconfig)
199 - $(use_with truetype freetype)
200 - $(use_with postscript gslib)
201 - $(use_with graphviz gvc)
202 - $(use_with heif heic)
203 - $(use_with jbig)
204 - $(use_with jpeg)
205 - $(use_with jpeg2k openjp2)
206 - $(use_with lcms)
207 - $(use_with lqr)
208 - $(use_with lzma)
209 - $(use_with openexr)
210 - $(use_with pango)
211 - $(use_with png)
212 - $(use_with raw)
213 - $(use_with svg rsvg)
214 - $(use_with tiff)
215 - $(use_with webp)
216 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
217 - $(use_with wmf)
218 - $(use_with xml)
219 - --${openmp}-openmp
220 - --with-gcc-arch=no-automagic
221 - )
222 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
223 -}
224 -
225 -src_test() {
226 - # Install default (unrestricted) policy in $HOME for test suite #664238
227 - local _im_local_config_home="${HOME}/.config/ImageMagick"
228 - mkdir -p "${_im_local_config_home}" || \
229 - die "Failed to create IM config dir in '${_im_local_config_home}'"
230 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
231 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
232 -
233 - local im_command= IM_COMMANDS=()
234 - IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
235 - IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
236 - IM_COMMANDS+=( "emake check" ) # Run tests
237 -
238 - for im_command in "${IM_COMMANDS[@]}"; do
239 - eval "${S}"/magick.sh \
240 - ${im_command} || \
241 - die "Failed to run \"${im_command}\""
242 - done
243 -}
244 -
245 -src_install() {
246 - # Ensure documentation installation files and paths with each release!
247 - emake \
248 - DESTDIR="${D}" \
249 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
250 - install
251 -
252 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
253 - dodoc {AUTHORS,README}.txt ChangeLog
254 -
255 - if use perl; then
256 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
257 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
258 - fi
259 -
260 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
261 - # .la files in parent are not needed, keep plugin .la files
262 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
263 -
264 - if use opencl; then
265 - cat <<-EOF > "${T}"/99${PN}
266 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
267 - EOF
268 -
269 - insinto /etc/sandbox.d
270 - doins "${T}"/99${PN} #472766
271 - fi
272 -
273 - insinto /usr/share/${PN}
274 - doins config/*icm
275 -}
276 -
277 -pkg_postinst() {
278 - local _show_policy_xml_notice=
279 -
280 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
281 - # This is a new installation
282 - _show_policy_xml_notice=yes
283 - else
284 - local v
285 - for v in ${REPLACING_VERSIONS}; do
286 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
287 - # This is an upgrade
288 - _show_policy_xml_notice=yes
289 -
290 - # Show this elog only once
291 - break
292 - fi
293 - done
294 - fi
295 -
296 - if [[ -n "${_show_policy_xml_notice}" ]]; then
297 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
298 - elog "which will prevent the usage of the following coders by default:"
299 - elog ""
300 - elog " - PS"
301 - elog " - PS2"
302 - elog " - PS3"
303 - elog " - EPS"
304 - elog " - PDF"
305 - elog " - XPS"
306 - fi
307 -}
308
309 diff --git a/media-gfx/imagemagick/imagemagick-6.9.12.13.ebuild b/media-gfx/imagemagick/imagemagick-6.9.12.13.ebuild
310 deleted file mode 100644
311 index d17773f5081..00000000000
312 --- a/media-gfx/imagemagick/imagemagick-6.9.12.13.ebuild
313 +++ /dev/null
314 @@ -1,262 +0,0 @@
315 -# Copyright 1999-2021 Gentoo Authors
316 -# Distributed under the terms of the GNU General Public License v2
317 -
318 -EAPI="7"
319 -
320 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
321 -
322 -if [[ ${PV} == "9999" ]] ; then
323 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick6.git"
324 - inherit git-r3
325 - MY_P="imagemagick-9999"
326 -else
327 - MY_PV="$(ver_rs 3 '-')"
328 - MY_P="ImageMagick-${MY_PV}"
329 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
330 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
331 -fi
332 -
333 -DESCRIPTION="A collection of tools and libraries for many image formats"
334 -HOMEPAGE="https://www.imagemagick.org/"
335 -
336 -LICENSE="imagemagick"
337 -SLOT="0/6.9.11-60"
338 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
339 -
340 -REQUIRED_USE="corefonts? ( truetype )
341 - svg? ( xml )
342 - test? ( corefonts )"
343 -
344 -RESTRICT="!test? ( test )"
345 -
346 -BDEPEND="virtual/pkgconfig"
347 -
348 -RDEPEND="
349 - dev-libs/libltdl:0
350 - bzip2? ( app-arch/bzip2 )
351 - corefonts? ( media-fonts/corefonts )
352 - djvu? ( app-text/djvu )
353 - fftw? ( sci-libs/fftw:3.0 )
354 - fontconfig? ( media-libs/fontconfig )
355 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
356 - graphviz? ( media-gfx/graphviz )
357 - heif? ( media-libs/libheif:= )
358 - jbig? ( >=media-libs/jbigkit-2:= )
359 - jpeg? ( virtual/jpeg:0 )
360 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
361 - lcms? ( media-libs/lcms:2= )
362 - lqr? ( media-libs/liblqr )
363 - opencl? ( virtual/opencl )
364 - openexr? ( media-libs/openexr:0= )
365 - pango? ( x11-libs/pango )
366 - perl? ( >=dev-lang/perl-5.8.8:0= )
367 - png? ( media-libs/libpng:0= )
368 - postscript? ( app-text/ghostscript-gpl )
369 - raw? ( media-libs/libraw:= )
370 - svg? (
371 - gnome-base/librsvg
372 - media-gfx/potrace
373 - )
374 - tiff? ( media-libs/tiff:0= )
375 - truetype? (
376 - media-fonts/urw-fonts
377 - >=media-libs/freetype-2
378 - )
379 - webp? ( media-libs/libwebp:0= )
380 - wmf? ( media-libs/libwmf )
381 - X? (
382 - x11-libs/libICE
383 - x11-libs/libSM
384 - x11-libs/libXext
385 - x11-libs/libXt
386 - )
387 - xml? ( dev-libs/libxml2:= )
388 - lzma? ( app-arch/xz-utils )
389 - zlib? ( sys-libs/zlib:= )"
390 -
391 -DEPEND="${RDEPEND}
392 - !media-gfx/graphicsmagick[imagemagick]
393 - X? ( x11-base/xorg-proto )"
394 -
395 -S="${WORKDIR}/${MY_P}"
396 -
397 -src_prepare() {
398 - default
399 -
400 - # Apply hardening #664236
401 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
402 - sed -i -e '/^<policymap>$/ {
403 - r policy-hardening.snippet
404 - d
405 - }' \
406 - config/policy.xml || \
407 - die "Failed to apply hardening of policy.xml"
408 - einfo "policy.xml hardened"
409 -
410 - elibtoolize # for Darwin modules
411 -
412 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
413 - local ati_cards mesa_cards nvidia_cards render_cards
414 - shopt -s nullglob
415 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
416 - if test -n "${ati_cards}"; then
417 - addpredict "${ati_cards}"
418 - fi
419 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
420 - if test -n "${mesa_cards}"; then
421 - addpredict "${mesa_cards}"
422 - fi
423 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
424 - if test -n "${nvidia_cards}"; then
425 - addpredict "${nvidia_cards}"
426 - fi
427 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
428 - if test -n "${render_cards}"; then
429 - addpredict "${render_cards}"
430 - fi
431 - shopt -u nullglob
432 - addpredict /dev/nvidiactl
433 -}
434 -
435 -src_configure() {
436 - local depth=16
437 - use q8 && depth=8
438 - use q32 && depth=32
439 -
440 - local openmp=disable
441 - use openmp && { tc-has-openmp && openmp=enable; }
442 -
443 - use perl && perl_check_env
444 -
445 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
446 -
447 - local myeconfargs=(
448 - $(use_enable static-libs static)
449 - $(use_enable hdri)
450 - $(use_enable opencl)
451 - --with-threads
452 - --with-modules
453 - --with-quantum-depth=${depth}
454 - $(use_with cxx magick-plus-plus)
455 - $(use_with perl)
456 - --with-perl-options='INSTALLDIRS=vendor'
457 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
458 - $(use_with bzip2 bzlib)
459 - $(use_with X x)
460 - $(use_with zlib)
461 - --without-autotrace
462 - $(use_with postscript dps)
463 - $(use_with djvu)
464 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
465 - $(use_with fftw)
466 - $(use_with fpx)
467 - $(use_with fontconfig)
468 - $(use_with truetype freetype)
469 - $(use_with postscript gslib)
470 - $(use_with graphviz gvc)
471 - $(use_with heif heic)
472 - $(use_with jbig)
473 - $(use_with jpeg)
474 - $(use_with jpeg2k openjp2)
475 - $(use_with lcms)
476 - $(use_with lqr)
477 - $(use_with lzma)
478 - $(use_with openexr)
479 - $(use_with pango)
480 - $(use_with png)
481 - $(use_with raw)
482 - $(use_with svg rsvg)
483 - $(use_with tiff)
484 - $(use_with webp)
485 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
486 - $(use_with wmf)
487 - $(use_with xml)
488 - --${openmp}-openmp
489 - --with-gcc-arch=no-automagic
490 - )
491 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
492 -}
493 -
494 -src_test() {
495 - # Install default (unrestricted) policy in $HOME for test suite #664238
496 - local _im_local_config_home="${HOME}/.config/ImageMagick"
497 - mkdir -p "${_im_local_config_home}" || \
498 - die "Failed to create IM config dir in '${_im_local_config_home}'"
499 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
500 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
501 -
502 - local im_command= IM_COMMANDS=()
503 - IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
504 - IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
505 - IM_COMMANDS+=( "emake check" ) # Run tests
506 -
507 - for im_command in "${IM_COMMANDS[@]}"; do
508 - eval "${S}"/magick.sh \
509 - ${im_command} || \
510 - die "Failed to run \"${im_command}\""
511 - done
512 -}
513 -
514 -src_install() {
515 - # Ensure documentation installation files and paths with each release!
516 - emake \
517 - DESTDIR="${D}" \
518 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
519 - install
520 -
521 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
522 - dodoc {AUTHORS,README}.txt ChangeLog
523 -
524 - if use perl; then
525 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
526 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
527 - fi
528 -
529 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
530 - # .la files in parent are not needed, keep plugin .la files
531 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
532 -
533 - if use opencl; then
534 - cat <<-EOF > "${T}"/99${PN}
535 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
536 - EOF
537 -
538 - insinto /etc/sandbox.d
539 - doins "${T}"/99${PN} #472766
540 - fi
541 -
542 - insinto /usr/share/${PN}
543 - doins config/*icm
544 -}
545 -
546 -pkg_postinst() {
547 - local _show_policy_xml_notice=
548 -
549 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
550 - # This is a new installation
551 - _show_policy_xml_notice=yes
552 - else
553 - local v
554 - for v in ${REPLACING_VERSIONS}; do
555 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
556 - # This is an upgrade
557 - _show_policy_xml_notice=yes
558 -
559 - # Show this elog only once
560 - break
561 - fi
562 - done
563 - fi
564 -
565 - if [[ -n "${_show_policy_xml_notice}" ]]; then
566 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
567 - elog "which will prevent the usage of the following coders by default:"
568 - elog ""
569 - elog " - PS"
570 - elog " - PS2"
571 - elog " - PS3"
572 - elog " - EPS"
573 - elog " - PDF"
574 - elog " - XPS"
575 - fi
576 -}
577
578 diff --git a/media-gfx/imagemagick/imagemagick-6.9.12.15.ebuild b/media-gfx/imagemagick/imagemagick-6.9.12.15.ebuild
579 deleted file mode 100644
580 index 69de151f32b..00000000000
581 --- a/media-gfx/imagemagick/imagemagick-6.9.12.15.ebuild
582 +++ /dev/null
583 @@ -1,262 +0,0 @@
584 -# Copyright 1999-2021 Gentoo Authors
585 -# Distributed under the terms of the GNU General Public License v2
586 -
587 -EAPI="7"
588 -
589 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
590 -
591 -if [[ ${PV} == "9999" ]] ; then
592 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick6.git"
593 - inherit git-r3
594 - MY_P="imagemagick-9999"
595 -else
596 - MY_PV="$(ver_rs 3 '-')"
597 - MY_P="ImageMagick-${MY_PV}"
598 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
599 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
600 -fi
601 -
602 -DESCRIPTION="A collection of tools and libraries for many image formats"
603 -HOMEPAGE="https://www.imagemagick.org/"
604 -
605 -LICENSE="imagemagick"
606 -SLOT="0/6.9.11-60"
607 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
608 -
609 -REQUIRED_USE="corefonts? ( truetype )
610 - svg? ( xml )
611 - test? ( corefonts )"
612 -
613 -RESTRICT="!test? ( test )"
614 -
615 -BDEPEND="virtual/pkgconfig"
616 -
617 -RDEPEND="
618 - dev-libs/libltdl:0
619 - bzip2? ( app-arch/bzip2 )
620 - corefonts? ( media-fonts/corefonts )
621 - djvu? ( app-text/djvu )
622 - fftw? ( sci-libs/fftw:3.0 )
623 - fontconfig? ( media-libs/fontconfig )
624 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
625 - graphviz? ( media-gfx/graphviz )
626 - heif? ( media-libs/libheif:= )
627 - jbig? ( >=media-libs/jbigkit-2:= )
628 - jpeg? ( virtual/jpeg:0 )
629 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
630 - lcms? ( media-libs/lcms:2= )
631 - lqr? ( media-libs/liblqr )
632 - opencl? ( virtual/opencl )
633 - openexr? ( media-libs/openexr:0= )
634 - pango? ( x11-libs/pango )
635 - perl? ( >=dev-lang/perl-5.8.8:0= )
636 - png? ( media-libs/libpng:0= )
637 - postscript? ( app-text/ghostscript-gpl )
638 - raw? ( media-libs/libraw:= )
639 - svg? (
640 - gnome-base/librsvg
641 - media-gfx/potrace
642 - )
643 - tiff? ( media-libs/tiff:0= )
644 - truetype? (
645 - media-fonts/urw-fonts
646 - >=media-libs/freetype-2
647 - )
648 - webp? ( media-libs/libwebp:0= )
649 - wmf? ( media-libs/libwmf )
650 - X? (
651 - x11-libs/libICE
652 - x11-libs/libSM
653 - x11-libs/libXext
654 - x11-libs/libXt
655 - )
656 - xml? ( dev-libs/libxml2:= )
657 - lzma? ( app-arch/xz-utils )
658 - zlib? ( sys-libs/zlib:= )"
659 -
660 -DEPEND="${RDEPEND}
661 - !media-gfx/graphicsmagick[imagemagick]
662 - X? ( x11-base/xorg-proto )"
663 -
664 -S="${WORKDIR}/${MY_P}"
665 -
666 -src_prepare() {
667 - default
668 -
669 - # Apply hardening #664236
670 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
671 - sed -i -e '/^<policymap>$/ {
672 - r policy-hardening.snippet
673 - d
674 - }' \
675 - config/policy.xml || \
676 - die "Failed to apply hardening of policy.xml"
677 - einfo "policy.xml hardened"
678 -
679 - elibtoolize # for Darwin modules
680 -
681 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
682 - local ati_cards mesa_cards nvidia_cards render_cards
683 - shopt -s nullglob
684 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
685 - if test -n "${ati_cards}"; then
686 - addpredict "${ati_cards}"
687 - fi
688 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
689 - if test -n "${mesa_cards}"; then
690 - addpredict "${mesa_cards}"
691 - fi
692 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
693 - if test -n "${nvidia_cards}"; then
694 - addpredict "${nvidia_cards}"
695 - fi
696 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
697 - if test -n "${render_cards}"; then
698 - addpredict "${render_cards}"
699 - fi
700 - shopt -u nullglob
701 - addpredict /dev/nvidiactl
702 -}
703 -
704 -src_configure() {
705 - local depth=16
706 - use q8 && depth=8
707 - use q32 && depth=32
708 -
709 - local openmp=disable
710 - use openmp && { tc-has-openmp && openmp=enable; }
711 -
712 - use perl && perl_check_env
713 -
714 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
715 -
716 - local myeconfargs=(
717 - $(use_enable static-libs static)
718 - $(use_enable hdri)
719 - $(use_enable opencl)
720 - --with-threads
721 - --with-modules
722 - --with-quantum-depth=${depth}
723 - $(use_with cxx magick-plus-plus)
724 - $(use_with perl)
725 - --with-perl-options='INSTALLDIRS=vendor'
726 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
727 - $(use_with bzip2 bzlib)
728 - $(use_with X x)
729 - $(use_with zlib)
730 - --without-autotrace
731 - $(use_with postscript dps)
732 - $(use_with djvu)
733 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
734 - $(use_with fftw)
735 - $(use_with fpx)
736 - $(use_with fontconfig)
737 - $(use_with truetype freetype)
738 - $(use_with postscript gslib)
739 - $(use_with graphviz gvc)
740 - $(use_with heif heic)
741 - $(use_with jbig)
742 - $(use_with jpeg)
743 - $(use_with jpeg2k openjp2)
744 - $(use_with lcms)
745 - $(use_with lqr)
746 - $(use_with lzma)
747 - $(use_with openexr)
748 - $(use_with pango)
749 - $(use_with png)
750 - $(use_with raw)
751 - $(use_with svg rsvg)
752 - $(use_with tiff)
753 - $(use_with webp)
754 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
755 - $(use_with wmf)
756 - $(use_with xml)
757 - --${openmp}-openmp
758 - --with-gcc-arch=no-automagic
759 - )
760 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
761 -}
762 -
763 -src_test() {
764 - # Install default (unrestricted) policy in $HOME for test suite #664238
765 - local _im_local_config_home="${HOME}/.config/ImageMagick"
766 - mkdir -p "${_im_local_config_home}" || \
767 - die "Failed to create IM config dir in '${_im_local_config_home}'"
768 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
769 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
770 -
771 - local im_command= IM_COMMANDS=()
772 - IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
773 - IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
774 - IM_COMMANDS+=( "emake check" ) # Run tests
775 -
776 - for im_command in "${IM_COMMANDS[@]}"; do
777 - eval "${S}"/magick.sh \
778 - ${im_command} || \
779 - die "Failed to run \"${im_command}\""
780 - done
781 -}
782 -
783 -src_install() {
784 - # Ensure documentation installation files and paths with each release!
785 - emake \
786 - DESTDIR="${D}" \
787 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
788 - install
789 -
790 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
791 - dodoc {AUTHORS,README}.txt ChangeLog
792 -
793 - if use perl; then
794 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
795 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
796 - fi
797 -
798 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
799 - # .la files in parent are not needed, keep plugin .la files
800 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
801 -
802 - if use opencl; then
803 - cat <<-EOF > "${T}"/99${PN}
804 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
805 - EOF
806 -
807 - insinto /etc/sandbox.d
808 - doins "${T}"/99${PN} #472766
809 - fi
810 -
811 - insinto /usr/share/${PN}
812 - doins config/*icm
813 -}
814 -
815 -pkg_postinst() {
816 - local _show_policy_xml_notice=
817 -
818 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
819 - # This is a new installation
820 - _show_policy_xml_notice=yes
821 - else
822 - local v
823 - for v in ${REPLACING_VERSIONS}; do
824 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
825 - # This is an upgrade
826 - _show_policy_xml_notice=yes
827 -
828 - # Show this elog only once
829 - break
830 - fi
831 - done
832 - fi
833 -
834 - if [[ -n "${_show_policy_xml_notice}" ]]; then
835 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
836 - elog "which will prevent the usage of the following coders by default:"
837 - elog ""
838 - elog " - PS"
839 - elog " - PS2"
840 - elog " - PS3"
841 - elog " - EPS"
842 - elog " - PDF"
843 - elog " - XPS"
844 - fi
845 -}
846
847 diff --git a/media-gfx/imagemagick/imagemagick-6.9.12.16.ebuild b/media-gfx/imagemagick/imagemagick-6.9.12.16.ebuild
848 deleted file mode 100644
849 index d17773f5081..00000000000
850 --- a/media-gfx/imagemagick/imagemagick-6.9.12.16.ebuild
851 +++ /dev/null
852 @@ -1,262 +0,0 @@
853 -# Copyright 1999-2021 Gentoo Authors
854 -# Distributed under the terms of the GNU General Public License v2
855 -
856 -EAPI="7"
857 -
858 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
859 -
860 -if [[ ${PV} == "9999" ]] ; then
861 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick6.git"
862 - inherit git-r3
863 - MY_P="imagemagick-9999"
864 -else
865 - MY_PV="$(ver_rs 3 '-')"
866 - MY_P="ImageMagick-${MY_PV}"
867 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
868 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
869 -fi
870 -
871 -DESCRIPTION="A collection of tools and libraries for many image formats"
872 -HOMEPAGE="https://www.imagemagick.org/"
873 -
874 -LICENSE="imagemagick"
875 -SLOT="0/6.9.11-60"
876 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
877 -
878 -REQUIRED_USE="corefonts? ( truetype )
879 - svg? ( xml )
880 - test? ( corefonts )"
881 -
882 -RESTRICT="!test? ( test )"
883 -
884 -BDEPEND="virtual/pkgconfig"
885 -
886 -RDEPEND="
887 - dev-libs/libltdl:0
888 - bzip2? ( app-arch/bzip2 )
889 - corefonts? ( media-fonts/corefonts )
890 - djvu? ( app-text/djvu )
891 - fftw? ( sci-libs/fftw:3.0 )
892 - fontconfig? ( media-libs/fontconfig )
893 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
894 - graphviz? ( media-gfx/graphviz )
895 - heif? ( media-libs/libheif:= )
896 - jbig? ( >=media-libs/jbigkit-2:= )
897 - jpeg? ( virtual/jpeg:0 )
898 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
899 - lcms? ( media-libs/lcms:2= )
900 - lqr? ( media-libs/liblqr )
901 - opencl? ( virtual/opencl )
902 - openexr? ( media-libs/openexr:0= )
903 - pango? ( x11-libs/pango )
904 - perl? ( >=dev-lang/perl-5.8.8:0= )
905 - png? ( media-libs/libpng:0= )
906 - postscript? ( app-text/ghostscript-gpl )
907 - raw? ( media-libs/libraw:= )
908 - svg? (
909 - gnome-base/librsvg
910 - media-gfx/potrace
911 - )
912 - tiff? ( media-libs/tiff:0= )
913 - truetype? (
914 - media-fonts/urw-fonts
915 - >=media-libs/freetype-2
916 - )
917 - webp? ( media-libs/libwebp:0= )
918 - wmf? ( media-libs/libwmf )
919 - X? (
920 - x11-libs/libICE
921 - x11-libs/libSM
922 - x11-libs/libXext
923 - x11-libs/libXt
924 - )
925 - xml? ( dev-libs/libxml2:= )
926 - lzma? ( app-arch/xz-utils )
927 - zlib? ( sys-libs/zlib:= )"
928 -
929 -DEPEND="${RDEPEND}
930 - !media-gfx/graphicsmagick[imagemagick]
931 - X? ( x11-base/xorg-proto )"
932 -
933 -S="${WORKDIR}/${MY_P}"
934 -
935 -src_prepare() {
936 - default
937 -
938 - # Apply hardening #664236
939 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
940 - sed -i -e '/^<policymap>$/ {
941 - r policy-hardening.snippet
942 - d
943 - }' \
944 - config/policy.xml || \
945 - die "Failed to apply hardening of policy.xml"
946 - einfo "policy.xml hardened"
947 -
948 - elibtoolize # for Darwin modules
949 -
950 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
951 - local ati_cards mesa_cards nvidia_cards render_cards
952 - shopt -s nullglob
953 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
954 - if test -n "${ati_cards}"; then
955 - addpredict "${ati_cards}"
956 - fi
957 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
958 - if test -n "${mesa_cards}"; then
959 - addpredict "${mesa_cards}"
960 - fi
961 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
962 - if test -n "${nvidia_cards}"; then
963 - addpredict "${nvidia_cards}"
964 - fi
965 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
966 - if test -n "${render_cards}"; then
967 - addpredict "${render_cards}"
968 - fi
969 - shopt -u nullglob
970 - addpredict /dev/nvidiactl
971 -}
972 -
973 -src_configure() {
974 - local depth=16
975 - use q8 && depth=8
976 - use q32 && depth=32
977 -
978 - local openmp=disable
979 - use openmp && { tc-has-openmp && openmp=enable; }
980 -
981 - use perl && perl_check_env
982 -
983 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
984 -
985 - local myeconfargs=(
986 - $(use_enable static-libs static)
987 - $(use_enable hdri)
988 - $(use_enable opencl)
989 - --with-threads
990 - --with-modules
991 - --with-quantum-depth=${depth}
992 - $(use_with cxx magick-plus-plus)
993 - $(use_with perl)
994 - --with-perl-options='INSTALLDIRS=vendor'
995 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
996 - $(use_with bzip2 bzlib)
997 - $(use_with X x)
998 - $(use_with zlib)
999 - --without-autotrace
1000 - $(use_with postscript dps)
1001 - $(use_with djvu)
1002 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
1003 - $(use_with fftw)
1004 - $(use_with fpx)
1005 - $(use_with fontconfig)
1006 - $(use_with truetype freetype)
1007 - $(use_with postscript gslib)
1008 - $(use_with graphviz gvc)
1009 - $(use_with heif heic)
1010 - $(use_with jbig)
1011 - $(use_with jpeg)
1012 - $(use_with jpeg2k openjp2)
1013 - $(use_with lcms)
1014 - $(use_with lqr)
1015 - $(use_with lzma)
1016 - $(use_with openexr)
1017 - $(use_with pango)
1018 - $(use_with png)
1019 - $(use_with raw)
1020 - $(use_with svg rsvg)
1021 - $(use_with tiff)
1022 - $(use_with webp)
1023 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
1024 - $(use_with wmf)
1025 - $(use_with xml)
1026 - --${openmp}-openmp
1027 - --with-gcc-arch=no-automagic
1028 - )
1029 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
1030 -}
1031 -
1032 -src_test() {
1033 - # Install default (unrestricted) policy in $HOME for test suite #664238
1034 - local _im_local_config_home="${HOME}/.config/ImageMagick"
1035 - mkdir -p "${_im_local_config_home}" || \
1036 - die "Failed to create IM config dir in '${_im_local_config_home}'"
1037 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
1038 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
1039 -
1040 - local im_command= IM_COMMANDS=()
1041 - IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
1042 - IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
1043 - IM_COMMANDS+=( "emake check" ) # Run tests
1044 -
1045 - for im_command in "${IM_COMMANDS[@]}"; do
1046 - eval "${S}"/magick.sh \
1047 - ${im_command} || \
1048 - die "Failed to run \"${im_command}\""
1049 - done
1050 -}
1051 -
1052 -src_install() {
1053 - # Ensure documentation installation files and paths with each release!
1054 - emake \
1055 - DESTDIR="${D}" \
1056 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1057 - install
1058 -
1059 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1060 - dodoc {AUTHORS,README}.txt ChangeLog
1061 -
1062 - if use perl; then
1063 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1064 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1065 - fi
1066 -
1067 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1068 - # .la files in parent are not needed, keep plugin .la files
1069 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
1070 -
1071 - if use opencl; then
1072 - cat <<-EOF > "${T}"/99${PN}
1073 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
1074 - EOF
1075 -
1076 - insinto /etc/sandbox.d
1077 - doins "${T}"/99${PN} #472766
1078 - fi
1079 -
1080 - insinto /usr/share/${PN}
1081 - doins config/*icm
1082 -}
1083 -
1084 -pkg_postinst() {
1085 - local _show_policy_xml_notice=
1086 -
1087 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1088 - # This is a new installation
1089 - _show_policy_xml_notice=yes
1090 - else
1091 - local v
1092 - for v in ${REPLACING_VERSIONS}; do
1093 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
1094 - # This is an upgrade
1095 - _show_policy_xml_notice=yes
1096 -
1097 - # Show this elog only once
1098 - break
1099 - fi
1100 - done
1101 - fi
1102 -
1103 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1104 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
1105 - elog "which will prevent the usage of the following coders by default:"
1106 - elog ""
1107 - elog " - PS"
1108 - elog " - PS2"
1109 - elog " - PS3"
1110 - elog " - EPS"
1111 - elog " - PDF"
1112 - elog " - XPS"
1113 - fi
1114 -}
1115
1116 diff --git a/media-gfx/imagemagick/imagemagick-7.0.11.12.ebuild b/media-gfx/imagemagick/imagemagick-7.0.11.12.ebuild
1117 deleted file mode 100644
1118 index 53b6fa068e7..00000000000
1119 --- a/media-gfx/imagemagick/imagemagick-7.0.11.12.ebuild
1120 +++ /dev/null
1121 @@ -1,267 +0,0 @@
1122 -# Copyright 1999-2021 Gentoo Authors
1123 -# Distributed under the terms of the GNU General Public License v2
1124 -
1125 -EAPI="7"
1126 -
1127 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
1128 -
1129 -if [[ ${PV} == "9999" ]] ; then
1130 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
1131 - inherit git-r3
1132 - MY_P="imagemagick-9999"
1133 -else
1134 - MY_PV="$(ver_rs 3 '-')"
1135 - MY_P="ImageMagick-${MY_PV}"
1136 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
1137 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
1138 -fi
1139 -
1140 -DESCRIPTION="A collection of tools and libraries for many image formats"
1141 -HOMEPAGE="https://www.imagemagick.org/"
1142 -
1143 -LICENSE="imagemagick"
1144 -SLOT="0/7.0.11-0"
1145 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
1146 -
1147 -REQUIRED_USE="corefonts? ( truetype )
1148 - svg? ( xml )
1149 - test? ( corefonts )"
1150 -
1151 -RESTRICT="!test? ( test )"
1152 -
1153 -BDEPEND="virtual/pkgconfig"
1154 -
1155 -RDEPEND="
1156 - dev-libs/libltdl:0
1157 - bzip2? ( app-arch/bzip2 )
1158 - corefonts? ( media-fonts/corefonts )
1159 - djvu? ( app-text/djvu )
1160 - fftw? ( sci-libs/fftw:3.0 )
1161 - fontconfig? ( media-libs/fontconfig )
1162 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
1163 - graphviz? ( media-gfx/graphviz )
1164 - heif? ( media-libs/libheif:= )
1165 - jbig? ( >=media-libs/jbigkit-2:= )
1166 - jpeg? ( virtual/jpeg:0 )
1167 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
1168 - lcms? ( media-libs/lcms:2= )
1169 - lqr? ( media-libs/liblqr )
1170 - opencl? ( virtual/opencl )
1171 - openexr? ( media-libs/openexr:0= )
1172 - pango? ( x11-libs/pango )
1173 - perl? ( >=dev-lang/perl-5.8.8:0= )
1174 - png? ( media-libs/libpng:0= )
1175 - postscript? ( app-text/ghostscript-gpl )
1176 - raw? ( media-libs/libraw:= )
1177 - svg? (
1178 - gnome-base/librsvg
1179 - media-gfx/potrace
1180 - )
1181 - tiff? ( media-libs/tiff:0= )
1182 - truetype? (
1183 - media-fonts/urw-fonts
1184 - >=media-libs/freetype-2
1185 - )
1186 - webp? ( media-libs/libwebp:0= )
1187 - wmf? ( media-libs/libwmf )
1188 - X? (
1189 - x11-libs/libICE
1190 - x11-libs/libSM
1191 - x11-libs/libXext
1192 - x11-libs/libXt
1193 - )
1194 - xml? ( dev-libs/libxml2:= )
1195 - lzma? ( app-arch/xz-utils )
1196 - zlib? ( sys-libs/zlib:= )"
1197 -
1198 -DEPEND="${RDEPEND}
1199 - !media-gfx/graphicsmagick[imagemagick]
1200 - X? ( x11-base/xorg-proto )"
1201 -
1202 -S="${WORKDIR}/${MY_P}"
1203 -
1204 -src_prepare() {
1205 - default
1206 -
1207 - # Apply hardening #664236
1208 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
1209 - sed -i -e '/^<policymap>$/ {
1210 - r policy-hardening.snippet
1211 - d
1212 - }' \
1213 - config/policy.xml || \
1214 - die "Failed to apply hardening of policy.xml"
1215 - einfo "policy.xml hardened"
1216 -
1217 - elibtoolize # for Darwin modules
1218 -
1219 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
1220 - local ati_cards mesa_cards nvidia_cards render_cards
1221 - shopt -s nullglob
1222 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
1223 - if test -n "${ati_cards}"; then
1224 - addpredict "${ati_cards}"
1225 - fi
1226 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
1227 - if test -n "${mesa_cards}"; then
1228 - addpredict "${mesa_cards}"
1229 - fi
1230 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
1231 - if test -n "${nvidia_cards}"; then
1232 - addpredict "${nvidia_cards}"
1233 - fi
1234 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
1235 - if test -n "${render_cards}"; then
1236 - addpredict "${render_cards}"
1237 - fi
1238 - shopt -u nullglob
1239 - addpredict /dev/nvidiactl
1240 -}
1241 -
1242 -src_configure() {
1243 - local depth=16
1244 - use q8 && depth=8
1245 - use q32 && depth=32
1246 -
1247 - local openmp=disable
1248 - use openmp && { tc-has-openmp && openmp=enable; }
1249 -
1250 - use perl && perl_check_env
1251 -
1252 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
1253 -
1254 - local myeconfargs=(
1255 - $(use_enable static-libs static)
1256 - $(use_enable hdri)
1257 - $(use_enable opencl)
1258 - --with-threads
1259 - --with-modules
1260 - --with-quantum-depth=${depth}
1261 - $(use_with cxx magick-plus-plus)
1262 - $(use_with perl)
1263 - --with-perl-options='INSTALLDIRS=vendor'
1264 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
1265 - $(use_with bzip2 bzlib)
1266 - $(use_with X x)
1267 - $(use_with zlib)
1268 - --without-autotrace
1269 - $(use_with postscript dps)
1270 - $(use_with djvu)
1271 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
1272 - $(use_with fftw)
1273 - $(use_with fpx)
1274 - $(use_with fontconfig)
1275 - $(use_with truetype freetype)
1276 - $(use_with postscript gslib)
1277 - $(use_with graphviz gvc)
1278 - $(use_with heif heic)
1279 - $(use_with jbig)
1280 - $(use_with jpeg)
1281 - $(use_with jpeg2k openjp2)
1282 - --without-jxl
1283 - $(use_with lcms)
1284 - $(use_with lqr)
1285 - $(use_with lzma)
1286 - $(use_with openexr)
1287 - $(use_with pango)
1288 - $(use_with png)
1289 - $(use_with raw)
1290 - $(use_with svg rsvg)
1291 - $(use_with tiff)
1292 - $(use_with webp)
1293 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
1294 - $(use_with wmf)
1295 - $(use_with xml)
1296 - --${openmp}-openmp
1297 - --with-gcc-arch=no-automagic
1298 - )
1299 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
1300 -}
1301 -
1302 -src_test() {
1303 - # Install default (unrestricted) policy in $HOME for test suite #664238
1304 - local _im_local_config_home="${HOME}/.config/ImageMagick"
1305 - mkdir -p "${_im_local_config_home}" || \
1306 - die "Failed to create IM config dir in '${_im_local_config_home}'"
1307 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
1308 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
1309 -
1310 - local im_command= IM_COMMANDS=()
1311 - if [[ ${PV} == "9999" ]] ; then
1312 - IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
1313 - else
1314 - IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
1315 - fi
1316 - IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
1317 - IM_COMMANDS+=( "emake check" ) # Run tests
1318 -
1319 - for im_command in "${IM_COMMANDS[@]}"; do
1320 - eval "${S}"/magick.sh \
1321 - ${im_command} || \
1322 - die "Failed to run \"${im_command}\""
1323 - done
1324 -}
1325 -
1326 -src_install() {
1327 - # Ensure documentation installation files and paths with each release!
1328 - emake \
1329 - DESTDIR="${D}" \
1330 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1331 - install
1332 -
1333 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1334 - dodoc {AUTHORS,README}.txt ChangeLog
1335 -
1336 - if use perl; then
1337 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1338 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1339 - fi
1340 -
1341 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1342 - # .la files in parent are not needed, keep plugin .la files
1343 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
1344 -
1345 - if use opencl; then
1346 - cat <<-EOF > "${T}"/99${PN}
1347 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
1348 - EOF
1349 -
1350 - insinto /etc/sandbox.d
1351 - doins "${T}"/99${PN} #472766
1352 - fi
1353 -
1354 - insinto /usr/share/${PN}
1355 - doins config/*icm
1356 -}
1357 -
1358 -pkg_postinst() {
1359 - local _show_policy_xml_notice=
1360 -
1361 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1362 - # This is a new installation
1363 - _show_policy_xml_notice=yes
1364 - else
1365 - local v
1366 - for v in ${REPLACING_VERSIONS}; do
1367 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
1368 - # This is an upgrade
1369 - _show_policy_xml_notice=yes
1370 -
1371 - # Show this elog only once
1372 - break
1373 - fi
1374 - done
1375 - fi
1376 -
1377 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1378 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
1379 - elog "which will prevent the usage of the following coders by default:"
1380 - elog ""
1381 - elog " - PS"
1382 - elog " - PS2"
1383 - elog " - PS3"
1384 - elog " - EPS"
1385 - elog " - PDF"
1386 - elog " - XPS"
1387 - fi
1388 -}
1389
1390 diff --git a/media-gfx/imagemagick/imagemagick-7.0.11.13.ebuild b/media-gfx/imagemagick/imagemagick-7.0.11.13.ebuild
1391 deleted file mode 100644
1392 index 769cb4c0e00..00000000000
1393 --- a/media-gfx/imagemagick/imagemagick-7.0.11.13.ebuild
1394 +++ /dev/null
1395 @@ -1,267 +0,0 @@
1396 -# Copyright 1999-2021 Gentoo Authors
1397 -# Distributed under the terms of the GNU General Public License v2
1398 -
1399 -EAPI="7"
1400 -
1401 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
1402 -
1403 -if [[ ${PV} == "9999" ]] ; then
1404 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
1405 - inherit git-r3
1406 - MY_P="imagemagick-9999"
1407 -else
1408 - MY_PV="$(ver_rs 3 '-')"
1409 - MY_P="ImageMagick-${MY_PV}"
1410 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
1411 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
1412 -fi
1413 -
1414 -DESCRIPTION="A collection of tools and libraries for many image formats"
1415 -HOMEPAGE="https://www.imagemagick.org/"
1416 -
1417 -LICENSE="imagemagick"
1418 -SLOT="0/7.0.11-0"
1419 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
1420 -
1421 -REQUIRED_USE="corefonts? ( truetype )
1422 - svg? ( xml )
1423 - test? ( corefonts )"
1424 -
1425 -RESTRICT="!test? ( test )"
1426 -
1427 -BDEPEND="virtual/pkgconfig"
1428 -
1429 -RDEPEND="
1430 - dev-libs/libltdl:0
1431 - bzip2? ( app-arch/bzip2 )
1432 - corefonts? ( media-fonts/corefonts )
1433 - djvu? ( app-text/djvu )
1434 - fftw? ( sci-libs/fftw:3.0 )
1435 - fontconfig? ( media-libs/fontconfig )
1436 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
1437 - graphviz? ( media-gfx/graphviz )
1438 - heif? ( media-libs/libheif:= )
1439 - jbig? ( >=media-libs/jbigkit-2:= )
1440 - jpeg? ( virtual/jpeg:0 )
1441 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
1442 - lcms? ( media-libs/lcms:2= )
1443 - lqr? ( media-libs/liblqr )
1444 - opencl? ( virtual/opencl )
1445 - openexr? ( media-libs/openexr:0= )
1446 - pango? ( x11-libs/pango )
1447 - perl? ( >=dev-lang/perl-5.8.8:0= )
1448 - png? ( media-libs/libpng:0= )
1449 - postscript? ( app-text/ghostscript-gpl )
1450 - raw? ( media-libs/libraw:= )
1451 - svg? (
1452 - gnome-base/librsvg
1453 - media-gfx/potrace
1454 - )
1455 - tiff? ( media-libs/tiff:0= )
1456 - truetype? (
1457 - media-fonts/urw-fonts
1458 - >=media-libs/freetype-2
1459 - )
1460 - webp? ( media-libs/libwebp:0= )
1461 - wmf? ( media-libs/libwmf )
1462 - X? (
1463 - x11-libs/libICE
1464 - x11-libs/libSM
1465 - x11-libs/libXext
1466 - x11-libs/libXt
1467 - )
1468 - xml? ( dev-libs/libxml2:= )
1469 - lzma? ( app-arch/xz-utils )
1470 - zlib? ( sys-libs/zlib:= )"
1471 -
1472 -DEPEND="${RDEPEND}
1473 - !media-gfx/graphicsmagick[imagemagick]
1474 - X? ( x11-base/xorg-proto )"
1475 -
1476 -S="${WORKDIR}/${MY_P}"
1477 -
1478 -src_prepare() {
1479 - default
1480 -
1481 - # Apply hardening #664236
1482 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
1483 - sed -i -e '/^<policymap>$/ {
1484 - r policy-hardening.snippet
1485 - d
1486 - }' \
1487 - config/policy.xml || \
1488 - die "Failed to apply hardening of policy.xml"
1489 - einfo "policy.xml hardened"
1490 -
1491 - elibtoolize # for Darwin modules
1492 -
1493 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
1494 - local ati_cards mesa_cards nvidia_cards render_cards
1495 - shopt -s nullglob
1496 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
1497 - if test -n "${ati_cards}"; then
1498 - addpredict "${ati_cards}"
1499 - fi
1500 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
1501 - if test -n "${mesa_cards}"; then
1502 - addpredict "${mesa_cards}"
1503 - fi
1504 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
1505 - if test -n "${nvidia_cards}"; then
1506 - addpredict "${nvidia_cards}"
1507 - fi
1508 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
1509 - if test -n "${render_cards}"; then
1510 - addpredict "${render_cards}"
1511 - fi
1512 - shopt -u nullglob
1513 - addpredict /dev/nvidiactl
1514 -}
1515 -
1516 -src_configure() {
1517 - local depth=16
1518 - use q8 && depth=8
1519 - use q32 && depth=32
1520 -
1521 - local openmp=disable
1522 - use openmp && { tc-has-openmp && openmp=enable; }
1523 -
1524 - use perl && perl_check_env
1525 -
1526 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
1527 -
1528 - local myeconfargs=(
1529 - $(use_enable static-libs static)
1530 - $(use_enable hdri)
1531 - $(use_enable opencl)
1532 - --with-threads
1533 - --with-modules
1534 - --with-quantum-depth=${depth}
1535 - $(use_with cxx magick-plus-plus)
1536 - $(use_with perl)
1537 - --with-perl-options='INSTALLDIRS=vendor'
1538 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
1539 - $(use_with bzip2 bzlib)
1540 - $(use_with X x)
1541 - $(use_with zlib)
1542 - --without-autotrace
1543 - $(use_with postscript dps)
1544 - $(use_with djvu)
1545 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
1546 - $(use_with fftw)
1547 - $(use_with fpx)
1548 - $(use_with fontconfig)
1549 - $(use_with truetype freetype)
1550 - $(use_with postscript gslib)
1551 - $(use_with graphviz gvc)
1552 - $(use_with heif heic)
1553 - $(use_with jbig)
1554 - $(use_with jpeg)
1555 - $(use_with jpeg2k openjp2)
1556 - --without-jxl
1557 - $(use_with lcms)
1558 - $(use_with lqr)
1559 - $(use_with lzma)
1560 - $(use_with openexr)
1561 - $(use_with pango)
1562 - $(use_with png)
1563 - $(use_with raw)
1564 - $(use_with svg rsvg)
1565 - $(use_with tiff)
1566 - $(use_with webp)
1567 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
1568 - $(use_with wmf)
1569 - $(use_with xml)
1570 - --${openmp}-openmp
1571 - --with-gcc-arch=no-automagic
1572 - )
1573 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
1574 -}
1575 -
1576 -src_test() {
1577 - # Install default (unrestricted) policy in $HOME for test suite #664238
1578 - local _im_local_config_home="${HOME}/.config/ImageMagick"
1579 - mkdir -p "${_im_local_config_home}" || \
1580 - die "Failed to create IM config dir in '${_im_local_config_home}'"
1581 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
1582 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
1583 -
1584 - local im_command= IM_COMMANDS=()
1585 - if [[ ${PV} == "9999" ]] ; then
1586 - IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
1587 - else
1588 - IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
1589 - fi
1590 - IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
1591 - IM_COMMANDS+=( "emake check" ) # Run tests
1592 -
1593 - for im_command in "${IM_COMMANDS[@]}"; do
1594 - eval "${S}"/magick.sh \
1595 - ${im_command} || \
1596 - die "Failed to run \"${im_command}\""
1597 - done
1598 -}
1599 -
1600 -src_install() {
1601 - # Ensure documentation installation files and paths with each release!
1602 - emake \
1603 - DESTDIR="${D}" \
1604 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1605 - install
1606 -
1607 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1608 - dodoc {AUTHORS,README}.txt ChangeLog
1609 -
1610 - if use perl; then
1611 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1612 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1613 - fi
1614 -
1615 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1616 - # .la files in parent are not needed, keep plugin .la files
1617 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
1618 -
1619 - if use opencl; then
1620 - cat <<-EOF > "${T}"/99${PN}
1621 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
1622 - EOF
1623 -
1624 - insinto /etc/sandbox.d
1625 - doins "${T}"/99${PN} #472766
1626 - fi
1627 -
1628 - insinto /usr/share/${PN}
1629 - doins config/*icm
1630 -}
1631 -
1632 -pkg_postinst() {
1633 - local _show_policy_xml_notice=
1634 -
1635 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1636 - # This is a new installation
1637 - _show_policy_xml_notice=yes
1638 - else
1639 - local v
1640 - for v in ${REPLACING_VERSIONS}; do
1641 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
1642 - # This is an upgrade
1643 - _show_policy_xml_notice=yes
1644 -
1645 - # Show this elog only once
1646 - break
1647 - fi
1648 - done
1649 - fi
1650 -
1651 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1652 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
1653 - elog "which will prevent the usage of the following coders by default:"
1654 - elog ""
1655 - elog " - PS"
1656 - elog " - PS2"
1657 - elog " - PS3"
1658 - elog " - EPS"
1659 - elog " - PDF"
1660 - elog " - XPS"
1661 - fi
1662 -}
1663
1664 diff --git a/media-gfx/imagemagick/imagemagick-7.1.0.0.ebuild b/media-gfx/imagemagick/imagemagick-7.1.0.0.ebuild
1665 deleted file mode 100644
1666 index aee829b4dd8..00000000000
1667 --- a/media-gfx/imagemagick/imagemagick-7.1.0.0.ebuild
1668 +++ /dev/null
1669 @@ -1,269 +0,0 @@
1670 -# Copyright 1999-2021 Gentoo Authors
1671 -# Distributed under the terms of the GNU General Public License v2
1672 -
1673 -EAPI="7"
1674 -
1675 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
1676 -
1677 -if [[ ${PV} == "9999" ]] ; then
1678 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
1679 - inherit git-r3
1680 - MY_P="imagemagick-9999"
1681 -else
1682 - MY_PV="$(ver_rs 3 '-')"
1683 - MY_P="ImageMagick-${MY_PV}"
1684 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
1685 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
1686 -fi
1687 -
1688 -DESCRIPTION="A collection of tools and libraries for many image formats"
1689 -HOMEPAGE="https://www.imagemagick.org/"
1690 -
1691 -LICENSE="imagemagick"
1692 -SLOT="0/7.1.0-0"
1693 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zip zlib"
1694 -
1695 -REQUIRED_USE="corefonts? ( truetype )
1696 - svg? ( xml )
1697 - test? ( corefonts )"
1698 -
1699 -RESTRICT="!test? ( test )"
1700 -
1701 -BDEPEND="virtual/pkgconfig"
1702 -
1703 -RDEPEND="
1704 - dev-libs/libltdl:0
1705 - bzip2? ( app-arch/bzip2 )
1706 - corefonts? ( media-fonts/corefonts )
1707 - djvu? ( app-text/djvu )
1708 - fftw? ( sci-libs/fftw:3.0 )
1709 - fontconfig? ( media-libs/fontconfig )
1710 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
1711 - graphviz? ( media-gfx/graphviz )
1712 - heif? ( media-libs/libheif:= )
1713 - jbig? ( >=media-libs/jbigkit-2:= )
1714 - jpeg? ( virtual/jpeg:0 )
1715 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
1716 - lcms? ( media-libs/lcms:2= )
1717 - lqr? ( media-libs/liblqr )
1718 - opencl? ( virtual/opencl )
1719 - openexr? ( media-libs/openexr:0= )
1720 - pango? ( x11-libs/pango )
1721 - perl? ( >=dev-lang/perl-5.8.8:0= )
1722 - png? ( media-libs/libpng:0= )
1723 - postscript? ( app-text/ghostscript-gpl )
1724 - raw? ( media-libs/libraw:= )
1725 - svg? (
1726 - gnome-base/librsvg
1727 - media-gfx/potrace
1728 - )
1729 - tiff? ( media-libs/tiff:0= )
1730 - truetype? (
1731 - media-fonts/urw-fonts
1732 - >=media-libs/freetype-2
1733 - )
1734 - webp? ( media-libs/libwebp:0= )
1735 - wmf? ( media-libs/libwmf )
1736 - X? (
1737 - x11-libs/libICE
1738 - x11-libs/libSM
1739 - x11-libs/libXext
1740 - x11-libs/libXt
1741 - )
1742 - xml? ( dev-libs/libxml2:= )
1743 - lzma? ( app-arch/xz-utils )
1744 - zip? ( dev-libs/libzip:= )
1745 - zlib? ( sys-libs/zlib:= )"
1746 -
1747 -DEPEND="${RDEPEND}
1748 - !media-gfx/graphicsmagick[imagemagick]
1749 - X? ( x11-base/xorg-proto )"
1750 -
1751 -S="${WORKDIR}/${MY_P}"
1752 -
1753 -src_prepare() {
1754 - default
1755 -
1756 - # Apply hardening #664236
1757 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
1758 - sed -i -e '/^<policymap>$/ {
1759 - r policy-hardening.snippet
1760 - d
1761 - }' \
1762 - config/policy.xml || \
1763 - die "Failed to apply hardening of policy.xml"
1764 - einfo "policy.xml hardened"
1765 -
1766 - elibtoolize # for Darwin modules
1767 -
1768 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
1769 - local ati_cards mesa_cards nvidia_cards render_cards
1770 - shopt -s nullglob
1771 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
1772 - if test -n "${ati_cards}"; then
1773 - addpredict "${ati_cards}"
1774 - fi
1775 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
1776 - if test -n "${mesa_cards}"; then
1777 - addpredict "${mesa_cards}"
1778 - fi
1779 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
1780 - if test -n "${nvidia_cards}"; then
1781 - addpredict "${nvidia_cards}"
1782 - fi
1783 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
1784 - if test -n "${render_cards}"; then
1785 - addpredict "${render_cards}"
1786 - fi
1787 - shopt -u nullglob
1788 - addpredict /dev/nvidiactl
1789 -}
1790 -
1791 -src_configure() {
1792 - local depth=16
1793 - use q8 && depth=8
1794 - use q32 && depth=32
1795 -
1796 - local openmp=disable
1797 - use openmp && { tc-has-openmp && openmp=enable; }
1798 -
1799 - use perl && perl_check_env
1800 -
1801 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
1802 -
1803 - local myeconfargs=(
1804 - $(use_enable static-libs static)
1805 - $(use_enable hdri)
1806 - $(use_enable opencl)
1807 - --with-threads
1808 - --with-modules
1809 - --with-quantum-depth=${depth}
1810 - $(use_with cxx magick-plus-plus)
1811 - $(use_with perl)
1812 - --with-perl-options='INSTALLDIRS=vendor'
1813 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
1814 - $(use_with bzip2 bzlib)
1815 - $(use_with X x)
1816 - $(use_with zip)
1817 - $(use_with zlib)
1818 - --without-autotrace
1819 - $(use_with postscript dps)
1820 - $(use_with djvu)
1821 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
1822 - $(use_with fftw)
1823 - $(use_with fpx)
1824 - $(use_with fontconfig)
1825 - $(use_with truetype freetype)
1826 - $(use_with postscript gslib)
1827 - $(use_with graphviz gvc)
1828 - $(use_with heif heic)
1829 - $(use_with jbig)
1830 - $(use_with jpeg)
1831 - $(use_with jpeg2k openjp2)
1832 - --without-jxl
1833 - $(use_with lcms)
1834 - $(use_with lqr)
1835 - $(use_with lzma)
1836 - $(use_with openexr)
1837 - $(use_with pango)
1838 - $(use_with png)
1839 - $(use_with raw)
1840 - $(use_with svg rsvg)
1841 - $(use_with tiff)
1842 - $(use_with webp)
1843 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
1844 - $(use_with wmf)
1845 - $(use_with xml)
1846 - --${openmp}-openmp
1847 - --with-gcc-arch=no-automagic
1848 - )
1849 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
1850 -}
1851 -
1852 -src_test() {
1853 - # Install default (unrestricted) policy in $HOME for test suite #664238
1854 - local _im_local_config_home="${HOME}/.config/ImageMagick"
1855 - mkdir -p "${_im_local_config_home}" || \
1856 - die "Failed to create IM config dir in '${_im_local_config_home}'"
1857 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
1858 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
1859 -
1860 - local im_command= IM_COMMANDS=()
1861 - if [[ ${PV} == "9999" ]] ; then
1862 - IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
1863 - else
1864 - IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
1865 - fi
1866 - IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
1867 - IM_COMMANDS+=( "emake check" ) # Run tests
1868 -
1869 - for im_command in "${IM_COMMANDS[@]}"; do
1870 - eval "${S}"/magick.sh \
1871 - ${im_command} || \
1872 - die "Failed to run \"${im_command}\""
1873 - done
1874 -}
1875 -
1876 -src_install() {
1877 - # Ensure documentation installation files and paths with each release!
1878 - emake \
1879 - DESTDIR="${D}" \
1880 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1881 - install
1882 -
1883 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1884 - dodoc {AUTHORS,README}.txt ChangeLog
1885 -
1886 - if use perl; then
1887 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1888 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1889 - fi
1890 -
1891 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1892 - # .la files in parent are not needed, keep plugin .la files
1893 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
1894 -
1895 - if use opencl; then
1896 - cat <<-EOF > "${T}"/99${PN}
1897 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
1898 - EOF
1899 -
1900 - insinto /etc/sandbox.d
1901 - doins "${T}"/99${PN} #472766
1902 - fi
1903 -
1904 - insinto /usr/share/${PN}
1905 - doins config/*icm
1906 -}
1907 -
1908 -pkg_postinst() {
1909 - local _show_policy_xml_notice=
1910 -
1911 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1912 - # This is a new installation
1913 - _show_policy_xml_notice=yes
1914 - else
1915 - local v
1916 - for v in ${REPLACING_VERSIONS}; do
1917 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
1918 - # This is an upgrade
1919 - _show_policy_xml_notice=yes
1920 -
1921 - # Show this elog only once
1922 - break
1923 - fi
1924 - done
1925 - fi
1926 -
1927 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1928 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
1929 - elog "which will prevent the usage of the following coders by default:"
1930 - elog ""
1931 - elog " - PS"
1932 - elog " - PS2"
1933 - elog " - PS3"
1934 - elog " - EPS"
1935 - elog " - PDF"
1936 - elog " - XPS"
1937 - fi
1938 -}
1939
1940 diff --git a/media-gfx/imagemagick/imagemagick-7.1.0.1.ebuild b/media-gfx/imagemagick/imagemagick-7.1.0.1.ebuild
1941 deleted file mode 100644
1942 index 42e59445111..00000000000
1943 --- a/media-gfx/imagemagick/imagemagick-7.1.0.1.ebuild
1944 +++ /dev/null
1945 @@ -1,269 +0,0 @@
1946 -# Copyright 1999-2021 Gentoo Authors
1947 -# Distributed under the terms of the GNU General Public License v2
1948 -
1949 -EAPI="7"
1950 -
1951 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
1952 -
1953 -if [[ ${PV} == "9999" ]] ; then
1954 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
1955 - inherit git-r3
1956 - MY_P="imagemagick-9999"
1957 -else
1958 - MY_PV="$(ver_rs 3 '-')"
1959 - MY_P="ImageMagick-${MY_PV}"
1960 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
1961 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
1962 -fi
1963 -
1964 -DESCRIPTION="A collection of tools and libraries for many image formats"
1965 -HOMEPAGE="https://www.imagemagick.org/"
1966 -
1967 -LICENSE="imagemagick"
1968 -SLOT="0/7.1.0-0"
1969 -IUSE="bzip2 corefonts +cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl +png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zip zlib"
1970 -
1971 -REQUIRED_USE="corefonts? ( truetype )
1972 - svg? ( xml )
1973 - test? ( corefonts )"
1974 -
1975 -RESTRICT="!test? ( test )"
1976 -
1977 -BDEPEND="virtual/pkgconfig"
1978 -
1979 -RDEPEND="
1980 - dev-libs/libltdl:0
1981 - bzip2? ( app-arch/bzip2 )
1982 - corefonts? ( media-fonts/corefonts )
1983 - djvu? ( app-text/djvu )
1984 - fftw? ( sci-libs/fftw:3.0 )
1985 - fontconfig? ( media-libs/fontconfig )
1986 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
1987 - graphviz? ( media-gfx/graphviz )
1988 - heif? ( media-libs/libheif:= )
1989 - jbig? ( >=media-libs/jbigkit-2:= )
1990 - jpeg? ( virtual/jpeg:0 )
1991 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
1992 - lcms? ( media-libs/lcms:2= )
1993 - lqr? ( media-libs/liblqr )
1994 - opencl? ( virtual/opencl )
1995 - openexr? ( media-libs/openexr:0= )
1996 - pango? ( x11-libs/pango )
1997 - perl? ( >=dev-lang/perl-5.8.8:0= )
1998 - png? ( media-libs/libpng:0= )
1999 - postscript? ( app-text/ghostscript-gpl )
2000 - raw? ( media-libs/libraw:= )
2001 - svg? (
2002 - gnome-base/librsvg
2003 - media-gfx/potrace
2004 - )
2005 - tiff? ( media-libs/tiff:0= )
2006 - truetype? (
2007 - media-fonts/urw-fonts
2008 - >=media-libs/freetype-2
2009 - )
2010 - webp? ( media-libs/libwebp:0= )
2011 - wmf? ( media-libs/libwmf )
2012 - X? (
2013 - x11-libs/libICE
2014 - x11-libs/libSM
2015 - x11-libs/libXext
2016 - x11-libs/libXt
2017 - )
2018 - xml? ( dev-libs/libxml2:= )
2019 - lzma? ( app-arch/xz-utils )
2020 - zip? ( dev-libs/libzip:= )
2021 - zlib? ( sys-libs/zlib:= )"
2022 -
2023 -DEPEND="${RDEPEND}
2024 - !media-gfx/graphicsmagick[imagemagick]
2025 - X? ( x11-base/xorg-proto )"
2026 -
2027 -S="${WORKDIR}/${MY_P}"
2028 -
2029 -src_prepare() {
2030 - default
2031 -
2032 - # Apply hardening #664236
2033 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
2034 - sed -i -e '/^<policymap>$/ {
2035 - r policy-hardening.snippet
2036 - d
2037 - }' \
2038 - config/policy.xml || \
2039 - die "Failed to apply hardening of policy.xml"
2040 - einfo "policy.xml hardened"
2041 -
2042 - elibtoolize # for Darwin modules
2043 -
2044 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
2045 - local ati_cards mesa_cards nvidia_cards render_cards
2046 - shopt -s nullglob
2047 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
2048 - if test -n "${ati_cards}"; then
2049 - addpredict "${ati_cards}"
2050 - fi
2051 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
2052 - if test -n "${mesa_cards}"; then
2053 - addpredict "${mesa_cards}"
2054 - fi
2055 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
2056 - if test -n "${nvidia_cards}"; then
2057 - addpredict "${nvidia_cards}"
2058 - fi
2059 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
2060 - if test -n "${render_cards}"; then
2061 - addpredict "${render_cards}"
2062 - fi
2063 - shopt -u nullglob
2064 - addpredict /dev/nvidiactl
2065 -}
2066 -
2067 -src_configure() {
2068 - local depth=16
2069 - use q8 && depth=8
2070 - use q32 && depth=32
2071 -
2072 - local openmp=disable
2073 - use openmp && { tc-has-openmp && openmp=enable; }
2074 -
2075 - use perl && perl_check_env
2076 -
2077 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
2078 -
2079 - local myeconfargs=(
2080 - $(use_enable static-libs static)
2081 - $(use_enable hdri)
2082 - $(use_enable opencl)
2083 - --with-threads
2084 - --with-modules
2085 - --with-quantum-depth=${depth}
2086 - $(use_with cxx magick-plus-plus)
2087 - $(use_with perl)
2088 - --with-perl-options='INSTALLDIRS=vendor'
2089 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
2090 - $(use_with bzip2 bzlib)
2091 - $(use_with X x)
2092 - $(use_with zip)
2093 - $(use_with zlib)
2094 - --without-autotrace
2095 - $(use_with postscript dps)
2096 - $(use_with djvu)
2097 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
2098 - $(use_with fftw)
2099 - $(use_with fpx)
2100 - $(use_with fontconfig)
2101 - $(use_with truetype freetype)
2102 - $(use_with postscript gslib)
2103 - $(use_with graphviz gvc)
2104 - $(use_with heif heic)
2105 - $(use_with jbig)
2106 - $(use_with jpeg)
2107 - $(use_with jpeg2k openjp2)
2108 - --without-jxl
2109 - $(use_with lcms)
2110 - $(use_with lqr)
2111 - $(use_with lzma)
2112 - $(use_with openexr)
2113 - $(use_with pango)
2114 - $(use_with png)
2115 - $(use_with raw)
2116 - $(use_with svg rsvg)
2117 - $(use_with tiff)
2118 - $(use_with webp)
2119 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
2120 - $(use_with wmf)
2121 - $(use_with xml)
2122 - --${openmp}-openmp
2123 - --with-gcc-arch=no-automagic
2124 - )
2125 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
2126 -}
2127 -
2128 -src_test() {
2129 - # Install default (unrestricted) policy in $HOME for test suite #664238
2130 - local _im_local_config_home="${HOME}/.config/ImageMagick"
2131 - mkdir -p "${_im_local_config_home}" || \
2132 - die "Failed to create IM config dir in '${_im_local_config_home}'"
2133 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
2134 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
2135 -
2136 - local im_command= IM_COMMANDS=()
2137 - if [[ ${PV} == "9999" ]] ; then
2138 - IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
2139 - else
2140 - IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
2141 - fi
2142 - IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
2143 - IM_COMMANDS+=( "emake check" ) # Run tests
2144 -
2145 - for im_command in "${IM_COMMANDS[@]}"; do
2146 - eval "${S}"/magick.sh \
2147 - ${im_command} || \
2148 - die "Failed to run \"${im_command}\""
2149 - done
2150 -}
2151 -
2152 -src_install() {
2153 - # Ensure documentation installation files and paths with each release!
2154 - emake \
2155 - DESTDIR="${D}" \
2156 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
2157 - install
2158 -
2159 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
2160 - dodoc {AUTHORS,README}.txt ChangeLog
2161 -
2162 - if use perl; then
2163 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
2164 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
2165 - fi
2166 -
2167 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
2168 - # .la files in parent are not needed, keep plugin .la files
2169 - find "${ED}"/usr/$(get_libdir)/ -maxdepth 1 -name "*.la" -delete || die
2170 -
2171 - if use opencl; then
2172 - cat <<-EOF > "${T}"/99${PN}
2173 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/card0:/dev/dri/renderD128"
2174 - EOF
2175 -
2176 - insinto /etc/sandbox.d
2177 - doins "${T}"/99${PN} #472766
2178 - fi
2179 -
2180 - insinto /usr/share/${PN}
2181 - doins config/*icm
2182 -}
2183 -
2184 -pkg_postinst() {
2185 - local _show_policy_xml_notice=
2186 -
2187 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
2188 - # This is a new installation
2189 - _show_policy_xml_notice=yes
2190 - else
2191 - local v
2192 - for v in ${REPLACING_VERSIONS}; do
2193 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
2194 - # This is an upgrade
2195 - _show_policy_xml_notice=yes
2196 -
2197 - # Show this elog only once
2198 - break
2199 - fi
2200 - done
2201 - fi
2202 -
2203 - if [[ -n "${_show_policy_xml_notice}" ]]; then
2204 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
2205 - elog "which will prevent the usage of the following coders by default:"
2206 - elog ""
2207 - elog " - PS"
2208 - elog " - PS2"
2209 - elog " - PS3"
2210 - elog " - EPS"
2211 - elog " - PDF"
2212 - elog " - XPS"
2213 - fi
2214 -}