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