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