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