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