1 |
commit: 7be28c46aad66b1bc811c23ae4197d81f8337256 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 20 20:55:28 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 20 20:55:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7be28c46 |
7 |
|
8 |
media-gfx/imagemagick: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
media-gfx/imagemagick/Manifest | 2 - |
14 |
media-gfx/imagemagick/imagemagick-6.9.10.25.ebuild | 248 -------------------- |
15 |
media-gfx/imagemagick/imagemagick-7.0.8.25.ebuild | 256 --------------------- |
16 |
3 files changed, 506 deletions(-) |
17 |
|
18 |
diff --git a/media-gfx/imagemagick/Manifest b/media-gfx/imagemagick/Manifest |
19 |
index 7b499238978..a4b038a1c50 100644 |
20 |
--- a/media-gfx/imagemagick/Manifest |
21 |
+++ b/media-gfx/imagemagick/Manifest |
22 |
@@ -1,4 +1,2 @@ |
23 |
-DIST ImageMagick-6.9.10-25.tar.xz 8938560 BLAKE2B 26d00bee1a0a70596afd670c010b4a103ef97c930b4cb34db688615d88ff9f6d026b7dc5b4c647b0a5aca2846ed25affef1ab29eaaa253168b807cc175aa56ad SHA512 6444ef305d36e515d94ee1d65a26049f7b7bcefea595796b7f01a27b10c474d9f35f585731c4d2e5e6f0034aea3d3db6c70bd6a40e88efbb2400fe285f20f776 |
24 |
DIST ImageMagick-6.9.10-27.tar.xz 8946680 BLAKE2B 74992d85c02336cc5d64dea25df04a56e97d3d6e9feabd03230fd693ae94fb79781581c0d293c765c4639e2f82b3585f5e98a7c0015cab1980c7a766fee7066a SHA512 13b83c72e96cab30eccda2a260a952c7a6f1016eb22df15643aceeca4b8b95b485da844d04484c39f9b1c93168c4b4e2d4cb92a6bd3b0831c94985717db8c368 |
25 |
-DIST ImageMagick-7.0.8-25.tar.xz 9429456 BLAKE2B 9b5781bbc91059462e6f4356735ce49503b9fcdbbdd52acaba314d5736ef7b59a4b7b17500899728d9f735fd34f001d830ac6d59501602c394d207139918af37 SHA512 7fb3ebd3c77492a49d4b9d047d853de6eb1abea1614fed1f21b6b6c7de37093b53ade3f319fd74f87d76954392a5ec6ab5cf0df05db1fa73dbd73aee310edbf4 |
26 |
DIST ImageMagick-7.0.8-27.tar.xz 9431068 BLAKE2B 57fdf9bcb1c6c6a94f3b88c429a9369cfacf2d11894f7230a0b4c8091d556a77415e07e4fdc47db8779cbc8271a9fe53106f37acf677829a707742ac727cc025 SHA512 84dea016884306ae8b1939064020f78628faaa1bb26433e277cef0c668558ac9588df9b6c89b2db2cac9e0691a9b5d87db64315785befd982bffd9754f532f41 |
27 |
|
28 |
diff --git a/media-gfx/imagemagick/imagemagick-6.9.10.25.ebuild b/media-gfx/imagemagick/imagemagick-6.9.10.25.ebuild |
29 |
deleted file mode 100644 |
30 |
index b6bca9ea8b2..00000000000 |
31 |
--- a/media-gfx/imagemagick/imagemagick-6.9.10.25.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,248 +0,0 @@ |
34 |
-# Copyright 1999-2019 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI="6" |
38 |
- |
39 |
-inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib |
40 |
- |
41 |
-MY_PV="$(ver_rs 3 '-')" |
42 |
-MY_P="ImageMagick-${MY_PV}" |
43 |
- |
44 |
-DESCRIPTION="A collection of tools and libraries for many image formats" |
45 |
-HOMEPAGE="https://www.imagemagick.org/" |
46 |
-SRC_URI="mirror://${PN}/${MY_P}.tar.xz" |
47 |
- |
48 |
-LICENSE="imagemagick" |
49 |
-SLOT="0/${PV}" |
50 |
-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" |
51 |
-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" |
52 |
- |
53 |
-RESTRICT="perl? ( userpriv )" |
54 |
- |
55 |
-RDEPEND=" |
56 |
- dev-libs/libltdl:0 |
57 |
- bzip2? ( app-arch/bzip2 ) |
58 |
- corefonts? ( media-fonts/corefonts ) |
59 |
- djvu? ( app-text/djvu ) |
60 |
- fftw? ( sci-libs/fftw:3.0 ) |
61 |
- fontconfig? ( media-libs/fontconfig ) |
62 |
- fpx? ( >=media-libs/libfpx-1.3.0-r1 ) |
63 |
- graphviz? ( media-gfx/graphviz ) |
64 |
- heif? ( media-libs/libheif:= ) |
65 |
- jbig? ( >=media-libs/jbigkit-2:= ) |
66 |
- jpeg? ( virtual/jpeg:0 ) |
67 |
- jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 ) |
68 |
- lcms? ( media-libs/lcms:2= ) |
69 |
- lqr? ( media-libs/liblqr ) |
70 |
- opencl? ( virtual/opencl ) |
71 |
- openexr? ( media-libs/openexr:0= ) |
72 |
- pango? ( x11-libs/pango ) |
73 |
- perl? ( >=dev-lang/perl-5.8.8:0= ) |
74 |
- png? ( media-libs/libpng:0= ) |
75 |
- postscript? ( app-text/ghostscript-gpl ) |
76 |
- raw? ( media-libs/libraw:= ) |
77 |
- svg? ( gnome-base/librsvg ) |
78 |
- tiff? ( media-libs/tiff:0= ) |
79 |
- truetype? ( |
80 |
- media-fonts/urw-fonts |
81 |
- >=media-libs/freetype-2 |
82 |
- ) |
83 |
- webp? ( media-libs/libwebp:0= ) |
84 |
- wmf? ( media-libs/libwmf ) |
85 |
- X? ( |
86 |
- x11-libs/libICE |
87 |
- x11-libs/libSM |
88 |
- x11-libs/libXext |
89 |
- x11-libs/libXt |
90 |
- ) |
91 |
- xml? ( dev-libs/libxml2:= ) |
92 |
- lzma? ( app-arch/xz-utils ) |
93 |
- zlib? ( sys-libs/zlib:= )" |
94 |
-DEPEND="${RDEPEND} |
95 |
- !media-gfx/graphicsmagick[imagemagick] |
96 |
- virtual/pkgconfig |
97 |
- X? ( x11-base/xorg-proto )" |
98 |
- |
99 |
-REQUIRED_USE="corefonts? ( truetype ) |
100 |
- test? ( corefonts )" |
101 |
- |
102 |
-S="${WORKDIR}/${MY_P}" |
103 |
- |
104 |
-src_prepare() { |
105 |
- default |
106 |
- |
107 |
- # Apply hardening #664236 |
108 |
- cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die |
109 |
- sed -i -e '/^<policymap>$/ { |
110 |
- r policy-hardening.snippet |
111 |
- d |
112 |
- }' \ |
113 |
- config/policy.xml || \ |
114 |
- die "Failed to apply hardening of policy.xml" |
115 |
- einfo "policy.xml hardened" |
116 |
- |
117 |
- elibtoolize # for Darwin modules |
118 |
- |
119 |
- # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3 |
120 |
- local mesa_cards ati_cards nvidia_cards render_cards |
121 |
- shopt -s nullglob |
122 |
- ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') |
123 |
- if test -n "${ati_cards}"; then |
124 |
- addpredict "${ati_cards}" |
125 |
- fi |
126 |
- mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') |
127 |
- if test -n "${mesa_cards}"; then |
128 |
- addpredict "${mesa_cards}" |
129 |
- fi |
130 |
- nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g') |
131 |
- if test -n "${nvidia_cards}"; then |
132 |
- addpredict "${nvidia_cards}" |
133 |
- fi |
134 |
- render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') |
135 |
- if test -n "${render_cards}"; then |
136 |
- addpredict "${render_cards}" |
137 |
- fi |
138 |
- shopt -u nullglob |
139 |
- addpredict /dev/nvidiactl |
140 |
-} |
141 |
- |
142 |
-src_configure() { |
143 |
- local depth=16 |
144 |
- use q8 && depth=8 |
145 |
- use q32 && depth=32 |
146 |
- |
147 |
- local openmp=disable |
148 |
- use openmp && { tc-has-openmp && openmp=enable; } |
149 |
- |
150 |
- use perl && perl_check_env |
151 |
- |
152 |
- [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket |
153 |
- |
154 |
- local myeconfargs=( |
155 |
- $(use_enable static-libs static) |
156 |
- $(use_enable hdri) |
157 |
- $(use_enable opencl) |
158 |
- --with-threads |
159 |
- --with-modules |
160 |
- --with-quantum-depth=${depth} |
161 |
- $(use_with cxx magick-plus-plus) |
162 |
- $(use_with perl) |
163 |
- --with-perl-options='INSTALLDIRS=vendor' |
164 |
- --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts |
165 |
- $(use_with bzip2 bzlib) |
166 |
- $(use_with X x) |
167 |
- $(use_with zlib) |
168 |
- --without-autotrace |
169 |
- $(use_with postscript dps) |
170 |
- $(use_with djvu) |
171 |
- --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu |
172 |
- $(use_with fftw) |
173 |
- $(use_with fpx) |
174 |
- $(use_with fontconfig) |
175 |
- $(use_with truetype freetype) |
176 |
- $(use_with postscript gslib) |
177 |
- $(use_with graphviz gvc) |
178 |
- $(use_with heif heic) |
179 |
- $(use_with jbig) |
180 |
- $(use_with jpeg) |
181 |
- $(use_with jpeg2k openjp2) |
182 |
- $(use_with lcms) |
183 |
- $(use_with lqr) |
184 |
- $(use_with lzma) |
185 |
- $(use_with openexr) |
186 |
- $(use_with pango) |
187 |
- $(use_with png) |
188 |
- $(use_with raw) |
189 |
- $(use_with svg rsvg) |
190 |
- $(use_with tiff) |
191 |
- $(use_with webp) |
192 |
- $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) |
193 |
- $(use_with wmf) |
194 |
- $(use_with xml) |
195 |
- --${openmp}-openmp |
196 |
- --with-gcc-arch=no-automagic |
197 |
- ) |
198 |
- CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}" |
199 |
-} |
200 |
- |
201 |
-src_test() { |
202 |
- # Install default (unrestricted) policy in $HOME for test suite #664238 |
203 |
- local _im_local_config_home="${HOME}/.config/ImageMagick" |
204 |
- mkdir -p "${_im_local_config_home}" || \ |
205 |
- die "Failed to create IM config dir in '${_im_local_config_home}'" |
206 |
- cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \ |
207 |
- die "Failed to install default blank policy.xml in '${_im_local_config_home}'" |
208 |
- |
209 |
- local im_command= IM_COMMANDS=() |
210 |
- IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built |
211 |
- IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used |
212 |
- IM_COMMANDS+=( "emake check" ) # Run tests |
213 |
- |
214 |
- for im_command in "${IM_COMMANDS[@]}"; do |
215 |
- eval "${S}"/magick.sh \ |
216 |
- ${im_command} || \ |
217 |
- die "Failed to run \"${im_command}\"" |
218 |
- done |
219 |
-} |
220 |
- |
221 |
-src_install() { |
222 |
- # Ensure documentation installation files and paths with each release! |
223 |
- emake \ |
224 |
- DESTDIR="${D}" \ |
225 |
- DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \ |
226 |
- install |
227 |
- |
228 |
- rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt} |
229 |
- dodoc {AUTHORS,README}.txt ChangeLog |
230 |
- |
231 |
- if use perl; then |
232 |
- find "${ED}" -type f -name perllocal.pod -exec rm -f {} + |
233 |
- find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + |
234 |
- fi |
235 |
- |
236 |
- find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
237 |
- |
238 |
- if use opencl; then |
239 |
- cat <<-EOF > "${T}"/99${PN} |
240 |
- SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128" |
241 |
- EOF |
242 |
- |
243 |
- insinto /etc/sandbox.d |
244 |
- doins "${T}"/99${PN} #472766 |
245 |
- fi |
246 |
- |
247 |
- insinto /usr/share/${PN} |
248 |
- doins config/*icm |
249 |
-} |
250 |
- |
251 |
-pkg_postinst() { |
252 |
- local _show_policy_xml_notice= |
253 |
- |
254 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
255 |
- # This is a new installation |
256 |
- _show_policy_xml_notice=yes |
257 |
- else |
258 |
- local v |
259 |
- for v in ${REPLACING_VERSIONS}; do |
260 |
- if ! ver_test "${v}" -gt "6.9.10.10-r2"; then |
261 |
- # This is an upgrade |
262 |
- _show_policy_xml_notice=yes |
263 |
- |
264 |
- # Show this elog only once |
265 |
- break |
266 |
- fi |
267 |
- done |
268 |
- fi |
269 |
- |
270 |
- if [[ -n "${_show_policy_xml_notice}" ]]; then |
271 |
- elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6" |
272 |
- elog "which will prevent the usage of the following coders by default:" |
273 |
- elog "" |
274 |
- elog " - PS" |
275 |
- elog " - PS2" |
276 |
- elog " - PS3" |
277 |
- elog " - EPS" |
278 |
- elog " - PDF" |
279 |
- elog " - XPS" |
280 |
- fi |
281 |
-} |
282 |
|
283 |
diff --git a/media-gfx/imagemagick/imagemagick-7.0.8.25.ebuild b/media-gfx/imagemagick/imagemagick-7.0.8.25.ebuild |
284 |
deleted file mode 100644 |
285 |
index 3b3fc7c8d30..00000000000 |
286 |
--- a/media-gfx/imagemagick/imagemagick-7.0.8.25.ebuild |
287 |
+++ /dev/null |
288 |
@@ -1,256 +0,0 @@ |
289 |
-# Copyright 1999-2019 Gentoo Authors |
290 |
-# Distributed under the terms of the GNU General Public License v2 |
291 |
- |
292 |
-EAPI="6" |
293 |
- |
294 |
-inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib |
295 |
- |
296 |
-if [[ ${PV} == "9999" ]] ; then |
297 |
- EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git" |
298 |
- inherit git-r3 |
299 |
- MY_P="imagemagick-9999" |
300 |
-else |
301 |
- MY_PV="$(ver_rs 3 '-')" |
302 |
- MY_P="ImageMagick-${MY_PV}" |
303 |
- SRC_URI="mirror://${PN}/${MY_P}.tar.xz" |
304 |
- 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" |
305 |
-fi |
306 |
- |
307 |
-DESCRIPTION="A collection of tools and libraries for many image formats" |
308 |
-HOMEPAGE="https://www.imagemagick.org/" |
309 |
- |
310 |
-LICENSE="imagemagick" |
311 |
-SLOT="0/${PV}" |
312 |
-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" |
313 |
- |
314 |
-RDEPEND=" |
315 |
- dev-libs/libltdl:0 |
316 |
- bzip2? ( app-arch/bzip2 ) |
317 |
- corefonts? ( media-fonts/corefonts ) |
318 |
- djvu? ( app-text/djvu ) |
319 |
- fftw? ( sci-libs/fftw:3.0 ) |
320 |
- fontconfig? ( media-libs/fontconfig ) |
321 |
- fpx? ( >=media-libs/libfpx-1.3.0-r1 ) |
322 |
- graphviz? ( media-gfx/graphviz ) |
323 |
- heif? ( media-libs/libheif:= ) |
324 |
- jbig? ( >=media-libs/jbigkit-2:= ) |
325 |
- jpeg? ( virtual/jpeg:0 ) |
326 |
- jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 ) |
327 |
- lcms? ( media-libs/lcms:2= ) |
328 |
- lqr? ( media-libs/liblqr ) |
329 |
- opencl? ( virtual/opencl ) |
330 |
- openexr? ( media-libs/openexr:0= ) |
331 |
- pango? ( x11-libs/pango ) |
332 |
- perl? ( >=dev-lang/perl-5.8.8:0= ) |
333 |
- png? ( media-libs/libpng:0= ) |
334 |
- postscript? ( app-text/ghostscript-gpl ) |
335 |
- raw? ( media-libs/libraw:= ) |
336 |
- svg? ( gnome-base/librsvg ) |
337 |
- tiff? ( media-libs/tiff:0= ) |
338 |
- truetype? ( |
339 |
- media-fonts/urw-fonts |
340 |
- >=media-libs/freetype-2 |
341 |
- ) |
342 |
- webp? ( media-libs/libwebp:0= ) |
343 |
- wmf? ( media-libs/libwmf ) |
344 |
- X? ( |
345 |
- x11-libs/libICE |
346 |
- x11-libs/libSM |
347 |
- x11-libs/libXext |
348 |
- x11-libs/libXt |
349 |
- ) |
350 |
- xml? ( dev-libs/libxml2:= ) |
351 |
- lzma? ( app-arch/xz-utils ) |
352 |
- zlib? ( sys-libs/zlib:= )" |
353 |
-DEPEND="${RDEPEND} |
354 |
- !media-gfx/graphicsmagick[imagemagick] |
355 |
- virtual/pkgconfig |
356 |
- X? ( x11-base/xorg-proto )" |
357 |
- |
358 |
-REQUIRED_USE="corefonts? ( truetype ) |
359 |
- test? ( corefonts )" |
360 |
- |
361 |
-S="${WORKDIR}/${MY_P}" |
362 |
- |
363 |
-src_prepare() { |
364 |
- default |
365 |
- |
366 |
- # Apply hardening #664236 |
367 |
- cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die |
368 |
- sed -i -e '/^<policymap>$/ { |
369 |
- r policy-hardening.snippet |
370 |
- d |
371 |
- }' \ |
372 |
- config/policy.xml || \ |
373 |
- die "Failed to apply hardening of policy.xml" |
374 |
- einfo "policy.xml hardened" |
375 |
- |
376 |
- elibtoolize # for Darwin modules |
377 |
- |
378 |
- # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3 |
379 |
- local ati_cards mesa_cards nvidia_cards render_cards |
380 |
- shopt -s nullglob |
381 |
- ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') |
382 |
- if test -n "${ati_cards}"; then |
383 |
- addpredict "${ati_cards}" |
384 |
- fi |
385 |
- mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') |
386 |
- if test -n "${mesa_cards}"; then |
387 |
- addpredict "${mesa_cards}" |
388 |
- fi |
389 |
- nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') |
390 |
- if test -n "${nvidia_cards}"; then |
391 |
- addpredict "${nvidia_cards}" |
392 |
- fi |
393 |
- render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') |
394 |
- if test -n "${render_cards}"; then |
395 |
- addpredict "${render_cards}" |
396 |
- fi |
397 |
- shopt -u nullglob |
398 |
- addpredict /dev/nvidiactl |
399 |
-} |
400 |
- |
401 |
-src_configure() { |
402 |
- local depth=16 |
403 |
- use q8 && depth=8 |
404 |
- use q32 && depth=32 |
405 |
- |
406 |
- local openmp=disable |
407 |
- use openmp && { tc-has-openmp && openmp=enable; } |
408 |
- |
409 |
- use perl && perl_check_env |
410 |
- |
411 |
- [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket |
412 |
- |
413 |
- local myeconfargs=( |
414 |
- $(use_enable static-libs static) |
415 |
- $(use_enable hdri) |
416 |
- $(use_enable opencl) |
417 |
- --with-threads |
418 |
- --with-modules |
419 |
- --with-quantum-depth=${depth} |
420 |
- $(use_with cxx magick-plus-plus) |
421 |
- $(use_with perl) |
422 |
- --with-perl-options='INSTALLDIRS=vendor' |
423 |
- --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts |
424 |
- $(use_with bzip2 bzlib) |
425 |
- $(use_with X x) |
426 |
- $(use_with zlib) |
427 |
- --without-autotrace |
428 |
- $(use_with postscript dps) |
429 |
- $(use_with djvu) |
430 |
- --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu |
431 |
- $(use_with fftw) |
432 |
- $(use_with fpx) |
433 |
- $(use_with fontconfig) |
434 |
- $(use_with truetype freetype) |
435 |
- $(use_with postscript gslib) |
436 |
- $(use_with graphviz gvc) |
437 |
- $(use_with heif heic) |
438 |
- $(use_with jbig) |
439 |
- $(use_with jpeg) |
440 |
- $(use_with jpeg2k openjp2) |
441 |
- $(use_with lcms) |
442 |
- $(use_with lqr) |
443 |
- $(use_with lzma) |
444 |
- $(use_with openexr) |
445 |
- $(use_with pango) |
446 |
- $(use_with png) |
447 |
- $(use_with raw) |
448 |
- $(use_with svg rsvg) |
449 |
- $(use_with tiff) |
450 |
- $(use_with webp) |
451 |
- $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) |
452 |
- $(use_with wmf) |
453 |
- $(use_with xml) |
454 |
- --${openmp}-openmp |
455 |
- --with-gcc-arch=no-automagic |
456 |
- ) |
457 |
- CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}" |
458 |
-} |
459 |
- |
460 |
-src_test() { |
461 |
- # Install default (unrestricted) policy in $HOME for test suite #664238 |
462 |
- local _im_local_config_home="${HOME}/.config/ImageMagick" |
463 |
- mkdir -p "${_im_local_config_home}" || \ |
464 |
- die "Failed to create IM config dir in '${_im_local_config_home}'" |
465 |
- cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \ |
466 |
- die "Failed to install default blank policy.xml in '${_im_local_config_home}'" |
467 |
- |
468 |
- local im_command= IM_COMMANDS=() |
469 |
- if [[ ${PV} == "9999" ]] ; then |
470 |
- IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild |
471 |
- else |
472 |
- IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built |
473 |
- fi |
474 |
- IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used |
475 |
- IM_COMMANDS+=( "emake check" ) # Run tests |
476 |
- |
477 |
- for im_command in "${IM_COMMANDS[@]}"; do |
478 |
- eval "${S}"/magick.sh \ |
479 |
- ${im_command} || \ |
480 |
- die "Failed to run \"${im_command}\"" |
481 |
- done |
482 |
-} |
483 |
- |
484 |
-src_install() { |
485 |
- # Ensure documentation installation files and paths with each release! |
486 |
- emake \ |
487 |
- DESTDIR="${D}" \ |
488 |
- DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \ |
489 |
- install |
490 |
- |
491 |
- rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt} |
492 |
- dodoc {AUTHORS,README}.txt ChangeLog |
493 |
- |
494 |
- if use perl; then |
495 |
- find "${ED}" -type f -name perllocal.pod -exec rm -f {} + |
496 |
- find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + |
497 |
- fi |
498 |
- |
499 |
- find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
500 |
- |
501 |
- if use opencl; then |
502 |
- cat <<-EOF > "${T}"/99${PN} |
503 |
- SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128" |
504 |
- EOF |
505 |
- |
506 |
- insinto /etc/sandbox.d |
507 |
- doins "${T}"/99${PN} #472766 |
508 |
- fi |
509 |
- |
510 |
- insinto /usr/share/${PN} |
511 |
- doins config/*icm |
512 |
-} |
513 |
- |
514 |
-pkg_postinst() { |
515 |
- local _show_policy_xml_notice= |
516 |
- |
517 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
518 |
- # This is a new installation |
519 |
- _show_policy_xml_notice=yes |
520 |
- else |
521 |
- local v |
522 |
- for v in ${REPLACING_VERSIONS}; do |
523 |
- if ! ver_test "${v}" -gt "7.0.8.10-r2"; then |
524 |
- # This is an upgrade |
525 |
- _show_policy_xml_notice=yes |
526 |
- |
527 |
- # Show this elog only once |
528 |
- break |
529 |
- fi |
530 |
- done |
531 |
- fi |
532 |
- |
533 |
- if [[ -n "${_show_policy_xml_notice}" ]]; then |
534 |
- elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7" |
535 |
- elog "which will prevent the usage of the following coders by default:" |
536 |
- elog "" |
537 |
- elog " - PS" |
538 |
- elog " - PS2" |
539 |
- elog " - PS3" |
540 |
- elog " - EPS" |
541 |
- elog " - PDF" |
542 |
- elog " - XPS" |
543 |
- fi |
544 |
-} |