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: Thu, 30 Apr 2020 22:51:44
Message-Id: 1588287090.25628da87f65b59784b078ff90d184e9441673f5.whissi@gentoo
1 commit: 25628da87f65b59784b078ff90d184e9441673f5
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 22:51:17 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 22:51:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25628da8
7
8 media-gfx/imagemagick: security cleanup
9
10 Bug: https://bugs.gentoo.org/714608
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 media-gfx/imagemagick/Manifest | 6 -
15 media-gfx/imagemagick/imagemagick-6.9.11.0.ebuild | 250 --------------------
16 media-gfx/imagemagick/imagemagick-6.9.11.1.ebuild | 255 ---------------------
17 media-gfx/imagemagick/imagemagick-6.9.11.3.ebuild | 255 ---------------------
18 media-gfx/imagemagick/imagemagick-7.0.10.0.ebuild | 262 ---------------------
19 media-gfx/imagemagick/imagemagick-7.0.10.1.ebuild | 267 ----------------------
20 media-gfx/imagemagick/imagemagick-7.0.10.3.ebuild | 267 ----------------------
21 7 files changed, 1562 deletions(-)
22
23 diff --git a/media-gfx/imagemagick/Manifest b/media-gfx/imagemagick/Manifest
24 index 74e129c0813..31340b4b302 100644
25 --- a/media-gfx/imagemagick/Manifest
26 +++ b/media-gfx/imagemagick/Manifest
27 @@ -1,8 +1,2 @@
28 -DIST ImageMagick-6.9.11-0.tar.xz 9072040 BLAKE2B 8e3df83c5a009e3a03599a20b9bc2d6f1e91add659d8de150a4ebeafb91218bc62aac25c755a6a1010e00c2d14853a0d8a4849e2b55c899587acdf2d28d8b7c5 SHA512 fe6786365dfe8973e4660f4070cb85335f88985ec9e2484fe382d1f5c1f0123476cdf8e976107072b5ed13b05190f906be89e5215e16dc62e5daebe3ede40bf2
29 -DIST ImageMagick-6.9.11-1.tar.xz 9069980 BLAKE2B fbbe707da57a9b1016e89496112b85f1f8500ff35a23015d708c46369c88255c61ed0dd08b8dc2f1160045d91252bab39e9869f490b833f34bd5b7b65d7133a5 SHA512 d18db31d6d2e506203ac530e3d3032c3dfb776fb693788cf813546128dbcb4255522586d8dd5deb9cf0b56a8d503a42929937ee1ec34c8e14ce64568b552bd05
30 -DIST ImageMagick-6.9.11-3.tar.xz 9068572 BLAKE2B 15ecc7c598c1cad29f6edbd34a83391b6ad8ae0a9d412431d8cd1dc8874afffa73e10bce28aa11f927ee912274d10e1541fc5de3d62a9e58ec57138adf70a8a2 SHA512 2af5029117077100304c366429e961f97a7d8efac7b824f1fcdfdca79f99a34dea1ac99bf8aef23bf4e828bf958722372a9cf073d74ff5a213cd3f9ecb809e76
31 DIST ImageMagick-6.9.11-7.tar.xz 9075300 BLAKE2B 669c9c4212afd7a8b6c336378b248607991156807522e0c53920bf846f87168deeba12e282a60e977d1056a32eb06302d8b2422d4982060e88048ae79ae8ad3a SHA512 7eb169679846ae18cc16fbf66d3e5903f4ad38373a4e24c1219fab7a5fe323afd60bd1c540c75931c069116ea8367a89d25c68283276dbfeda67cc4d601b2888
32 -DIST ImageMagick-7.0.10-0.tar.xz 9532856 BLAKE2B 510e1ac8010b7e2267950e868ce8d0fcd36e37c936c67b1603f4dfdc247cda8dd4aa59fc0d88f5d2a2c0a9a199331cca834797f315814964b68dfad1ab24f355 SHA512 d997429855fa4bc48da32e00ea5c45467a6bd3265c35c0aff8f150346e467451737f276833d4fa867f0e2e52110f532416af1dafdbc8e81d2d11dd0c4c80f011
33 -DIST ImageMagick-7.0.10-1.tar.xz 9531244 BLAKE2B e0c16627c23e0ae181e52d73f0c5ec91835fe87eb587e73fc8aff58b0e505e8b78b3c62f842be4d80a787d3f3df404e3e3feb58c80282b828ae623f1cd2fb5ed SHA512 086616507c073e1a6c8c1276273fee18e9d5ae5ea3a730ad770347459a975c898517985b5a79798b90922e4954cdf994b78daa1ab164cbb48087da389acf6db5
34 -DIST ImageMagick-7.0.10-3.tar.xz 9699848 BLAKE2B 80aa3d85a3129b9270571bc263eeb66e17010ddbcb82fe5d68257a097ac5ece400d24759a526a72ce9a6a009bf909772aa7f363a56075f45a3c446bc1ac359fe SHA512 680d88097ca85028cd9b2eba082d482335333687480eb1e0a2a98b9b3d1d04458e9a6c0b77a88324fbc188d6db861c05f9b8ae4157411dc59ebd7494ed4d28dd
35 DIST ImageMagick-7.0.10-7.tar.xz 9685636 BLAKE2B 20dd94a034038d420906779e78c35c3c7c73370ee7ee29833f63833e8923fb52416a4e4f1a5700795b6722c29dc3b060a3dc1708e267815e86e9e9756200e074 SHA512 020adb329bcc50af52e590b33edc2caf5c0f7b15eacaabd18e5dc9b755314b8238c0b869420662b2b70c406453cf125ed10d2cf0ac94d309c05dfcd7e5820b26
36
37 diff --git a/media-gfx/imagemagick/imagemagick-6.9.11.0.ebuild b/media-gfx/imagemagick/imagemagick-6.9.11.0.ebuild
38 deleted file mode 100644
39 index c2d4023dc3b..00000000000
40 --- a/media-gfx/imagemagick/imagemagick-6.9.11.0.ebuild
41 +++ /dev/null
42 @@ -1,250 +0,0 @@
43 -# Copyright 1999-2020 Gentoo Authors
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI="6"
47 -
48 -inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
49 -
50 -MY_PV="$(ver_rs 3 '-')"
51 -MY_P="ImageMagick-${MY_PV}"
52 -
53 -DESCRIPTION="A collection of tools and libraries for many image formats"
54 -HOMEPAGE="https://www.imagemagick.org/"
55 -SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
56 -
57 -LICENSE="imagemagick"
58 -SLOT="0/6.9.11"
59 -KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
60 -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"
61 -
62 -REQUIRED_USE="corefonts? ( truetype )
63 - test? ( corefonts )"
64 -
65 -RESTRICT="perl? ( userpriv )
66 - !test? ( test )"
67 -
68 -RDEPEND="
69 - dev-libs/libltdl:0
70 - bzip2? ( app-arch/bzip2 )
71 - corefonts? ( media-fonts/corefonts )
72 - djvu? ( app-text/djvu )
73 - fftw? ( sci-libs/fftw:3.0 )
74 - fontconfig? ( media-libs/fontconfig )
75 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
76 - graphviz? ( media-gfx/graphviz )
77 - heif? ( media-libs/libheif:= )
78 - jbig? ( >=media-libs/jbigkit-2:= )
79 - jpeg? ( virtual/jpeg:0 )
80 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
81 - lcms? ( media-libs/lcms:2= )
82 - lqr? ( media-libs/liblqr )
83 - opencl? ( virtual/opencl )
84 - openexr? ( media-libs/openexr:0= )
85 - pango? ( x11-libs/pango )
86 - perl? ( >=dev-lang/perl-5.8.8:0= )
87 - png? ( media-libs/libpng:0= )
88 - postscript? ( app-text/ghostscript-gpl )
89 - raw? ( media-libs/libraw:= )
90 - svg? ( gnome-base/librsvg )
91 - tiff? ( media-libs/tiff:0= )
92 - truetype? (
93 - media-fonts/urw-fonts
94 - >=media-libs/freetype-2
95 - )
96 - webp? ( media-libs/libwebp:0= )
97 - wmf? ( media-libs/libwmf )
98 - X? (
99 - x11-libs/libICE
100 - x11-libs/libSM
101 - x11-libs/libXext
102 - x11-libs/libXt
103 - )
104 - xml? ( dev-libs/libxml2:= )
105 - lzma? ( app-arch/xz-utils )
106 - zlib? ( sys-libs/zlib:= )"
107 -DEPEND="${RDEPEND}
108 - !media-gfx/graphicsmagick[imagemagick]
109 - virtual/pkgconfig
110 - X? ( x11-base/xorg-proto )"
111 -
112 -S="${WORKDIR}/${MY_P}"
113 -#S="${WORKDIR}/ImageMagick6-${MY_PV}"
114 -
115 -src_prepare() {
116 - default
117 -
118 - # Apply hardening #664236
119 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
120 - sed -i -e '/^<policymap>$/ {
121 - r policy-hardening.snippet
122 - d
123 - }' \
124 - config/policy.xml || \
125 - die "Failed to apply hardening of policy.xml"
126 - einfo "policy.xml hardened"
127 -
128 - elibtoolize # for Darwin modules
129 -
130 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
131 - local mesa_cards ati_cards nvidia_cards render_cards
132 - shopt -s nullglob
133 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
134 - if test -n "${ati_cards}"; then
135 - addpredict "${ati_cards}"
136 - fi
137 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
138 - if test -n "${mesa_cards}"; then
139 - addpredict "${mesa_cards}"
140 - fi
141 - nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
142 - if test -n "${nvidia_cards}"; then
143 - addpredict "${nvidia_cards}"
144 - fi
145 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
146 - if test -n "${render_cards}"; then
147 - addpredict "${render_cards}"
148 - fi
149 - shopt -u nullglob
150 - addpredict /dev/nvidiactl
151 -}
152 -
153 -src_configure() {
154 - local depth=16
155 - use q8 && depth=8
156 - use q32 && depth=32
157 -
158 - local openmp=disable
159 - use openmp && { tc-has-openmp && openmp=enable; }
160 -
161 - use perl && perl_check_env
162 -
163 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
164 -
165 - local myeconfargs=(
166 - $(use_enable static-libs static)
167 - $(use_enable hdri)
168 - $(use_enable opencl)
169 - --with-threads
170 - --with-modules
171 - --with-quantum-depth=${depth}
172 - $(use_with cxx magick-plus-plus)
173 - $(use_with perl)
174 - --with-perl-options='INSTALLDIRS=vendor'
175 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
176 - $(use_with bzip2 bzlib)
177 - $(use_with X x)
178 - $(use_with zlib)
179 - --without-autotrace
180 - $(use_with postscript dps)
181 - $(use_with djvu)
182 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
183 - $(use_with fftw)
184 - $(use_with fpx)
185 - $(use_with fontconfig)
186 - $(use_with truetype freetype)
187 - $(use_with postscript gslib)
188 - $(use_with graphviz gvc)
189 - $(use_with heif heic)
190 - $(use_with jbig)
191 - $(use_with jpeg)
192 - $(use_with jpeg2k openjp2)
193 - $(use_with lcms)
194 - $(use_with lqr)
195 - $(use_with lzma)
196 - $(use_with openexr)
197 - $(use_with pango)
198 - $(use_with png)
199 - $(use_with raw)
200 - $(use_with svg rsvg)
201 - $(use_with tiff)
202 - $(use_with webp)
203 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
204 - $(use_with wmf)
205 - $(use_with xml)
206 - --${openmp}-openmp
207 - --with-gcc-arch=no-automagic
208 - )
209 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
210 -}
211 -
212 -src_test() {
213 - # Install default (unrestricted) policy in $HOME for test suite #664238
214 - local _im_local_config_home="${HOME}/.config/ImageMagick"
215 - mkdir -p "${_im_local_config_home}" || \
216 - die "Failed to create IM config dir in '${_im_local_config_home}'"
217 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
218 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
219 -
220 - local im_command= IM_COMMANDS=()
221 - IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
222 - IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
223 - IM_COMMANDS+=( "emake check" ) # Run tests
224 -
225 - for im_command in "${IM_COMMANDS[@]}"; do
226 - eval "${S}"/magick.sh \
227 - ${im_command} || \
228 - die "Failed to run \"${im_command}\""
229 - done
230 -}
231 -
232 -src_install() {
233 - # Ensure documentation installation files and paths with each release!
234 - emake \
235 - DESTDIR="${D}" \
236 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
237 - install
238 -
239 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
240 - dodoc {AUTHORS,README}.txt ChangeLog
241 -
242 - if use perl; then
243 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
244 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
245 - fi
246 -
247 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
248 -
249 - if use opencl; then
250 - cat <<-EOF > "${T}"/99${PN}
251 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
252 - EOF
253 -
254 - insinto /etc/sandbox.d
255 - doins "${T}"/99${PN} #472766
256 - fi
257 -
258 - insinto /usr/share/${PN}
259 - doins config/*icm
260 -}
261 -
262 -pkg_postinst() {
263 - local _show_policy_xml_notice=
264 -
265 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
266 - # This is a new installation
267 - _show_policy_xml_notice=yes
268 - else
269 - local v
270 - for v in ${REPLACING_VERSIONS}; do
271 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
272 - # This is an upgrade
273 - _show_policy_xml_notice=yes
274 -
275 - # Show this elog only once
276 - break
277 - fi
278 - done
279 - fi
280 -
281 - if [[ -n "${_show_policy_xml_notice}" ]]; then
282 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
283 - elog "which will prevent the usage of the following coders by default:"
284 - elog ""
285 - elog " - PS"
286 - elog " - PS2"
287 - elog " - PS3"
288 - elog " - EPS"
289 - elog " - PDF"
290 - elog " - XPS"
291 - fi
292 -}
293
294 diff --git a/media-gfx/imagemagick/imagemagick-6.9.11.1.ebuild b/media-gfx/imagemagick/imagemagick-6.9.11.1.ebuild
295 deleted file mode 100644
296 index d39f7df3b1d..00000000000
297 --- a/media-gfx/imagemagick/imagemagick-6.9.11.1.ebuild
298 +++ /dev/null
299 @@ -1,255 +0,0 @@
300 -# Copyright 1999-2020 Gentoo Authors
301 -# Distributed under the terms of the GNU General Public License v2
302 -
303 -EAPI="6"
304 -
305 -inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
306 -
307 -MY_PV="$(ver_rs 3 '-')"
308 -MY_P="ImageMagick-${MY_PV}"
309 -
310 -DESCRIPTION="A collection of tools and libraries for many image formats"
311 -HOMEPAGE="https://www.imagemagick.org/"
312 -SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
313 -
314 -LICENSE="imagemagick"
315 -SLOT="0/6.9.11"
316 -KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
317 -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"
318 -
319 -REQUIRED_USE="corefonts? ( truetype )
320 - test? ( corefonts )"
321 -
322 -RESTRICT="perl? ( userpriv )
323 - !test? ( test )"
324 -
325 -RDEPEND="
326 - dev-libs/libltdl:0
327 - bzip2? ( app-arch/bzip2 )
328 - corefonts? ( media-fonts/corefonts )
329 - djvu? ( app-text/djvu )
330 - fftw? ( sci-libs/fftw:3.0 )
331 - fontconfig? ( media-libs/fontconfig )
332 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
333 - graphviz? ( media-gfx/graphviz )
334 - heif? ( media-libs/libheif:= )
335 - jbig? ( >=media-libs/jbigkit-2:= )
336 - jpeg? ( virtual/jpeg:0 )
337 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
338 - lcms? ( media-libs/lcms:2= )
339 - lqr? ( media-libs/liblqr )
340 - opencl? ( virtual/opencl )
341 - openexr? ( media-libs/openexr:0= )
342 - pango? ( x11-libs/pango )
343 - perl? ( >=dev-lang/perl-5.8.8:0= )
344 - png? ( media-libs/libpng:0= )
345 - postscript? ( app-text/ghostscript-gpl )
346 - raw? ( media-libs/libraw:= )
347 - svg? (
348 - gnome-base/librsvg
349 - media-gfx/potrace
350 - )
351 - tiff? ( media-libs/tiff:0= )
352 - truetype? (
353 - media-fonts/urw-fonts
354 - >=media-libs/freetype-2
355 - )
356 - webp? ( media-libs/libwebp:0= )
357 - wmf? ( media-libs/libwmf )
358 - X? (
359 - x11-libs/libICE
360 - x11-libs/libSM
361 - x11-libs/libXext
362 - x11-libs/libXt
363 - )
364 - xml? ( dev-libs/libxml2:= )
365 - lzma? ( app-arch/xz-utils )
366 - zlib? ( sys-libs/zlib:= )"
367 -DEPEND="${RDEPEND}
368 - !media-gfx/graphicsmagick[imagemagick]
369 - virtual/pkgconfig
370 - X? ( x11-base/xorg-proto )"
371 -
372 -S="${WORKDIR}/${MY_P}"
373 -#S="${WORKDIR}/ImageMagick6-${MY_PV}"
374 -
375 -src_prepare() {
376 - default
377 -
378 - # Apply hardening #664236
379 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
380 - sed -i -e '/^<policymap>$/ {
381 - r policy-hardening.snippet
382 - d
383 - }' \
384 - config/policy.xml || \
385 - die "Failed to apply hardening of policy.xml"
386 - einfo "policy.xml hardened"
387 -
388 - elibtoolize # for Darwin modules
389 -
390 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
391 - local mesa_cards ati_cards nvidia_cards render_cards
392 - shopt -s nullglob
393 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
394 - if test -n "${ati_cards}"; then
395 - addpredict "${ati_cards}"
396 - fi
397 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
398 - if test -n "${mesa_cards}"; then
399 - addpredict "${mesa_cards}"
400 - fi
401 - nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
402 - if test -n "${nvidia_cards}"; then
403 - addpredict "${nvidia_cards}"
404 - fi
405 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
406 - if test -n "${render_cards}"; then
407 - addpredict "${render_cards}"
408 - fi
409 - shopt -u nullglob
410 - addpredict /dev/nvidiactl
411 -}
412 -
413 -src_configure() {
414 - local depth=16
415 - use q8 && depth=8
416 - use q32 && depth=32
417 -
418 - local openmp=disable
419 - use openmp && { tc-has-openmp && openmp=enable; }
420 -
421 - use perl && perl_check_env
422 -
423 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
424 -
425 - local myeconfargs=(
426 - $(use_enable static-libs static)
427 - $(use_enable hdri)
428 - $(use_enable opencl)
429 - --with-threads
430 - --with-modules
431 - --with-quantum-depth=${depth}
432 - $(use_with cxx magick-plus-plus)
433 - $(use_with perl)
434 - --with-perl-options='INSTALLDIRS=vendor'
435 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
436 - $(use_with bzip2 bzlib)
437 - $(use_with X x)
438 - $(use_with zlib)
439 - --without-autotrace
440 - $(use_with postscript dps)
441 - $(use_with djvu)
442 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
443 - $(use_with fftw)
444 - $(use_with fpx)
445 - $(use_with fontconfig)
446 - $(use_with truetype freetype)
447 - $(use_with postscript gslib)
448 - $(use_with graphviz gvc)
449 - $(use_with heif heic)
450 - $(use_with jbig)
451 - $(use_with jpeg)
452 - $(use_with jpeg2k openjp2)
453 - $(use_with lcms)
454 - $(use_with lqr)
455 - $(use_with lzma)
456 - $(use_with openexr)
457 - $(use_with pango)
458 - $(use_with png)
459 - $(use_with raw)
460 - $(use_with svg rsvg)
461 - $(use_with tiff)
462 - $(use_with webp)
463 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
464 - $(use_with wmf)
465 - $(use_with xml)
466 - --${openmp}-openmp
467 - --with-gcc-arch=no-automagic
468 - )
469 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
470 -}
471 -
472 -src_test() {
473 - # Install default (unrestricted) policy in $HOME for test suite #664238
474 - local _im_local_config_home="${HOME}/.config/ImageMagick"
475 - mkdir -p "${_im_local_config_home}" || \
476 - die "Failed to create IM config dir in '${_im_local_config_home}'"
477 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
478 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
479 -
480 - local im_command= IM_COMMANDS=()
481 - IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
482 - IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
483 - IM_COMMANDS+=( "emake check" ) # Run tests
484 -
485 - for im_command in "${IM_COMMANDS[@]}"; do
486 - eval "${S}"/magick.sh \
487 - ${im_command} || \
488 - die "Failed to run \"${im_command}\""
489 - done
490 -}
491 -
492 -src_install() {
493 - # Ensure documentation installation files and paths with each release!
494 - emake \
495 - DESTDIR="${D}" \
496 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
497 - install
498 -
499 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
500 - dodoc {AUTHORS,README}.txt ChangeLog
501 -
502 - if use perl; then
503 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
504 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
505 - fi
506 -
507 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
508 - # .la files in parent are not needed, keep plugin .la files
509 - rm "${ED}"/usr/$(get_libdir)/*.la || die
510 -
511 - if use opencl; then
512 - cat <<-EOF > "${T}"/99${PN}
513 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
514 - EOF
515 -
516 - insinto /etc/sandbox.d
517 - doins "${T}"/99${PN} #472766
518 - fi
519 -
520 - insinto /usr/share/${PN}
521 - doins config/*icm
522 -}
523 -
524 -pkg_postinst() {
525 - local _show_policy_xml_notice=
526 -
527 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
528 - # This is a new installation
529 - _show_policy_xml_notice=yes
530 - else
531 - local v
532 - for v in ${REPLACING_VERSIONS}; do
533 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
534 - # This is an upgrade
535 - _show_policy_xml_notice=yes
536 -
537 - # Show this elog only once
538 - break
539 - fi
540 - done
541 - fi
542 -
543 - if [[ -n "${_show_policy_xml_notice}" ]]; then
544 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
545 - elog "which will prevent the usage of the following coders by default:"
546 - elog ""
547 - elog " - PS"
548 - elog " - PS2"
549 - elog " - PS3"
550 - elog " - EPS"
551 - elog " - PDF"
552 - elog " - XPS"
553 - fi
554 -}
555
556 diff --git a/media-gfx/imagemagick/imagemagick-6.9.11.3.ebuild b/media-gfx/imagemagick/imagemagick-6.9.11.3.ebuild
557 deleted file mode 100644
558 index 02b0c9655fe..00000000000
559 --- a/media-gfx/imagemagick/imagemagick-6.9.11.3.ebuild
560 +++ /dev/null
561 @@ -1,255 +0,0 @@
562 -# Copyright 1999-2020 Gentoo Authors
563 -# Distributed under the terms of the GNU General Public License v2
564 -
565 -EAPI="6"
566 -
567 -inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
568 -
569 -MY_PV="$(ver_rs 3 '-')"
570 -MY_P="ImageMagick-${MY_PV}"
571 -
572 -DESCRIPTION="A collection of tools and libraries for many image formats"
573 -HOMEPAGE="https://www.imagemagick.org/"
574 -SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
575 -
576 -LICENSE="imagemagick"
577 -SLOT="0/6.9.11"
578 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
579 -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"
580 -
581 -REQUIRED_USE="corefonts? ( truetype )
582 - test? ( corefonts )"
583 -
584 -RESTRICT="perl? ( userpriv )
585 - !test? ( test )"
586 -
587 -RDEPEND="
588 - dev-libs/libltdl:0
589 - bzip2? ( app-arch/bzip2 )
590 - corefonts? ( media-fonts/corefonts )
591 - djvu? ( app-text/djvu )
592 - fftw? ( sci-libs/fftw:3.0 )
593 - fontconfig? ( media-libs/fontconfig )
594 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
595 - graphviz? ( media-gfx/graphviz )
596 - heif? ( media-libs/libheif:= )
597 - jbig? ( >=media-libs/jbigkit-2:= )
598 - jpeg? ( virtual/jpeg:0 )
599 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
600 - lcms? ( media-libs/lcms:2= )
601 - lqr? ( media-libs/liblqr )
602 - opencl? ( virtual/opencl )
603 - openexr? ( media-libs/openexr:0= )
604 - pango? ( x11-libs/pango )
605 - perl? ( >=dev-lang/perl-5.8.8:0= )
606 - png? ( media-libs/libpng:0= )
607 - postscript? ( app-text/ghostscript-gpl )
608 - raw? ( media-libs/libraw:= )
609 - svg? (
610 - gnome-base/librsvg
611 - media-gfx/potrace
612 - )
613 - tiff? ( media-libs/tiff:0= )
614 - truetype? (
615 - media-fonts/urw-fonts
616 - >=media-libs/freetype-2
617 - )
618 - webp? ( media-libs/libwebp:0= )
619 - wmf? ( media-libs/libwmf )
620 - X? (
621 - x11-libs/libICE
622 - x11-libs/libSM
623 - x11-libs/libXext
624 - x11-libs/libXt
625 - )
626 - xml? ( dev-libs/libxml2:= )
627 - lzma? ( app-arch/xz-utils )
628 - zlib? ( sys-libs/zlib:= )"
629 -DEPEND="${RDEPEND}
630 - !media-gfx/graphicsmagick[imagemagick]
631 - virtual/pkgconfig
632 - X? ( x11-base/xorg-proto )"
633 -
634 -S="${WORKDIR}/${MY_P}"
635 -#S="${WORKDIR}/ImageMagick6-${MY_PV}"
636 -
637 -src_prepare() {
638 - default
639 -
640 - # Apply hardening #664236
641 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
642 - sed -i -e '/^<policymap>$/ {
643 - r policy-hardening.snippet
644 - d
645 - }' \
646 - config/policy.xml || \
647 - die "Failed to apply hardening of policy.xml"
648 - einfo "policy.xml hardened"
649 -
650 - elibtoolize # for Darwin modules
651 -
652 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
653 - local mesa_cards ati_cards nvidia_cards render_cards
654 - shopt -s nullglob
655 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
656 - if test -n "${ati_cards}"; then
657 - addpredict "${ati_cards}"
658 - fi
659 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
660 - if test -n "${mesa_cards}"; then
661 - addpredict "${mesa_cards}"
662 - fi
663 - nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
664 - if test -n "${nvidia_cards}"; then
665 - addpredict "${nvidia_cards}"
666 - fi
667 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
668 - if test -n "${render_cards}"; then
669 - addpredict "${render_cards}"
670 - fi
671 - shopt -u nullglob
672 - addpredict /dev/nvidiactl
673 -}
674 -
675 -src_configure() {
676 - local depth=16
677 - use q8 && depth=8
678 - use q32 && depth=32
679 -
680 - local openmp=disable
681 - use openmp && { tc-has-openmp && openmp=enable; }
682 -
683 - use perl && perl_check_env
684 -
685 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
686 -
687 - local myeconfargs=(
688 - $(use_enable static-libs static)
689 - $(use_enable hdri)
690 - $(use_enable opencl)
691 - --with-threads
692 - --with-modules
693 - --with-quantum-depth=${depth}
694 - $(use_with cxx magick-plus-plus)
695 - $(use_with perl)
696 - --with-perl-options='INSTALLDIRS=vendor'
697 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
698 - $(use_with bzip2 bzlib)
699 - $(use_with X x)
700 - $(use_with zlib)
701 - --without-autotrace
702 - $(use_with postscript dps)
703 - $(use_with djvu)
704 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
705 - $(use_with fftw)
706 - $(use_with fpx)
707 - $(use_with fontconfig)
708 - $(use_with truetype freetype)
709 - $(use_with postscript gslib)
710 - $(use_with graphviz gvc)
711 - $(use_with heif heic)
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 - local im_command= IM_COMMANDS=()
743 - IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
744 - IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
745 - IM_COMMANDS+=( "emake check" ) # Run tests
746 -
747 - for im_command in "${IM_COMMANDS[@]}"; do
748 - eval "${S}"/magick.sh \
749 - ${im_command} || \
750 - die "Failed to run \"${im_command}\""
751 - done
752 -}
753 -
754 -src_install() {
755 - # Ensure documentation installation files and paths with each release!
756 - emake \
757 - DESTDIR="${D}" \
758 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
759 - install
760 -
761 - rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
762 - dodoc {AUTHORS,README}.txt ChangeLog
763 -
764 - if use perl; then
765 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
766 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
767 - fi
768 -
769 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
770 - # .la files in parent are not needed, keep plugin .la files
771 - rm "${ED}"/usr/$(get_libdir)/*.la || die
772 -
773 - if use opencl; then
774 - cat <<-EOF > "${T}"/99${PN}
775 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
776 - EOF
777 -
778 - insinto /etc/sandbox.d
779 - doins "${T}"/99${PN} #472766
780 - fi
781 -
782 - insinto /usr/share/${PN}
783 - doins config/*icm
784 -}
785 -
786 -pkg_postinst() {
787 - local _show_policy_xml_notice=
788 -
789 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
790 - # This is a new installation
791 - _show_policy_xml_notice=yes
792 - else
793 - local v
794 - for v in ${REPLACING_VERSIONS}; do
795 - if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
796 - # This is an upgrade
797 - _show_policy_xml_notice=yes
798 -
799 - # Show this elog only once
800 - break
801 - fi
802 - done
803 - fi
804 -
805 - if [[ -n "${_show_policy_xml_notice}" ]]; then
806 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
807 - elog "which will prevent the usage of the following coders by default:"
808 - elog ""
809 - elog " - PS"
810 - elog " - PS2"
811 - elog " - PS3"
812 - elog " - EPS"
813 - elog " - PDF"
814 - elog " - XPS"
815 - fi
816 -}
817
818 diff --git a/media-gfx/imagemagick/imagemagick-7.0.10.0.ebuild b/media-gfx/imagemagick/imagemagick-7.0.10.0.ebuild
819 deleted file mode 100644
820 index a85c71b0444..00000000000
821 --- a/media-gfx/imagemagick/imagemagick-7.0.10.0.ebuild
822 +++ /dev/null
823 @@ -1,262 +0,0 @@
824 -# Copyright 1999-2020 Gentoo Authors
825 -# Distributed under the terms of the GNU General Public License v2
826 -
827 -EAPI="7"
828 -
829 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
830 -
831 -if [[ ${PV} == "9999" ]] ; then
832 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
833 - inherit git-r3
834 - MY_P="imagemagick-9999"
835 -else
836 - MY_PV="$(ver_rs 3 '-')"
837 - MY_P="ImageMagick-${MY_PV}"
838 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
839 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
840 -fi
841 -
842 -DESCRIPTION="A collection of tools and libraries for many image formats"
843 -HOMEPAGE="https://www.imagemagick.org/"
844 -
845 -LICENSE="imagemagick"
846 -SLOT="0/7.0.10"
847 -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"
848 -RESTRICT="!test? ( test )"
849 -
850 -REQUIRED_USE="corefonts? ( truetype )
851 - test? ( corefonts )"
852 -
853 -RESTRICT="!test? ( test )"
854 -
855 -BDEPEND="virtual/pkgconfig"
856 -
857 -RDEPEND="
858 - dev-libs/libltdl:0
859 - bzip2? ( app-arch/bzip2 )
860 - corefonts? ( media-fonts/corefonts )
861 - djvu? ( app-text/djvu )
862 - fftw? ( sci-libs/fftw:3.0 )
863 - fontconfig? ( media-libs/fontconfig )
864 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
865 - graphviz? ( media-gfx/graphviz )
866 - heif? ( media-libs/libheif:= )
867 - jbig? ( >=media-libs/jbigkit-2:= )
868 - jpeg? ( virtual/jpeg:0 )
869 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
870 - lcms? ( media-libs/lcms:2= )
871 - lqr? ( media-libs/liblqr )
872 - opencl? ( virtual/opencl )
873 - openexr? ( media-libs/openexr:0= )
874 - pango? ( x11-libs/pango )
875 - perl? ( >=dev-lang/perl-5.8.8:0= )
876 - png? ( media-libs/libpng:0= )
877 - postscript? ( app-text/ghostscript-gpl )
878 - raw? ( media-libs/libraw:= )
879 - svg? ( gnome-base/librsvg )
880 - tiff? ( media-libs/tiff:0= )
881 - truetype? (
882 - media-fonts/urw-fonts
883 - >=media-libs/freetype-2
884 - )
885 - webp? ( media-libs/libwebp:0= )
886 - wmf? ( media-libs/libwmf )
887 - X? (
888 - x11-libs/libICE
889 - x11-libs/libSM
890 - x11-libs/libXext
891 - x11-libs/libXt
892 - )
893 - xml? ( dev-libs/libxml2:= )
894 - lzma? ( app-arch/xz-utils )
895 - zlib? ( sys-libs/zlib:= )"
896 -
897 -DEPEND="${RDEPEND}
898 - !media-gfx/graphicsmagick[imagemagick]
899 - X? ( x11-base/xorg-proto )"
900 -
901 -S="${WORKDIR}/${MY_P}"
902 -
903 -src_prepare() {
904 - default
905 -
906 - # Apply hardening #664236
907 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
908 - sed -i -e '/^<policymap>$/ {
909 - r policy-hardening.snippet
910 - d
911 - }' \
912 - config/policy.xml || \
913 - die "Failed to apply hardening of policy.xml"
914 - einfo "policy.xml hardened"
915 -
916 - elibtoolize # for Darwin modules
917 -
918 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
919 - local ati_cards mesa_cards nvidia_cards render_cards
920 - shopt -s nullglob
921 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
922 - if test -n "${ati_cards}"; then
923 - addpredict "${ati_cards}"
924 - fi
925 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
926 - if test -n "${mesa_cards}"; then
927 - addpredict "${mesa_cards}"
928 - fi
929 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
930 - if test -n "${nvidia_cards}"; then
931 - addpredict "${nvidia_cards}"
932 - fi
933 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
934 - if test -n "${render_cards}"; then
935 - addpredict "${render_cards}"
936 - fi
937 - shopt -u nullglob
938 - addpredict /dev/nvidiactl
939 -}
940 -
941 -src_configure() {
942 - local depth=16
943 - use q8 && depth=8
944 - use q32 && depth=32
945 -
946 - local openmp=disable
947 - use openmp && { tc-has-openmp && openmp=enable; }
948 -
949 - use perl && perl_check_env
950 -
951 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
952 -
953 - local myeconfargs=(
954 - $(use_enable static-libs static)
955 - $(use_enable hdri)
956 - $(use_enable opencl)
957 - --with-threads
958 - --with-modules
959 - --with-quantum-depth=${depth}
960 - $(use_with cxx magick-plus-plus)
961 - $(use_with perl)
962 - --with-perl-options='INSTALLDIRS=vendor'
963 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
964 - $(use_with bzip2 bzlib)
965 - $(use_with X x)
966 - $(use_with zlib)
967 - --without-autotrace
968 - $(use_with postscript dps)
969 - $(use_with djvu)
970 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
971 - $(use_with fftw)
972 - $(use_with fpx)
973 - $(use_with fontconfig)
974 - $(use_with truetype freetype)
975 - $(use_with postscript gslib)
976 - $(use_with graphviz gvc)
977 - $(use_with heif heic)
978 - $(use_with jbig)
979 - $(use_with jpeg)
980 - $(use_with jpeg2k openjp2)
981 - --without-jxl
982 - $(use_with lcms)
983 - $(use_with lqr)
984 - $(use_with lzma)
985 - $(use_with openexr)
986 - $(use_with pango)
987 - $(use_with png)
988 - $(use_with raw)
989 - $(use_with svg rsvg)
990 - $(use_with tiff)
991 - $(use_with webp)
992 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
993 - $(use_with wmf)
994 - $(use_with xml)
995 - --${openmp}-openmp
996 - --with-gcc-arch=no-automagic
997 - )
998 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
999 -}
1000 -
1001 -src_test() {
1002 - # Install default (unrestricted) policy in $HOME for test suite #664238
1003 - local _im_local_config_home="${HOME}/.config/ImageMagick"
1004 - mkdir -p "${_im_local_config_home}" || \
1005 - die "Failed to create IM config dir in '${_im_local_config_home}'"
1006 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
1007 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
1008 -
1009 - local im_command= IM_COMMANDS=()
1010 - if [[ ${PV} == "9999" ]] ; then
1011 - IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
1012 - else
1013 - IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
1014 - fi
1015 - IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
1016 - IM_COMMANDS+=( "emake check" ) # Run tests
1017 -
1018 - for im_command in "${IM_COMMANDS[@]}"; do
1019 - eval "${S}"/magick.sh \
1020 - ${im_command} || \
1021 - die "Failed to run \"${im_command}\""
1022 - done
1023 -}
1024 -
1025 -src_install() {
1026 - # Ensure documentation installation files and paths with each release!
1027 - emake \
1028 - DESTDIR="${D}" \
1029 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1030 - install
1031 -
1032 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1033 - dodoc {AUTHORS,README}.txt ChangeLog
1034 -
1035 - if use perl; then
1036 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1037 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1038 - fi
1039 -
1040 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1041 -
1042 - if use opencl; then
1043 - cat <<-EOF > "${T}"/99${PN}
1044 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
1045 - EOF
1046 -
1047 - insinto /etc/sandbox.d
1048 - doins "${T}"/99${PN} #472766
1049 - fi
1050 -
1051 - insinto /usr/share/${PN}
1052 - doins config/*icm
1053 -}
1054 -
1055 -pkg_postinst() {
1056 - local _show_policy_xml_notice=
1057 -
1058 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1059 - # This is a new installation
1060 - _show_policy_xml_notice=yes
1061 - else
1062 - local v
1063 - for v in ${REPLACING_VERSIONS}; do
1064 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
1065 - # This is an upgrade
1066 - _show_policy_xml_notice=yes
1067 -
1068 - # Show this elog only once
1069 - break
1070 - fi
1071 - done
1072 - fi
1073 -
1074 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1075 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
1076 - elog "which will prevent the usage of the following coders by default:"
1077 - elog ""
1078 - elog " - PS"
1079 - elog " - PS2"
1080 - elog " - PS3"
1081 - elog " - EPS"
1082 - elog " - PDF"
1083 - elog " - XPS"
1084 - fi
1085 -}
1086
1087 diff --git a/media-gfx/imagemagick/imagemagick-7.0.10.1.ebuild b/media-gfx/imagemagick/imagemagick-7.0.10.1.ebuild
1088 deleted file mode 100644
1089 index a6859552d63..00000000000
1090 --- a/media-gfx/imagemagick/imagemagick-7.0.10.1.ebuild
1091 +++ /dev/null
1092 @@ -1,267 +0,0 @@
1093 -# Copyright 1999-2020 Gentoo Authors
1094 -# Distributed under the terms of the GNU General Public License v2
1095 -
1096 -EAPI="7"
1097 -
1098 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
1099 -
1100 -if [[ ${PV} == "9999" ]] ; then
1101 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
1102 - inherit git-r3
1103 - MY_P="imagemagick-9999"
1104 -else
1105 - MY_PV="$(ver_rs 3 '-')"
1106 - MY_P="ImageMagick-${MY_PV}"
1107 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
1108 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
1109 -fi
1110 -
1111 -DESCRIPTION="A collection of tools and libraries for many image formats"
1112 -HOMEPAGE="https://www.imagemagick.org/"
1113 -
1114 -LICENSE="imagemagick"
1115 -SLOT="0/7.0.10"
1116 -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"
1117 -RESTRICT="!test? ( test )"
1118 -
1119 -REQUIRED_USE="corefonts? ( truetype )
1120 - test? ( corefonts )"
1121 -
1122 -RESTRICT="!test? ( test )"
1123 -
1124 -BDEPEND="virtual/pkgconfig"
1125 -
1126 -RDEPEND="
1127 - dev-libs/libltdl:0
1128 - bzip2? ( app-arch/bzip2 )
1129 - corefonts? ( media-fonts/corefonts )
1130 - djvu? ( app-text/djvu )
1131 - fftw? ( sci-libs/fftw:3.0 )
1132 - fontconfig? ( media-libs/fontconfig )
1133 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
1134 - graphviz? ( media-gfx/graphviz )
1135 - heif? ( media-libs/libheif:= )
1136 - jbig? ( >=media-libs/jbigkit-2:= )
1137 - jpeg? ( virtual/jpeg:0 )
1138 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
1139 - lcms? ( media-libs/lcms:2= )
1140 - lqr? ( media-libs/liblqr )
1141 - opencl? ( virtual/opencl )
1142 - openexr? ( media-libs/openexr:0= )
1143 - pango? ( x11-libs/pango )
1144 - perl? ( >=dev-lang/perl-5.8.8:0= )
1145 - png? ( media-libs/libpng:0= )
1146 - postscript? ( app-text/ghostscript-gpl )
1147 - raw? ( media-libs/libraw:= )
1148 - svg? (
1149 - gnome-base/librsvg
1150 - media-gfx/potrace
1151 - )
1152 - tiff? ( media-libs/tiff:0= )
1153 - truetype? (
1154 - media-fonts/urw-fonts
1155 - >=media-libs/freetype-2
1156 - )
1157 - webp? ( media-libs/libwebp:0= )
1158 - wmf? ( media-libs/libwmf )
1159 - X? (
1160 - x11-libs/libICE
1161 - x11-libs/libSM
1162 - x11-libs/libXext
1163 - x11-libs/libXt
1164 - )
1165 - xml? ( dev-libs/libxml2:= )
1166 - lzma? ( app-arch/xz-utils )
1167 - zlib? ( sys-libs/zlib:= )"
1168 -
1169 -DEPEND="${RDEPEND}
1170 - !media-gfx/graphicsmagick[imagemagick]
1171 - X? ( x11-base/xorg-proto )"
1172 -
1173 -S="${WORKDIR}/${MY_P}"
1174 -
1175 -src_prepare() {
1176 - default
1177 -
1178 - # Apply hardening #664236
1179 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
1180 - sed -i -e '/^<policymap>$/ {
1181 - r policy-hardening.snippet
1182 - d
1183 - }' \
1184 - config/policy.xml || \
1185 - die "Failed to apply hardening of policy.xml"
1186 - einfo "policy.xml hardened"
1187 -
1188 - elibtoolize # for Darwin modules
1189 -
1190 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
1191 - local ati_cards mesa_cards nvidia_cards render_cards
1192 - shopt -s nullglob
1193 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
1194 - if test -n "${ati_cards}"; then
1195 - addpredict "${ati_cards}"
1196 - fi
1197 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
1198 - if test -n "${mesa_cards}"; then
1199 - addpredict "${mesa_cards}"
1200 - fi
1201 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
1202 - if test -n "${nvidia_cards}"; then
1203 - addpredict "${nvidia_cards}"
1204 - fi
1205 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
1206 - if test -n "${render_cards}"; then
1207 - addpredict "${render_cards}"
1208 - fi
1209 - shopt -u nullglob
1210 - addpredict /dev/nvidiactl
1211 -}
1212 -
1213 -src_configure() {
1214 - local depth=16
1215 - use q8 && depth=8
1216 - use q32 && depth=32
1217 -
1218 - local openmp=disable
1219 - use openmp && { tc-has-openmp && openmp=enable; }
1220 -
1221 - use perl && perl_check_env
1222 -
1223 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
1224 -
1225 - local myeconfargs=(
1226 - $(use_enable static-libs static)
1227 - $(use_enable hdri)
1228 - $(use_enable opencl)
1229 - --with-threads
1230 - --with-modules
1231 - --with-quantum-depth=${depth}
1232 - $(use_with cxx magick-plus-plus)
1233 - $(use_with perl)
1234 - --with-perl-options='INSTALLDIRS=vendor'
1235 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
1236 - $(use_with bzip2 bzlib)
1237 - $(use_with X x)
1238 - $(use_with zlib)
1239 - --without-autotrace
1240 - $(use_with postscript dps)
1241 - $(use_with djvu)
1242 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
1243 - $(use_with fftw)
1244 - $(use_with fpx)
1245 - $(use_with fontconfig)
1246 - $(use_with truetype freetype)
1247 - $(use_with postscript gslib)
1248 - $(use_with graphviz gvc)
1249 - $(use_with heif heic)
1250 - $(use_with jbig)
1251 - $(use_with jpeg)
1252 - $(use_with jpeg2k openjp2)
1253 - --without-jxl
1254 - $(use_with lcms)
1255 - $(use_with lqr)
1256 - $(use_with lzma)
1257 - $(use_with openexr)
1258 - $(use_with pango)
1259 - $(use_with png)
1260 - $(use_with raw)
1261 - $(use_with svg rsvg)
1262 - $(use_with tiff)
1263 - $(use_with webp)
1264 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
1265 - $(use_with wmf)
1266 - $(use_with xml)
1267 - --${openmp}-openmp
1268 - --with-gcc-arch=no-automagic
1269 - )
1270 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
1271 -}
1272 -
1273 -src_test() {
1274 - # Install default (unrestricted) policy in $HOME for test suite #664238
1275 - local _im_local_config_home="${HOME}/.config/ImageMagick"
1276 - mkdir -p "${_im_local_config_home}" || \
1277 - die "Failed to create IM config dir in '${_im_local_config_home}'"
1278 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
1279 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
1280 -
1281 - local im_command= IM_COMMANDS=()
1282 - if [[ ${PV} == "9999" ]] ; then
1283 - IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
1284 - else
1285 - IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
1286 - fi
1287 - IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
1288 - IM_COMMANDS+=( "emake check" ) # Run tests
1289 -
1290 - for im_command in "${IM_COMMANDS[@]}"; do
1291 - eval "${S}"/magick.sh \
1292 - ${im_command} || \
1293 - die "Failed to run \"${im_command}\""
1294 - done
1295 -}
1296 -
1297 -src_install() {
1298 - # Ensure documentation installation files and paths with each release!
1299 - emake \
1300 - DESTDIR="${D}" \
1301 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1302 - install
1303 -
1304 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1305 - dodoc {AUTHORS,README}.txt ChangeLog
1306 -
1307 - if use perl; then
1308 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1309 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1310 - fi
1311 -
1312 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1313 - # .la files in parent are not needed, keep plugin .la files
1314 - rm "${ED}"/usr/$(get_libdir)/*.la || die
1315 -
1316 - if use opencl; then
1317 - cat <<-EOF > "${T}"/99${PN}
1318 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
1319 - EOF
1320 -
1321 - insinto /etc/sandbox.d
1322 - doins "${T}"/99${PN} #472766
1323 - fi
1324 -
1325 - insinto /usr/share/${PN}
1326 - doins config/*icm
1327 -}
1328 -
1329 -pkg_postinst() {
1330 - local _show_policy_xml_notice=
1331 -
1332 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1333 - # This is a new installation
1334 - _show_policy_xml_notice=yes
1335 - else
1336 - local v
1337 - for v in ${REPLACING_VERSIONS}; do
1338 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
1339 - # This is an upgrade
1340 - _show_policy_xml_notice=yes
1341 -
1342 - # Show this elog only once
1343 - break
1344 - fi
1345 - done
1346 - fi
1347 -
1348 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1349 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
1350 - elog "which will prevent the usage of the following coders by default:"
1351 - elog ""
1352 - elog " - PS"
1353 - elog " - PS2"
1354 - elog " - PS3"
1355 - elog " - EPS"
1356 - elog " - PDF"
1357 - elog " - XPS"
1358 - fi
1359 -}
1360
1361 diff --git a/media-gfx/imagemagick/imagemagick-7.0.10.3.ebuild b/media-gfx/imagemagick/imagemagick-7.0.10.3.ebuild
1362 deleted file mode 100644
1363 index 4d2561accf7..00000000000
1364 --- a/media-gfx/imagemagick/imagemagick-7.0.10.3.ebuild
1365 +++ /dev/null
1366 @@ -1,267 +0,0 @@
1367 -# Copyright 1999-2020 Gentoo Authors
1368 -# Distributed under the terms of the GNU General Public License v2
1369 -
1370 -EAPI="7"
1371 -
1372 -inherit flag-o-matic libtool perl-functions toolchain-funcs multilib
1373 -
1374 -if [[ ${PV} == "9999" ]] ; then
1375 - EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
1376 - inherit git-r3
1377 - MY_P="imagemagick-9999"
1378 -else
1379 - MY_PV="$(ver_rs 3 '-')"
1380 - MY_P="ImageMagick-${MY_PV}"
1381 - SRC_URI="mirror://imagemagick/${MY_P}.tar.xz"
1382 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
1383 -fi
1384 -
1385 -DESCRIPTION="A collection of tools and libraries for many image formats"
1386 -HOMEPAGE="https://www.imagemagick.org/"
1387 -
1388 -LICENSE="imagemagick"
1389 -SLOT="0/7.0.10"
1390 -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"
1391 -RESTRICT="!test? ( test )"
1392 -
1393 -REQUIRED_USE="corefonts? ( truetype )
1394 - test? ( corefonts )"
1395 -
1396 -RESTRICT="!test? ( test )"
1397 -
1398 -BDEPEND="virtual/pkgconfig"
1399 -
1400 -RDEPEND="
1401 - dev-libs/libltdl:0
1402 - bzip2? ( app-arch/bzip2 )
1403 - corefonts? ( media-fonts/corefonts )
1404 - djvu? ( app-text/djvu )
1405 - fftw? ( sci-libs/fftw:3.0 )
1406 - fontconfig? ( media-libs/fontconfig )
1407 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
1408 - graphviz? ( media-gfx/graphviz )
1409 - heif? ( media-libs/libheif:= )
1410 - jbig? ( >=media-libs/jbigkit-2:= )
1411 - jpeg? ( virtual/jpeg:0 )
1412 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
1413 - lcms? ( media-libs/lcms:2= )
1414 - lqr? ( media-libs/liblqr )
1415 - opencl? ( virtual/opencl )
1416 - openexr? ( media-libs/openexr:0= )
1417 - pango? ( x11-libs/pango )
1418 - perl? ( >=dev-lang/perl-5.8.8:0= )
1419 - png? ( media-libs/libpng:0= )
1420 - postscript? ( app-text/ghostscript-gpl )
1421 - raw? ( media-libs/libraw:= )
1422 - svg? (
1423 - gnome-base/librsvg
1424 - media-gfx/potrace
1425 - )
1426 - tiff? ( media-libs/tiff:0= )
1427 - truetype? (
1428 - media-fonts/urw-fonts
1429 - >=media-libs/freetype-2
1430 - )
1431 - webp? ( media-libs/libwebp:0= )
1432 - wmf? ( media-libs/libwmf )
1433 - X? (
1434 - x11-libs/libICE
1435 - x11-libs/libSM
1436 - x11-libs/libXext
1437 - x11-libs/libXt
1438 - )
1439 - xml? ( dev-libs/libxml2:= )
1440 - lzma? ( app-arch/xz-utils )
1441 - zlib? ( sys-libs/zlib:= )"
1442 -
1443 -DEPEND="${RDEPEND}
1444 - !media-gfx/graphicsmagick[imagemagick]
1445 - X? ( x11-base/xorg-proto )"
1446 -
1447 -S="${WORKDIR}/${MY_P}"
1448 -
1449 -src_prepare() {
1450 - default
1451 -
1452 - # Apply hardening #664236
1453 - cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
1454 - sed -i -e '/^<policymap>$/ {
1455 - r policy-hardening.snippet
1456 - d
1457 - }' \
1458 - config/policy.xml || \
1459 - die "Failed to apply hardening of policy.xml"
1460 - einfo "policy.xml hardened"
1461 -
1462 - elibtoolize # for Darwin modules
1463 -
1464 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
1465 - local ati_cards mesa_cards nvidia_cards render_cards
1466 - shopt -s nullglob
1467 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
1468 - if test -n "${ati_cards}"; then
1469 - addpredict "${ati_cards}"
1470 - fi
1471 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
1472 - if test -n "${mesa_cards}"; then
1473 - addpredict "${mesa_cards}"
1474 - fi
1475 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
1476 - if test -n "${nvidia_cards}"; then
1477 - addpredict "${nvidia_cards}"
1478 - fi
1479 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
1480 - if test -n "${render_cards}"; then
1481 - addpredict "${render_cards}"
1482 - fi
1483 - shopt -u nullglob
1484 - addpredict /dev/nvidiactl
1485 -}
1486 -
1487 -src_configure() {
1488 - local depth=16
1489 - use q8 && depth=8
1490 - use q32 && depth=32
1491 -
1492 - local openmp=disable
1493 - use openmp && { tc-has-openmp && openmp=enable; }
1494 -
1495 - use perl && perl_check_env
1496 -
1497 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
1498 -
1499 - local myeconfargs=(
1500 - $(use_enable static-libs static)
1501 - $(use_enable hdri)
1502 - $(use_enable opencl)
1503 - --with-threads
1504 - --with-modules
1505 - --with-quantum-depth=${depth}
1506 - $(use_with cxx magick-plus-plus)
1507 - $(use_with perl)
1508 - --with-perl-options='INSTALLDIRS=vendor'
1509 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
1510 - $(use_with bzip2 bzlib)
1511 - $(use_with X x)
1512 - $(use_with zlib)
1513 - --without-autotrace
1514 - $(use_with postscript dps)
1515 - $(use_with djvu)
1516 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
1517 - $(use_with fftw)
1518 - $(use_with fpx)
1519 - $(use_with fontconfig)
1520 - $(use_with truetype freetype)
1521 - $(use_with postscript gslib)
1522 - $(use_with graphviz gvc)
1523 - $(use_with heif heic)
1524 - $(use_with jbig)
1525 - $(use_with jpeg)
1526 - $(use_with jpeg2k openjp2)
1527 - --without-jxl
1528 - $(use_with lcms)
1529 - $(use_with lqr)
1530 - $(use_with lzma)
1531 - $(use_with openexr)
1532 - $(use_with pango)
1533 - $(use_with png)
1534 - $(use_with raw)
1535 - $(use_with svg rsvg)
1536 - $(use_with tiff)
1537 - $(use_with webp)
1538 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
1539 - $(use_with wmf)
1540 - $(use_with xml)
1541 - --${openmp}-openmp
1542 - --with-gcc-arch=no-automagic
1543 - )
1544 - CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
1545 -}
1546 -
1547 -src_test() {
1548 - # Install default (unrestricted) policy in $HOME for test suite #664238
1549 - local _im_local_config_home="${HOME}/.config/ImageMagick"
1550 - mkdir -p "${_im_local_config_home}" || \
1551 - die "Failed to create IM config dir in '${_im_local_config_home}'"
1552 - cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
1553 - die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
1554 -
1555 - local im_command= IM_COMMANDS=()
1556 - if [[ ${PV} == "9999" ]] ; then
1557 - IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
1558 - else
1559 - IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
1560 - fi
1561 - IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
1562 - IM_COMMANDS+=( "emake check" ) # Run tests
1563 -
1564 - for im_command in "${IM_COMMANDS[@]}"; do
1565 - eval "${S}"/magick.sh \
1566 - ${im_command} || \
1567 - die "Failed to run \"${im_command}\""
1568 - done
1569 -}
1570 -
1571 -src_install() {
1572 - # Ensure documentation installation files and paths with each release!
1573 - emake \
1574 - DESTDIR="${D}" \
1575 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
1576 - install
1577 -
1578 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
1579 - dodoc {AUTHORS,README}.txt ChangeLog
1580 -
1581 - if use perl; then
1582 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
1583 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
1584 - fi
1585 -
1586 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
1587 - # .la files in parent are not needed, keep plugin .la files
1588 - rm "${ED}"/usr/$(get_libdir)/*.la || die
1589 -
1590 - if use opencl; then
1591 - cat <<-EOF > "${T}"/99${PN}
1592 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
1593 - EOF
1594 -
1595 - insinto /etc/sandbox.d
1596 - doins "${T}"/99${PN} #472766
1597 - fi
1598 -
1599 - insinto /usr/share/${PN}
1600 - doins config/*icm
1601 -}
1602 -
1603 -pkg_postinst() {
1604 - local _show_policy_xml_notice=
1605 -
1606 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1607 - # This is a new installation
1608 - _show_policy_xml_notice=yes
1609 - else
1610 - local v
1611 - for v in ${REPLACING_VERSIONS}; do
1612 - if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
1613 - # This is an upgrade
1614 - _show_policy_xml_notice=yes
1615 -
1616 - # Show this elog only once
1617 - break
1618 - fi
1619 - done
1620 - fi
1621 -
1622 - if [[ -n "${_show_policy_xml_notice}" ]]; then
1623 - elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
1624 - elog "which will prevent the usage of the following coders by default:"
1625 - elog ""
1626 - elog " - PS"
1627 - elog " - PS2"
1628 - elog " - PS3"
1629 - elog " - EPS"
1630 - elog " - PDF"
1631 - elog " - XPS"
1632 - fi
1633 -}