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/, media-gfx/imagemagick/files/
Date: Wed, 31 Oct 2018 13:45:14
Message-Id: 1540993503.bb81c8fd95cfa437f561e5f905cf437e623b9fb1.whissi@gentoo
1 commit: bb81c8fd95cfa437f561e5f905cf437e623b9fb1
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 31 13:44:44 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 31 13:45:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb81c8fd
7
8 media-gfx/imagemagick: drop old
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.11
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 media-gfx/imagemagick/Manifest | 4 -
14 ...gick-7.0.8.10-quantum-private-compile-fix.patch | 24 --
15 media-gfx/imagemagick/imagemagick-6.9.10.11.ebuild | 239 --------------------
16 media-gfx/imagemagick/imagemagick-6.9.10.12.ebuild | 243 --------------------
17 media-gfx/imagemagick/imagemagick-7.0.8.11.ebuild | 245 --------------------
18 media-gfx/imagemagick/imagemagick-7.0.8.12.ebuild | 247 ---------------------
19 6 files changed, 1002 deletions(-)
20
21 diff --git a/media-gfx/imagemagick/Manifest b/media-gfx/imagemagick/Manifest
22 index 3f790f54c86..2ce3cf1ca04 100644
23 --- a/media-gfx/imagemagick/Manifest
24 +++ b/media-gfx/imagemagick/Manifest
25 @@ -1,6 +1,2 @@
26 -DIST ImageMagick-6.9.10-11.tar.xz 8918436 BLAKE2B f7846b21a68d0e8e462cc7a86322f73ec0df7cfd10fb35e97f6adb375c9291b9571c07da901636bbc933330ec0f4c2ee27b3af673c6af28d30090e78a81b2bbc SHA512 b272eee7c74c3d2e6cdc7b5ba088bf87d7fad87c8828c9d2660986acb05c0ee06566c4b2b82913be9086a51e9b7c64ceb9ecc2bf28691d183b8e478a15384ead
27 -DIST ImageMagick-6.9.10-12.tar.xz 8928804 BLAKE2B 061a1a855040fb861b200f3b1968c6f976048a09ae94e8881d81cb9b8618404b6c69aab62718285482a7f15826a946af6365af8e731a50bc2812f45396f6241c SHA512 f9f663c399afa3b86c9302607155ca62dd7d519573f61735916147be23ca27dd8bb29dffbdcb542f3433f367cb1cc97af879d18d72dda0d9a18d4c82f1b0f134
28 DIST ImageMagick-6.9.10-14.tar.xz 8931552 BLAKE2B e064648947f661c41fe86dea6484c0b9e01e54fcd3428b8d6dd39b2b7f93735200af9e4b49f0bdc92b574afbaa53ed044aab2b4b751e087ba126e58cdda1f497 SHA512 1a2c9fb717b0441a18c638991cf5365c42d00c19c0f67bc7cce4bd2cba42bac602e4dba8bd4abc1dbc6609a08b1292403acc3657b61c58ed0609e2bf740d0725
29 -DIST ImageMagick-7.0.8-11.tar.xz 8638236 BLAKE2B 927b9d467635f80d65b53e4d4d5c55e2ca4f8073b110881950d6bd9205a6da3b6ead91c624d1cccabb6c37f5bb841f9584c7c6d65714736898d17a22d9075a50 SHA512 b6f7493095097d3c551c70acd2181fb8e252750916534602646c7c765d756b5483c1bdd08b00d59f8b0bc3963729a2b64bf8cb467e3f23e26a4d35515b6d3b18
30 -DIST ImageMagick-7.0.8-12.tar.xz 8630340 BLAKE2B f2a568ed5c4cb1143a05d0d917969d9e60c1a967369523a0defcc2782e635f867dd49234bc445ceceae5bbabf826eb923e789ae0b4c7e6a6345cea6758a083b0 SHA512 b4b9d252e12fe60cb046e64558465eea5e635fd133053732810f0cbc7e68efb2d2b4a336b28b3e7e985e659bb07eabc4709ed437f0f20e57bcc5a9a13fa3cc31
31 DIST ImageMagick-7.0.8-14.tar.xz 8634400 BLAKE2B 1d5ad294ce29f275790c3b6ba76445ffb4aeaa2ff94d91af4d52a00b407dca0e5a4f589ec1a860bf6695952f8e7943d507baee58b885dc5fca3510de1d84c8eb SHA512 0a5f3357f4ce5b245d60b178d81b58c3483effb45b669791d4686514a8c3b0ad04244e31caf0a4a614e73e3e071c17d851992670917ebcf2761c977d77c58dd6
32
33 diff --git a/media-gfx/imagemagick/files/imagemagick-7.0.8.10-quantum-private-compile-fix.patch b/media-gfx/imagemagick/files/imagemagick-7.0.8.10-quantum-private-compile-fix.patch
34 deleted file mode 100644
35 index 4514dcc7d2c..00000000000
36 --- a/media-gfx/imagemagick/files/imagemagick-7.0.8.10-quantum-private-compile-fix.patch
37 +++ /dev/null
38 @@ -1,24 +0,0 @@
39 -https://bugs.gentoo.org/664226
40 -
41 -From 6cc5e2d68431249a647f22e5320f8a0481e3e3f4 Mon Sep 17 00:00:00 2001
42 -From: Cristy <urban-warrior@×××××××××××.org>
43 -Date: Wed, 15 Aug 2018 16:59:30 -0400
44 -Subject: [PATCH] Fix compile exception
45 -
46 ----
47 - MagickCore/quantum-private.h | 2 +-
48 - 1 file changed, 1 insertion(+), 1 deletion(-)
49 -
50 -diff --git a/MagickCore/quantum-private.h b/MagickCore/quantum-private.h
51 -index e02c70348c..2ff6babb7c 100644
52 ---- a/MagickCore/quantum-private.h
53 -+++ b/MagickCore/quantum-private.h
54 -@@ -659,7 +659,7 @@ static inline MagickSizeType ScaleQuantumToLongLong(const Quantum quantum)
55 - return(0);
56 - if (quantum >= 18446744073709551615)
57 - return(18446744073709551615);
58 -- return((MagickSizeType (quantum+0.5));
59 -+ return((MagickSizeType) (quantum+0.5));
60 - #endif
61 - }
62 -
63
64 diff --git a/media-gfx/imagemagick/imagemagick-6.9.10.11.ebuild b/media-gfx/imagemagick/imagemagick-6.9.10.11.ebuild
65 deleted file mode 100644
66 index 09a49dc4b9e..00000000000
67 --- a/media-gfx/imagemagick/imagemagick-6.9.10.11.ebuild
68 +++ /dev/null
69 @@ -1,239 +0,0 @@
70 -# Copyright 1999-2018 Gentoo Authors
71 -# Distributed under the terms of the GNU General Public License v2
72 -
73 -EAPI="6"
74 -
75 -inherit eapi7-ver eutils flag-o-matic libtool multilib toolchain-funcs
76 -
77 -MY_P=ImageMagick-$(ver_rs 3 '-')
78 -
79 -DESCRIPTION="A collection of tools and libraries for many image formats"
80 -HOMEPAGE="https://www.imagemagick.org/"
81 -SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
82 -
83 -LICENSE="imagemagick"
84 -SLOT="0/${PV}"
85 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
86 -IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri 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"
87 -
88 -RESTRICT="perl? ( userpriv )"
89 -
90 -RDEPEND="
91 - dev-libs/libltdl:0
92 - bzip2? ( app-arch/bzip2 )
93 - corefonts? ( media-fonts/corefonts )
94 - djvu? ( app-text/djvu )
95 - fftw? ( sci-libs/fftw:3.0 )
96 - fontconfig? ( media-libs/fontconfig )
97 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
98 - graphviz? ( media-gfx/graphviz )
99 - jbig? ( >=media-libs/jbigkit-2:= )
100 - jpeg? ( virtual/jpeg:0 )
101 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
102 - lcms? ( media-libs/lcms:2= )
103 - lqr? ( media-libs/liblqr )
104 - opencl? ( virtual/opencl )
105 - openexr? ( media-libs/openexr:0= )
106 - pango? ( x11-libs/pango )
107 - perl? ( >=dev-lang/perl-5.8.8:0= )
108 - png? ( media-libs/libpng:0= )
109 - postscript? ( app-text/ghostscript-gpl )
110 - raw? ( media-libs/libraw:= )
111 - svg? ( gnome-base/librsvg )
112 - tiff? ( media-libs/tiff:0= )
113 - truetype? (
114 - media-fonts/urw-fonts
115 - >=media-libs/freetype-2
116 - )
117 - webp? ( media-libs/libwebp:0= )
118 - wmf? ( media-libs/libwmf )
119 - X? (
120 - x11-libs/libICE
121 - x11-libs/libSM
122 - x11-libs/libXext
123 - x11-libs/libXt
124 - )
125 - xml? ( dev-libs/libxml2:= )
126 - lzma? ( app-arch/xz-utils )
127 - zlib? ( sys-libs/zlib:= )"
128 -DEPEND="${RDEPEND}
129 - !media-gfx/graphicsmagick[imagemagick]
130 - virtual/pkgconfig
131 - X? ( x11-base/xorg-proto )"
132 -
133 -REQUIRED_USE="corefonts? ( truetype )
134 - test? ( corefonts )"
135 -
136 -S="${WORKDIR}/${MY_P}"
137 -
138 -src_prepare() {
139 - default
140 -
141 - # Apply hardening #664236
142 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
143 - sed -i -e '/^<policymap>$/ {
144 - r policy-hardening.snippet
145 - d
146 - }' \
147 - config/policy.xml || \
148 - die "Failed to apply hardening of policy.xml"
149 - einfo "policy.xml hardened"
150 -
151 - elibtoolize # for Darwin modules
152 -
153 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
154 - local mesa_cards ati_cards nvidia_cards render_cards
155 - shopt -s nullglob
156 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
157 - if test -n "${ati_cards}"; then
158 - addpredict "${ati_cards}"
159 - fi
160 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
161 - if test -n "${mesa_cards}"; then
162 - addpredict "${mesa_cards}"
163 - fi
164 - nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
165 - if test -n "${nvidia_cards}"; then
166 - addpredict "${nvidia_cards}"
167 - fi
168 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
169 - if test -n "${render_cards}"; then
170 - addpredict "${render_cards}"
171 - fi
172 - shopt -u nullglob
173 - addpredict /dev/nvidiactl
174 -}
175 -
176 -src_configure() {
177 - local depth=16
178 - use q8 && depth=8
179 - use q32 && depth=32
180 -
181 - local openmp=disable
182 - use openmp && { tc-has-openmp && openmp=enable; }
183 -
184 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
185 -
186 - local myeconfargs=(
187 - $(use_enable static-libs static)
188 - $(use_enable hdri)
189 - $(use_enable opencl)
190 - --with-threads
191 - --with-modules
192 - --with-quantum-depth=${depth}
193 - $(use_with cxx magick-plus-plus)
194 - $(use_with perl)
195 - --with-perl-options='INSTALLDIRS=vendor'
196 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
197 - $(use_with bzip2 bzlib)
198 - $(use_with X x)
199 - $(use_with zlib)
200 - --without-autotrace
201 - $(use_with postscript dps)
202 - $(use_with djvu)
203 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
204 - $(use_with fftw)
205 - $(use_with fpx)
206 - $(use_with fontconfig)
207 - $(use_with truetype freetype)
208 - $(use_with postscript gslib)
209 - $(use_with graphviz gvc)
210 - $(use_with jbig)
211 - $(use_with jpeg)
212 - $(use_with jpeg2k openjp2)
213 - $(use_with lcms)
214 - $(use_with lqr)
215 - $(use_with lzma)
216 - $(use_with openexr)
217 - $(use_with pango)
218 - $(use_with png)
219 - $(use_with raw)
220 - $(use_with svg rsvg)
221 - $(use_with tiff)
222 - $(use_with webp)
223 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
224 - $(use_with wmf)
225 - $(use_with xml)
226 - --${openmp}-openmp
227 - --with-gcc-arch=no-automagic
228 - )
229 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
230 -}
231 -
232 -src_test() {
233 - # Install default (unrestricted) policy in $HOME for test suite #664238
234 - local _im_local_config_home="${HOME}/.config/ImageMagick"
235 - mkdir -p "${_im_local_config_home}" || \
236 - die "Failed to create IM config dir in '${_im_local_config_home}'"
237 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
238 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
239 -
240 - # Check that your policy.xml file is taken into account
241 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
242 - "${S}"/utilities/.libs/identify -list policy || die
243 -
244 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
245 - emake check
246 -}
247 -
248 -src_install() {
249 - # Ensure documentation installation files and paths with each release!
250 - emake \
251 - DESTDIR="${D}" \
252 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
253 - install
254 -
255 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
256 - dodoc {AUTHORS,README}.txt ChangeLog
257 -
258 - if use perl; then
259 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
260 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
261 - fi
262 -
263 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
264 -
265 - if use opencl; then
266 - cat <<-EOF > "${T}"/99${PN}
267 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
268 - EOF
269 -
270 - insinto /etc/sandbox.d
271 - doins "${T}"/99${PN} #472766
272 - fi
273 -
274 - insinto /usr/share/${PN}
275 - doins config/*icm
276 -}
277 -
278 -pkg_postinst() {
279 - local _show_policy_xml_notice=
280 -
281 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
282 - # This is a new installation
283 - _show_policy_xml_notice=yes
284 - else
285 - local v
286 - for v in ${REPLACING_VERSIONS}; do
287 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
288 - # This is an upgrade
289 - _show_policy_xml_notice=yes
290 -
291 - # Show this elog only once
292 - break
293 - fi
294 - done
295 - fi
296 -
297 - if [[ -n "${_show_policy_xml_notice}" ]]; then
298 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
299 - elog "which will prevent the usage of the following coders by default:"
300 - elog ""
301 - elog " - PS"
302 - elog " - PS2"
303 - elog " - PS3"
304 - elog " - EPS"
305 - elog " - PDF"
306 - elog " - XPS"
307 - fi
308 -}
309
310 diff --git a/media-gfx/imagemagick/imagemagick-6.9.10.12.ebuild b/media-gfx/imagemagick/imagemagick-6.9.10.12.ebuild
311 deleted file mode 100644
312 index e20331f737f..00000000000
313 --- a/media-gfx/imagemagick/imagemagick-6.9.10.12.ebuild
314 +++ /dev/null
315 @@ -1,243 +0,0 @@
316 -# Copyright 1999-2018 Gentoo Authors
317 -# Distributed under the terms of the GNU General Public License v2
318 -
319 -EAPI="6"
320 -
321 -inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
322 -
323 -MY_P=ImageMagick-$(ver_rs 3 '-')
324 -
325 -DESCRIPTION="A collection of tools and libraries for many image formats"
326 -HOMEPAGE="https://www.imagemagick.org/"
327 -SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
328 -
329 -LICENSE="imagemagick"
330 -SLOT="0/${PV}"
331 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
332 -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"
333 -
334 -RESTRICT="perl? ( userpriv )"
335 -
336 -RDEPEND="
337 - dev-libs/libltdl:0
338 - bzip2? ( app-arch/bzip2 )
339 - corefonts? ( media-fonts/corefonts )
340 - djvu? ( app-text/djvu )
341 - fftw? ( sci-libs/fftw:3.0 )
342 - fontconfig? ( media-libs/fontconfig )
343 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
344 - graphviz? ( media-gfx/graphviz )
345 - heif? ( media-libs/libheif:= )
346 - jbig? ( >=media-libs/jbigkit-2:= )
347 - jpeg? ( virtual/jpeg:0 )
348 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
349 - lcms? ( media-libs/lcms:2= )
350 - lqr? ( media-libs/liblqr )
351 - opencl? ( virtual/opencl )
352 - openexr? ( media-libs/openexr:0= )
353 - pango? ( x11-libs/pango )
354 - perl? ( >=dev-lang/perl-5.8.8:0= )
355 - png? ( media-libs/libpng:0= )
356 - postscript? ( app-text/ghostscript-gpl )
357 - raw? ( media-libs/libraw:= )
358 - svg? ( gnome-base/librsvg )
359 - tiff? ( media-libs/tiff:0= )
360 - truetype? (
361 - media-fonts/urw-fonts
362 - >=media-libs/freetype-2
363 - )
364 - webp? ( media-libs/libwebp:0= )
365 - wmf? ( media-libs/libwmf )
366 - X? (
367 - x11-libs/libICE
368 - x11-libs/libSM
369 - x11-libs/libXext
370 - x11-libs/libXt
371 - )
372 - xml? ( dev-libs/libxml2:= )
373 - lzma? ( app-arch/xz-utils )
374 - zlib? ( sys-libs/zlib:= )"
375 -DEPEND="${RDEPEND}
376 - !media-gfx/graphicsmagick[imagemagick]
377 - virtual/pkgconfig
378 - X? ( x11-base/xorg-proto )"
379 -
380 -REQUIRED_USE="corefonts? ( truetype )
381 - test? ( corefonts )"
382 -
383 -S="${WORKDIR}/${MY_P}"
384 -
385 -src_prepare() {
386 - default
387 -
388 - # Apply hardening #664236
389 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
390 - sed -i -e '/^<policymap>$/ {
391 - r policy-hardening.snippet
392 - d
393 - }' \
394 - config/policy.xml || \
395 - die "Failed to apply hardening of policy.xml"
396 - einfo "policy.xml hardened"
397 -
398 - elibtoolize # for Darwin modules
399 -
400 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
401 - local mesa_cards ati_cards nvidia_cards render_cards
402 - shopt -s nullglob
403 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
404 - if test -n "${ati_cards}"; then
405 - addpredict "${ati_cards}"
406 - fi
407 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
408 - if test -n "${mesa_cards}"; then
409 - addpredict "${mesa_cards}"
410 - fi
411 - nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
412 - if test -n "${nvidia_cards}"; then
413 - addpredict "${nvidia_cards}"
414 - fi
415 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
416 - if test -n "${render_cards}"; then
417 - addpredict "${render_cards}"
418 - fi
419 - shopt -u nullglob
420 - addpredict /dev/nvidiactl
421 -}
422 -
423 -src_configure() {
424 - local depth=16
425 - use q8 && depth=8
426 - use q32 && depth=32
427 -
428 - local openmp=disable
429 - use openmp && { tc-has-openmp && openmp=enable; }
430 -
431 - use perl && perl_check_env
432 -
433 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
434 -
435 - local myeconfargs=(
436 - $(use_enable static-libs static)
437 - $(use_enable hdri)
438 - $(use_enable opencl)
439 - --with-threads
440 - --with-modules
441 - --with-quantum-depth=${depth}
442 - $(use_with cxx magick-plus-plus)
443 - $(use_with perl)
444 - --with-perl-options='INSTALLDIRS=vendor'
445 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
446 - $(use_with bzip2 bzlib)
447 - $(use_with X x)
448 - $(use_with zlib)
449 - --without-autotrace
450 - $(use_with postscript dps)
451 - $(use_with djvu)
452 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
453 - $(use_with fftw)
454 - $(use_with fpx)
455 - $(use_with fontconfig)
456 - $(use_with truetype freetype)
457 - $(use_with postscript gslib)
458 - $(use_with graphviz gvc)
459 - $(use_with heif heic)
460 - $(use_with jbig)
461 - $(use_with jpeg)
462 - $(use_with jpeg2k openjp2)
463 - $(use_with lcms)
464 - $(use_with lqr)
465 - $(use_with lzma)
466 - $(use_with openexr)
467 - $(use_with pango)
468 - $(use_with png)
469 - $(use_with raw)
470 - $(use_with svg rsvg)
471 - $(use_with tiff)
472 - $(use_with webp)
473 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
474 - $(use_with wmf)
475 - $(use_with xml)
476 - --${openmp}-openmp
477 - --with-gcc-arch=no-automagic
478 - )
479 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
480 -}
481 -
482 -src_test() {
483 - # Install default (unrestricted) policy in $HOME for test suite #664238
484 - local _im_local_config_home="${HOME}/.config/ImageMagick"
485 - mkdir -p "${_im_local_config_home}" || \
486 - die "Failed to create IM config dir in '${_im_local_config_home}'"
487 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
488 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
489 -
490 - # Check that your policy.xml file is taken into account
491 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
492 - "${S}"/utilities/.libs/identify -list policy || die
493 -
494 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
495 - emake check
496 -}
497 -
498 -src_install() {
499 - # Ensure documentation installation files and paths with each release!
500 - emake \
501 - DESTDIR="${D}" \
502 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
503 - install
504 -
505 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
506 - dodoc {AUTHORS,README}.txt ChangeLog
507 -
508 - if use perl; then
509 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
510 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
511 - fi
512 -
513 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
514 -
515 - if use opencl; then
516 - cat <<-EOF > "${T}"/99${PN}
517 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
518 - EOF
519 -
520 - insinto /etc/sandbox.d
521 - doins "${T}"/99${PN} #472766
522 - fi
523 -
524 - insinto /usr/share/${PN}
525 - doins config/*icm
526 -}
527 -
528 -pkg_postinst() {
529 - local _show_policy_xml_notice=
530 -
531 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
532 - # This is a new installation
533 - _show_policy_xml_notice=yes
534 - else
535 - local v
536 - for v in ${REPLACING_VERSIONS}; do
537 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
538 - # This is an upgrade
539 - _show_policy_xml_notice=yes
540 -
541 - # Show this elog only once
542 - break
543 - fi
544 - done
545 - fi
546 -
547 - if [[ -n "${_show_policy_xml_notice}" ]]; then
548 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
549 - elog "which will prevent the usage of the following coders by default:"
550 - elog ""
551 - elog " - PS"
552 - elog " - PS2"
553 - elog " - PS3"
554 - elog " - EPS"
555 - elog " - PDF"
556 - elog " - XPS"
557 - fi
558 -}
559
560 diff --git a/media-gfx/imagemagick/imagemagick-7.0.8.11.ebuild b/media-gfx/imagemagick/imagemagick-7.0.8.11.ebuild
561 deleted file mode 100644
562 index 16e65f8e57b..00000000000
563 --- a/media-gfx/imagemagick/imagemagick-7.0.8.11.ebuild
564 +++ /dev/null
565 @@ -1,245 +0,0 @@
566 -# Copyright 1999-2018 Gentoo Authors
567 -# Distributed under the terms of the GNU General Public License v2
568 -
569 -EAPI="6"
570 -
571 -inherit eapi7-ver eutils flag-o-matic libtool multilib toolchain-funcs
572 -
573 -if [[ ${PV} == "9999" ]] ; then
574 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
575 - inherit git-r3
576 - MY_P="imagemagick-9999"
577 -else
578 - MY_P=ImageMagick-$(ver_rs 3 '-')
579 - SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
580 - KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
581 -fi
582 -
583 -DESCRIPTION="A collection of tools and libraries for many image formats"
584 -HOMEPAGE="https://www.imagemagick.org/"
585 -
586 -LICENSE="imagemagick"
587 -SLOT="0/${PV}"
588 -IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri 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"
589 -
590 -RESTRICT="perl? ( userpriv )"
591 -
592 -RDEPEND="
593 - dev-libs/libltdl:0
594 - bzip2? ( app-arch/bzip2 )
595 - corefonts? ( media-fonts/corefonts )
596 - djvu? ( app-text/djvu )
597 - fftw? ( sci-libs/fftw:3.0 )
598 - fontconfig? ( media-libs/fontconfig )
599 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
600 - graphviz? ( media-gfx/graphviz )
601 - jbig? ( >=media-libs/jbigkit-2:= )
602 - jpeg? ( virtual/jpeg:0 )
603 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
604 - lcms? ( media-libs/lcms:2= )
605 - lqr? ( media-libs/liblqr )
606 - opencl? ( virtual/opencl )
607 - openexr? ( media-libs/openexr:0= )
608 - pango? ( x11-libs/pango )
609 - perl? ( >=dev-lang/perl-5.8.8:0= )
610 - png? ( media-libs/libpng:0= )
611 - postscript? ( app-text/ghostscript-gpl )
612 - raw? ( media-libs/libraw:= )
613 - svg? ( gnome-base/librsvg )
614 - tiff? ( media-libs/tiff:0= )
615 - truetype? (
616 - media-fonts/urw-fonts
617 - >=media-libs/freetype-2
618 - )
619 - webp? ( media-libs/libwebp:0= )
620 - wmf? ( media-libs/libwmf )
621 - X? (
622 - x11-libs/libICE
623 - x11-libs/libSM
624 - x11-libs/libXext
625 - x11-libs/libXt
626 - )
627 - xml? ( dev-libs/libxml2:= )
628 - lzma? ( app-arch/xz-utils )
629 - zlib? ( sys-libs/zlib:= )"
630 -DEPEND="${RDEPEND}
631 - !media-gfx/graphicsmagick[imagemagick]
632 - virtual/pkgconfig
633 - X? ( x11-base/xorg-proto )"
634 -
635 -REQUIRED_USE="corefonts? ( truetype )
636 - test? ( corefonts )"
637 -
638 -S="${WORKDIR}/${MY_P}"
639 -
640 -src_prepare() {
641 - default
642 -
643 - # Apply hardening #664236
644 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
645 - sed -i -e '/^<policymap>$/ {
646 - r policy-hardening.snippet
647 - d
648 - }' \
649 - config/policy.xml || \
650 - die "Failed to apply hardening of policy.xml"
651 - einfo "policy.xml hardened"
652 -
653 - elibtoolize # for Darwin modules
654 -
655 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
656 - local ati_cards mesa_cards nvidia_cards render_cards
657 - shopt -s nullglob
658 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
659 - if test -n "${ati_cards}"; then
660 - addpredict "${ati_cards}"
661 - fi
662 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
663 - if test -n "${mesa_cards}"; then
664 - addpredict "${mesa_cards}"
665 - fi
666 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
667 - if test -n "${nvidia_cards}"; then
668 - addpredict "${nvidia_cards}"
669 - fi
670 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
671 - if test -n "${render_cards}"; then
672 - addpredict "${render_cards}"
673 - fi
674 - shopt -u nullglob
675 - addpredict /dev/nvidiactl
676 -}
677 -
678 -src_configure() {
679 - local depth=16
680 - use q8 && depth=8
681 - use q32 && depth=32
682 -
683 - local openmp=disable
684 - use openmp && { tc-has-openmp && openmp=enable; }
685 -
686 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
687 -
688 - local myeconfargs=(
689 - $(use_enable static-libs static)
690 - $(use_enable hdri)
691 - $(use_enable opencl)
692 - --with-threads
693 - --with-modules
694 - --with-quantum-depth=${depth}
695 - $(use_with cxx magick-plus-plus)
696 - $(use_with perl)
697 - --with-perl-options='INSTALLDIRS=vendor'
698 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
699 - $(use_with bzip2 bzlib)
700 - $(use_with X x)
701 - $(use_with zlib)
702 - --without-autotrace
703 - $(use_with postscript dps)
704 - $(use_with djvu)
705 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
706 - $(use_with fftw)
707 - $(use_with fpx)
708 - $(use_with fontconfig)
709 - $(use_with truetype freetype)
710 - $(use_with postscript gslib)
711 - $(use_with graphviz gvc)
712 - $(use_with jbig)
713 - $(use_with jpeg)
714 - $(use_with jpeg2k openjp2)
715 - $(use_with lcms)
716 - $(use_with lqr)
717 - $(use_with lzma)
718 - $(use_with openexr)
719 - $(use_with pango)
720 - $(use_with png)
721 - $(use_with raw)
722 - $(use_with svg rsvg)
723 - $(use_with tiff)
724 - $(use_with webp)
725 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
726 - $(use_with wmf)
727 - $(use_with xml)
728 - --${openmp}-openmp
729 - --with-gcc-arch=no-automagic
730 - )
731 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
732 -}
733 -
734 -src_test() {
735 - # Install default (unrestricted) policy in $HOME for test suite #664238
736 - local _im_local_config_home="${HOME}/.config/ImageMagick"
737 - mkdir -p "${_im_local_config_home}" || \
738 - die "Failed to create IM config dir in '${_im_local_config_home}'"
739 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
740 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
741 -
742 - # Check that your policy.xml file is taken into account
743 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
744 - "${S}"/utilities/.libs/magick -list policy || die
745 -
746 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
747 - emake check
748 -}
749 -
750 -src_install() {
751 - # Ensure documentation installation files and paths with each release!
752 - emake \
753 - DESTDIR="${D}" \
754 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
755 - install
756 -
757 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
758 - dodoc {AUTHORS,README}.txt ChangeLog
759 -
760 - if use perl; then
761 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
762 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
763 - fi
764 -
765 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
766 -
767 - if use opencl; then
768 - cat <<-EOF > "${T}"/99${PN}
769 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
770 - EOF
771 -
772 - insinto /etc/sandbox.d
773 - doins "${T}"/99${PN} #472766
774 - fi
775 -
776 - insinto /usr/share/${PN}
777 - doins config/*icm
778 -}
779 -
780 -pkg_postinst() {
781 - local _show_policy_xml_notice=
782 -
783 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
784 - # This is a new installation
785 - _show_policy_xml_notice=yes
786 - else
787 - local v
788 - for v in ${REPLACING_VERSIONS}; do
789 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
790 - # This is an upgrade
791 - _show_policy_xml_notice=yes
792 -
793 - # Show this elog only once
794 - break
795 - fi
796 - done
797 - fi
798 -
799 - if [[ -n "${_show_policy_xml_notice}" ]]; then
800 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
801 - elog "which will prevent the usage of the following coders by default:"
802 - elog ""
803 - elog " - PS"
804 - elog " - PS2"
805 - elog " - PS3"
806 - elog " - EPS"
807 - elog " - PDF"
808 - elog " - XPS"
809 - fi
810 -}
811
812 diff --git a/media-gfx/imagemagick/imagemagick-7.0.8.12.ebuild b/media-gfx/imagemagick/imagemagick-7.0.8.12.ebuild
813 deleted file mode 100644
814 index 73a88b3b9d7..00000000000
815 --- a/media-gfx/imagemagick/imagemagick-7.0.8.12.ebuild
816 +++ /dev/null
817 @@ -1,247 +0,0 @@
818 -# Copyright 1999-2018 Gentoo Authors
819 -# Distributed under the terms of the GNU General Public License v2
820 -
821 -EAPI="6"
822 -
823 -inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
824 -
825 -if [[ ${PV} == "9999" ]] ; then
826 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
827 - inherit git-r3
828 - MY_P="imagemagick-9999"
829 -else
830 - MY_P=ImageMagick-$(ver_rs 3 '-')
831 - SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
832 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
833 -fi
834 -
835 -DESCRIPTION="A collection of tools and libraries for many image formats"
836 -HOMEPAGE="https://www.imagemagick.org/"
837 -
838 -LICENSE="imagemagick"
839 -SLOT="0/${PV}"
840 -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"
841 -
842 -RDEPEND="
843 - dev-libs/libltdl:0
844 - bzip2? ( app-arch/bzip2 )
845 - corefonts? ( media-fonts/corefonts )
846 - djvu? ( app-text/djvu )
847 - fftw? ( sci-libs/fftw:3.0 )
848 - fontconfig? ( media-libs/fontconfig )
849 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
850 - graphviz? ( media-gfx/graphviz )
851 - heif? ( media-libs/libheif:= )
852 - jbig? ( >=media-libs/jbigkit-2:= )
853 - jpeg? ( virtual/jpeg:0 )
854 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
855 - lcms? ( media-libs/lcms:2= )
856 - lqr? ( media-libs/liblqr )
857 - opencl? ( virtual/opencl )
858 - openexr? ( media-libs/openexr:0= )
859 - pango? ( x11-libs/pango )
860 - perl? ( >=dev-lang/perl-5.8.8:0= )
861 - png? ( media-libs/libpng:0= )
862 - postscript? ( app-text/ghostscript-gpl )
863 - raw? ( media-libs/libraw:= )
864 - svg? ( gnome-base/librsvg )
865 - tiff? ( media-libs/tiff:0= )
866 - truetype? (
867 - media-fonts/urw-fonts
868 - >=media-libs/freetype-2
869 - )
870 - webp? ( media-libs/libwebp:0= )
871 - wmf? ( media-libs/libwmf )
872 - X? (
873 - x11-libs/libICE
874 - x11-libs/libSM
875 - x11-libs/libXext
876 - x11-libs/libXt
877 - )
878 - xml? ( dev-libs/libxml2:= )
879 - lzma? ( app-arch/xz-utils )
880 - zlib? ( sys-libs/zlib:= )"
881 -DEPEND="${RDEPEND}
882 - !media-gfx/graphicsmagick[imagemagick]
883 - virtual/pkgconfig
884 - X? ( x11-base/xorg-proto )"
885 -
886 -REQUIRED_USE="corefonts? ( truetype )
887 - test? ( corefonts )"
888 -
889 -S="${WORKDIR}/${MY_P}"
890 -
891 -src_prepare() {
892 - default
893 -
894 - # Apply hardening #664236
895 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
896 - sed -i -e '/^<policymap>$/ {
897 - r policy-hardening.snippet
898 - d
899 - }' \
900 - config/policy.xml || \
901 - die "Failed to apply hardening of policy.xml"
902 - einfo "policy.xml hardened"
903 -
904 - elibtoolize # for Darwin modules
905 -
906 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
907 - local ati_cards mesa_cards nvidia_cards render_cards
908 - shopt -s nullglob
909 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
910 - if test -n "${ati_cards}"; then
911 - addpredict "${ati_cards}"
912 - fi
913 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
914 - if test -n "${mesa_cards}"; then
915 - addpredict "${mesa_cards}"
916 - fi
917 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
918 - if test -n "${nvidia_cards}"; then
919 - addpredict "${nvidia_cards}"
920 - fi
921 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
922 - if test -n "${render_cards}"; then
923 - addpredict "${render_cards}"
924 - fi
925 - shopt -u nullglob
926 - addpredict /dev/nvidiactl
927 -}
928 -
929 -src_configure() {
930 - local depth=16
931 - use q8 && depth=8
932 - use q32 && depth=32
933 -
934 - local openmp=disable
935 - use openmp && { tc-has-openmp && openmp=enable; }
936 -
937 - use perl && perl_check_env
938 -
939 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
940 -
941 - local myeconfargs=(
942 - $(use_enable static-libs static)
943 - $(use_enable hdri)
944 - $(use_enable opencl)
945 - --with-threads
946 - --with-modules
947 - --with-quantum-depth=${depth}
948 - $(use_with cxx magick-plus-plus)
949 - $(use_with perl)
950 - --with-perl-options='INSTALLDIRS=vendor'
951 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
952 - $(use_with bzip2 bzlib)
953 - $(use_with X x)
954 - $(use_with zlib)
955 - --without-autotrace
956 - $(use_with postscript dps)
957 - $(use_with djvu)
958 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
959 - $(use_with fftw)
960 - $(use_with fpx)
961 - $(use_with fontconfig)
962 - $(use_with truetype freetype)
963 - $(use_with postscript gslib)
964 - $(use_with graphviz gvc)
965 - $(use_with heif heic)
966 - $(use_with jbig)
967 - $(use_with jpeg)
968 - $(use_with jpeg2k openjp2)
969 - $(use_with lcms)
970 - $(use_with lqr)
971 - $(use_with lzma)
972 - $(use_with openexr)
973 - $(use_with pango)
974 - $(use_with png)
975 - $(use_with raw)
976 - $(use_with svg rsvg)
977 - $(use_with tiff)
978 - $(use_with webp)
979 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
980 - $(use_with wmf)
981 - $(use_with xml)
982 - --${openmp}-openmp
983 - --with-gcc-arch=no-automagic
984 - )
985 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
986 -}
987 -
988 -src_test() {
989 - # Install default (unrestricted) policy in $HOME for test suite #664238
990 - local _im_local_config_home="${HOME}/.config/ImageMagick"
991 - mkdir -p "${_im_local_config_home}" || \
992 - die "Failed to create IM config dir in '${_im_local_config_home}'"
993 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
994 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
995 -
996 - # Check that your policy.xml file is taken into account
997 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
998 - "${S}"/utilities/.libs/magick -list policy || die
999 -
1000 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
1001 - emake check
1002 -}
1003 -
1004 -src_install() {
1005 - # Ensure documentation installation files and paths with each release!
1006 - emake \
1007 - DESTDIR="${D}" \
1008 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1009 - install
1010 -
1011 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1012 - dodoc {AUTHORS,README}.txt ChangeLog
1013 -
1014 - if use perl; then
1015 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1016 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1017 - fi
1018 -
1019 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1020 -
1021 - if use opencl; then
1022 - cat <<-EOF > "${T}"/99${PN}
1023 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
1024 - EOF
1025 -
1026 - insinto /etc/sandbox.d
1027 - doins "${T}"/99${PN} #472766
1028 - fi
1029 -
1030 - insinto /usr/share/${PN}
1031 - doins config/*icm
1032 -}
1033 -
1034 -pkg_postinst() {
1035 - local _show_policy_xml_notice=
1036 -
1037 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1038 - # This is a new installation
1039 - _show_policy_xml_notice=yes
1040 - else
1041 - local v
1042 - for v in ${REPLACING_VERSIONS}; do
1043 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
1044 - # This is an upgrade
1045 - _show_policy_xml_notice=yes
1046 -
1047 - # Show this elog only once
1048 - break
1049 - fi
1050 - done
1051 - fi
1052 -
1053 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1054 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
1055 - elog "which will prevent the usage of the following coders by default:"
1056 - elog ""
1057 - elog " - PS"
1058 - elog " - PS2"
1059 - elog " - PS3"
1060 - elog " - EPS"
1061 - elog " - PDF"
1062 - elog " - XPS"
1063 - fi
1064 -}