Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/imagemagick/
Date: Fri, 07 Oct 2016 11:06:21
Message-Id: 1475838370.14ed9019bd099514376e5ef07b1ff62c1b9d91e6.polynomial-c@gentoo
1 commit: 14ed9019bd099514376e5ef07b1ff62c1b9d91e6
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 7 11:05:54 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 7 11:06:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14ed9019
7
8 media-gfx/imagemagick: Removed old.
9
10 Package-Manager: portage-2.3.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-gfx/imagemagick/Manifest | 3 -
14 media-gfx/imagemagick/imagemagick-6.9.4.6.ebuild | 178 -----------------------
15 media-gfx/imagemagick/imagemagick-6.9.4.7.ebuild | 178 -----------------------
16 media-gfx/imagemagick/imagemagick-6.9.5.9.ebuild | 178 -----------------------
17 4 files changed, 537 deletions(-)
18
19 diff --git a/media-gfx/imagemagick/Manifest b/media-gfx/imagemagick/Manifest
20 index 7e4f2a2..9ae8a48 100644
21 --- a/media-gfx/imagemagick/Manifest
22 +++ b/media-gfx/imagemagick/Manifest
23 @@ -1,6 +1,3 @@
24 -DIST ImageMagick-6.9.4-6.tar.xz 8785300 SHA256 c028642af5f4cbae864b4afd6ea96878191be64103ca9c7cc67612ec3cbb9dec SHA512 2984533e6b5c3e09d2e270c27ce9c3316499e622ed0b657e17baede5e380778d496626e3f47a32572a8c9a3a4b5257004ecf51b66ada762375516fbdffd0707d WHIRLPOOL 2ecb83b7f6790db17632eae822de64bd05b7bcb6839eb686e34f95c31ebeddc2023960005cf6d956d2692d79733b7f15e7a6355a0af2d98546f7c3e04c16b626
25 -DIST ImageMagick-6.9.4-7.tar.xz 8792244 SHA256 f54fc8dcdb328404d1f89ddebe75d603e22894d3786ca2f2a9677478135b4c86 SHA512 63f6baa85da88510c6afff85569f55fe0e543f9f46e2e90f7c8f78dc83907656ed689781856d0e6a9c959deffe601a654cda1057fec62d03d2c5f54ed3f2f84e WHIRLPOOL 1c5c95527d10219f4e82ea8645c571b6005c764ed286c11e6b3eebb1944c9ff880b5f9030bd6bf7c5bc4917ada50878b343a0a4c8930f7b59b8007f3119d46a3
26 DIST ImageMagick-6.9.5-10.tar.xz 8794440 SHA256 2805ab7945ca92251172335da992df800bcc09fee993eeb4711b20c53efeb233 SHA512 7ee467cf8b1776300c12f135c7fea73afe888d4592c2008e76e578afa436efadccc62e7f2fd9d356aeb8559cc5ff9168ee477bab5474f7495a332756aba294bb WHIRLPOOL 3105e524182f81d1210fd3f56c3457259c04d3d95d5a5a118f0854dd5f5851e43c70256f915221a0c3dd772e344fc5d9e1d36c3d2b77fccde68d70f66471c299
27 -DIST ImageMagick-6.9.5-9.tar.xz 8778128 SHA256 9c4f300daae165a6bcf46779876f9361a958076f8cd59fa203d84c70ba5bc183 SHA512 3aff67710305e3427e2effab5bd5b10c9f55ca9b755704cdea169dbe3653fe919ae603a37fb3d7c105b61c930d4652cf488f7a7ec0a2d847bfb66b8f6eb1db43 WHIRLPOOL badb7dc7f72b9872865c6140cc69ee7bff8978536ab0c6439b26bb60b441d28313e053374e92eaa9b19ab2882189803e7749a261df59ea121fb010f2d6a09802
28 DIST ImageMagick-6.9.6-0.tar.xz 8785676 SHA256 7905cd179e1d0fabdf58fca77a682ed68443999bfd6e0941f93bf9c08218e5e4 SHA512 be8953be1fa7b66cb914b44a8e21ee5551f9f7537a9da2593b5e8d7a512a07dc9fdd2097fb455444e2cb0e3b94e2161ba7557ea612b9a51740a986c5098afb04 WHIRLPOOL 6db8f0b196c42d39ab667d38d4fd6c922b727e77fa7f87f2e782b6237135774f1ed4a17dea723ad2f324bbd35384bf1069a003dec8c288575b8ff3551aef15b0
29 DIST ImageMagick-7.0.3-2.tar.xz 8292420 SHA256 d9ff718c09b88216aa3fba2f3f251b171b9e74fbda9e9e38a581ef3e4af8b363 SHA512 3d7dc8097005cb541e59ebe40dac08059ce8a7087c0ce47f1d42c14b50000e373425df4f6261b48362932df993ac78e56a84ad89ad971205320d30fb1a5e54e6 WHIRLPOOL c45a30e90a955902fa0816047c9e80d5b50877dc7d4b49658f06fd8f7f067864715fc01e018ce3fe8e5d73cb6a0b3cd36fb25a5adc07b26a63acb0cd43e460f6
30
31 diff --git a/media-gfx/imagemagick/imagemagick-6.9.4.6.ebuild b/media-gfx/imagemagick/imagemagick-6.9.4.6.ebuild
32 deleted file mode 100644
33 index 05e5d75..00000000
34 --- a/media-gfx/imagemagick/imagemagick-6.9.4.6.ebuild
35 +++ /dev/null
36 @@ -1,178 +0,0 @@
37 -# Copyright 1999-2016 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -# $Id$
40 -
41 -EAPI=6
42 -
43 -inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
44 -
45 -MY_P=ImageMagick-$(replace_version_separator 3 '-')
46 -
47 -DESCRIPTION="A collection of tools and libraries for many image formats"
48 -HOMEPAGE="http://www.imagemagick.org/"
49 -SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
50 -
51 -LICENSE="imagemagick"
52 -SLOT="0/${PV}"
53 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
54 -IUSE="autotrace bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q64 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
55 -
56 -RESTRICT="perl? ( userpriv )"
57 -
58 -RDEPEND="
59 - dev-libs/libltdl:0
60 - autotrace? ( >=media-gfx/autotrace-0.31.1 )
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 - jbig? ( >=media-libs/jbigkit-2:= )
69 - jpeg? ( virtual/jpeg:0 )
70 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
71 - lcms? ( media-libs/lcms:2= )
72 - lqr? ( media-libs/liblqr )
73 - opencl? ( virtual/opencl )
74 - openexr? ( media-libs/openexr:0= )
75 - pango? ( x11-libs/pango )
76 - perl? ( >=dev-lang/perl-5.8.8:0= )
77 - png? ( media-libs/libpng:0= )
78 - postscript? ( app-text/ghostscript-gpl )
79 - raw? ( media-gfx/ufraw )
80 - svg? ( gnome-base/librsvg )
81 - tiff? ( media-libs/tiff:0= )
82 - truetype? (
83 - media-fonts/urw-fonts
84 - >=media-libs/freetype-2
85 - )
86 - webp? ( media-libs/libwebp:0= )
87 - wmf? ( media-libs/libwmf )
88 - X? (
89 - x11-libs/libICE
90 - x11-libs/libSM
91 - x11-libs/libXext
92 - x11-libs/libXt
93 - )
94 - xml? ( dev-libs/libxml2:= )
95 - lzma? ( app-arch/xz-utils )
96 - zlib? ( sys-libs/zlib:= )"
97 -DEPEND="${RDEPEND}
98 - !media-gfx/graphicsmagick[imagemagick]
99 - virtual/pkgconfig
100 - X? ( x11-proto/xextproto )"
101 -
102 -REQUIRED_USE="corefonts? ( truetype )
103 - test? ( corefonts )"
104 -
105 -S=${WORKDIR}/${MY_P}
106 -
107 -src_prepare() {
108 - default
109 -
110 - elibtoolize # for Darwin modules
111 -
112 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
113 - shopt -s nullglob
114 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
115 - if test -n "${mesa_cards}"; then
116 - addpredict "${mesa_cards}"
117 - fi
118 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
119 - if test -n "${ati_cards}"; then
120 - addpredict "${ati_cards}"
121 - fi
122 - shopt -u nullglob
123 - addpredict /dev/nvidiactl
124 -}
125 -
126 -src_configure() {
127 - local depth=16
128 - use q8 && depth=8
129 - use q32 && depth=32
130 - use q64 && depth=64
131 -
132 - local openmp=disable
133 - use openmp && { tc-has-openmp && openmp=enable; }
134 -
135 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
136 -
137 - CONFIG_SHELL=$(type -P bash) \
138 - econf \
139 - $(use_enable static-libs static) \
140 - $(use_enable hdri) \
141 - $(use_enable opencl) \
142 - --with-threads \
143 - --with-modules \
144 - --with-quantum-depth=${depth} \
145 - $(use_with cxx magick-plus-plus) \
146 - $(use_with perl) \
147 - --with-perl-options='INSTALLDIRS=vendor' \
148 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
149 - $(use_with bzip2 bzlib) \
150 - $(use_with X x) \
151 - $(use_with zlib) \
152 - $(use_with autotrace) \
153 - $(use_with postscript dps) \
154 - $(use_with djvu) \
155 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
156 - $(use_with fftw) \
157 - $(use_with fpx) \
158 - $(use_with fontconfig) \
159 - $(use_with truetype freetype) \
160 - $(use_with postscript gslib) \
161 - $(use_with graphviz gvc) \
162 - $(use_with jbig) \
163 - $(use_with jpeg) \
164 - $(use_with jpeg2k openjp2) \
165 - $(use_with lcms) \
166 - $(use_with lqr) \
167 - $(use_with lzma) \
168 - $(use_with openexr) \
169 - $(use_with pango) \
170 - $(use_with png) \
171 - $(use_with svg rsvg) \
172 - $(use_with tiff) \
173 - $(use_with webp) \
174 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
175 - $(use_with wmf) \
176 - $(use_with xml) \
177 - --${openmp}-openmp \
178 - --with-gcc-arch=no-automagic
179 -}
180 -
181 -src_test() {
182 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
183 - emake check
184 -}
185 -
186 -src_install() {
187 - # Ensure documentation installation files and paths with each release!
188 - emake \
189 - DESTDIR="${D}" \
190 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
191 - install
192 -
193 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
194 - dodoc {AUTHORS,README}.txt ChangeLog
195 -
196 - if use perl; then
197 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
198 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
199 - fi
200 -
201 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
202 -
203 - if use opencl; then
204 - cat <<-EOF > "${T}"/99${PN}
205 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/ati/card:/dev/dri/card"
206 - EOF
207 -
208 - insinto /etc/sandbox.d
209 - doins "${T}"/99${PN} #472766
210 - fi
211 -
212 - insinto /usr/share/${PN}
213 - doins config/*icm
214 -}
215
216 diff --git a/media-gfx/imagemagick/imagemagick-6.9.4.7.ebuild b/media-gfx/imagemagick/imagemagick-6.9.4.7.ebuild
217 deleted file mode 100644
218 index 47260e1..00000000
219 --- a/media-gfx/imagemagick/imagemagick-6.9.4.7.ebuild
220 +++ /dev/null
221 @@ -1,178 +0,0 @@
222 -# Copyright 1999-2016 Gentoo Foundation
223 -# Distributed under the terms of the GNU General Public License v2
224 -# $Id$
225 -
226 -EAPI=6
227 -
228 -inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
229 -
230 -MY_P=ImageMagick-$(replace_version_separator 3 '-')
231 -
232 -DESCRIPTION="A collection of tools and libraries for many image formats"
233 -HOMEPAGE="http://www.imagemagick.org/"
234 -SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
235 -
236 -LICENSE="imagemagick"
237 -SLOT="0/${PV}"
238 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
239 -IUSE="autotrace bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q64 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
240 -
241 -RESTRICT="perl? ( userpriv )"
242 -
243 -RDEPEND="
244 - dev-libs/libltdl:0
245 - autotrace? ( >=media-gfx/autotrace-0.31.1 )
246 - bzip2? ( app-arch/bzip2 )
247 - corefonts? ( media-fonts/corefonts )
248 - djvu? ( app-text/djvu )
249 - fftw? ( sci-libs/fftw:3.0 )
250 - fontconfig? ( media-libs/fontconfig )
251 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
252 - graphviz? ( media-gfx/graphviz )
253 - jbig? ( >=media-libs/jbigkit-2:= )
254 - jpeg? ( virtual/jpeg:0 )
255 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
256 - lcms? ( media-libs/lcms:2= )
257 - lqr? ( media-libs/liblqr )
258 - opencl? ( virtual/opencl )
259 - openexr? ( media-libs/openexr:0= )
260 - pango? ( x11-libs/pango )
261 - perl? ( >=dev-lang/perl-5.8.8:0= )
262 - png? ( media-libs/libpng:0= )
263 - postscript? ( app-text/ghostscript-gpl )
264 - raw? ( media-gfx/ufraw )
265 - svg? ( gnome-base/librsvg )
266 - tiff? ( media-libs/tiff:0= )
267 - truetype? (
268 - media-fonts/urw-fonts
269 - >=media-libs/freetype-2
270 - )
271 - webp? ( media-libs/libwebp:0= )
272 - wmf? ( media-libs/libwmf )
273 - X? (
274 - x11-libs/libICE
275 - x11-libs/libSM
276 - x11-libs/libXext
277 - x11-libs/libXt
278 - )
279 - xml? ( dev-libs/libxml2:= )
280 - lzma? ( app-arch/xz-utils )
281 - zlib? ( sys-libs/zlib:= )"
282 -DEPEND="${RDEPEND}
283 - !media-gfx/graphicsmagick[imagemagick]
284 - virtual/pkgconfig
285 - X? ( x11-proto/xextproto )"
286 -
287 -REQUIRED_USE="corefonts? ( truetype )
288 - test? ( corefonts )"
289 -
290 -S=${WORKDIR}/${MY_P}
291 -
292 -src_prepare() {
293 - default
294 -
295 - elibtoolize # for Darwin modules
296 -
297 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
298 - shopt -s nullglob
299 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
300 - if test -n "${mesa_cards}"; then
301 - addpredict "${mesa_cards}"
302 - fi
303 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
304 - if test -n "${ati_cards}"; then
305 - addpredict "${ati_cards}"
306 - fi
307 - shopt -u nullglob
308 - addpredict /dev/nvidiactl
309 -}
310 -
311 -src_configure() {
312 - local depth=16
313 - use q8 && depth=8
314 - use q32 && depth=32
315 - use q64 && depth=64
316 -
317 - local openmp=disable
318 - use openmp && { tc-has-openmp && openmp=enable; }
319 -
320 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
321 -
322 - CONFIG_SHELL=$(type -P bash) \
323 - econf \
324 - $(use_enable static-libs static) \
325 - $(use_enable hdri) \
326 - $(use_enable opencl) \
327 - --with-threads \
328 - --with-modules \
329 - --with-quantum-depth=${depth} \
330 - $(use_with cxx magick-plus-plus) \
331 - $(use_with perl) \
332 - --with-perl-options='INSTALLDIRS=vendor' \
333 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
334 - $(use_with bzip2 bzlib) \
335 - $(use_with X x) \
336 - $(use_with zlib) \
337 - $(use_with autotrace) \
338 - $(use_with postscript dps) \
339 - $(use_with djvu) \
340 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
341 - $(use_with fftw) \
342 - $(use_with fpx) \
343 - $(use_with fontconfig) \
344 - $(use_with truetype freetype) \
345 - $(use_with postscript gslib) \
346 - $(use_with graphviz gvc) \
347 - $(use_with jbig) \
348 - $(use_with jpeg) \
349 - $(use_with jpeg2k openjp2) \
350 - $(use_with lcms) \
351 - $(use_with lqr) \
352 - $(use_with lzma) \
353 - $(use_with openexr) \
354 - $(use_with pango) \
355 - $(use_with png) \
356 - $(use_with svg rsvg) \
357 - $(use_with tiff) \
358 - $(use_with webp) \
359 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
360 - $(use_with wmf) \
361 - $(use_with xml) \
362 - --${openmp}-openmp \
363 - --with-gcc-arch=no-automagic
364 -}
365 -
366 -src_test() {
367 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
368 - emake check
369 -}
370 -
371 -src_install() {
372 - # Ensure documentation installation files and paths with each release!
373 - emake \
374 - DESTDIR="${D}" \
375 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
376 - install
377 -
378 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
379 - dodoc {AUTHORS,README}.txt ChangeLog
380 -
381 - if use perl; then
382 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
383 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
384 - fi
385 -
386 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
387 -
388 - if use opencl; then
389 - cat <<-EOF > "${T}"/99${PN}
390 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/ati/card:/dev/dri/card"
391 - EOF
392 -
393 - insinto /etc/sandbox.d
394 - doins "${T}"/99${PN} #472766
395 - fi
396 -
397 - insinto /usr/share/${PN}
398 - doins config/*icm
399 -}
400
401 diff --git a/media-gfx/imagemagick/imagemagick-6.9.5.9.ebuild b/media-gfx/imagemagick/imagemagick-6.9.5.9.ebuild
402 deleted file mode 100644
403 index 47260e1..00000000
404 --- a/media-gfx/imagemagick/imagemagick-6.9.5.9.ebuild
405 +++ /dev/null
406 @@ -1,178 +0,0 @@
407 -# Copyright 1999-2016 Gentoo Foundation
408 -# Distributed under the terms of the GNU General Public License v2
409 -# $Id$
410 -
411 -EAPI=6
412 -
413 -inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
414 -
415 -MY_P=ImageMagick-$(replace_version_separator 3 '-')
416 -
417 -DESCRIPTION="A collection of tools and libraries for many image formats"
418 -HOMEPAGE="http://www.imagemagick.org/"
419 -SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
420 -
421 -LICENSE="imagemagick"
422 -SLOT="0/${PV}"
423 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
424 -IUSE="autotrace bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q64 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
425 -
426 -RESTRICT="perl? ( userpriv )"
427 -
428 -RDEPEND="
429 - dev-libs/libltdl:0
430 - autotrace? ( >=media-gfx/autotrace-0.31.1 )
431 - bzip2? ( app-arch/bzip2 )
432 - corefonts? ( media-fonts/corefonts )
433 - djvu? ( app-text/djvu )
434 - fftw? ( sci-libs/fftw:3.0 )
435 - fontconfig? ( media-libs/fontconfig )
436 - fpx? ( >=media-libs/libfpx-1.3.0-r1 )
437 - graphviz? ( media-gfx/graphviz )
438 - jbig? ( >=media-libs/jbigkit-2:= )
439 - jpeg? ( virtual/jpeg:0 )
440 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
441 - lcms? ( media-libs/lcms:2= )
442 - lqr? ( media-libs/liblqr )
443 - opencl? ( virtual/opencl )
444 - openexr? ( media-libs/openexr:0= )
445 - pango? ( x11-libs/pango )
446 - perl? ( >=dev-lang/perl-5.8.8:0= )
447 - png? ( media-libs/libpng:0= )
448 - postscript? ( app-text/ghostscript-gpl )
449 - raw? ( media-gfx/ufraw )
450 - svg? ( gnome-base/librsvg )
451 - tiff? ( media-libs/tiff:0= )
452 - truetype? (
453 - media-fonts/urw-fonts
454 - >=media-libs/freetype-2
455 - )
456 - webp? ( media-libs/libwebp:0= )
457 - wmf? ( media-libs/libwmf )
458 - X? (
459 - x11-libs/libICE
460 - x11-libs/libSM
461 - x11-libs/libXext
462 - x11-libs/libXt
463 - )
464 - xml? ( dev-libs/libxml2:= )
465 - lzma? ( app-arch/xz-utils )
466 - zlib? ( sys-libs/zlib:= )"
467 -DEPEND="${RDEPEND}
468 - !media-gfx/graphicsmagick[imagemagick]
469 - virtual/pkgconfig
470 - X? ( x11-proto/xextproto )"
471 -
472 -REQUIRED_USE="corefonts? ( truetype )
473 - test? ( corefonts )"
474 -
475 -S=${WORKDIR}/${MY_P}
476 -
477 -src_prepare() {
478 - default
479 -
480 - elibtoolize # for Darwin modules
481 -
482 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
483 - shopt -s nullglob
484 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
485 - if test -n "${mesa_cards}"; then
486 - addpredict "${mesa_cards}"
487 - fi
488 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
489 - if test -n "${ati_cards}"; then
490 - addpredict "${ati_cards}"
491 - fi
492 - shopt -u nullglob
493 - addpredict /dev/nvidiactl
494 -}
495 -
496 -src_configure() {
497 - local depth=16
498 - use q8 && depth=8
499 - use q32 && depth=32
500 - use q64 && depth=64
501 -
502 - local openmp=disable
503 - use openmp && { tc-has-openmp && openmp=enable; }
504 -
505 - [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
506 -
507 - CONFIG_SHELL=$(type -P bash) \
508 - econf \
509 - $(use_enable static-libs static) \
510 - $(use_enable hdri) \
511 - $(use_enable opencl) \
512 - --with-threads \
513 - --with-modules \
514 - --with-quantum-depth=${depth} \
515 - $(use_with cxx magick-plus-plus) \
516 - $(use_with perl) \
517 - --with-perl-options='INSTALLDIRS=vendor' \
518 - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
519 - $(use_with bzip2 bzlib) \
520 - $(use_with X x) \
521 - $(use_with zlib) \
522 - $(use_with autotrace) \
523 - $(use_with postscript dps) \
524 - $(use_with djvu) \
525 - --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
526 - $(use_with fftw) \
527 - $(use_with fpx) \
528 - $(use_with fontconfig) \
529 - $(use_with truetype freetype) \
530 - $(use_with postscript gslib) \
531 - $(use_with graphviz gvc) \
532 - $(use_with jbig) \
533 - $(use_with jpeg) \
534 - $(use_with jpeg2k openjp2) \
535 - $(use_with lcms) \
536 - $(use_with lqr) \
537 - $(use_with lzma) \
538 - $(use_with openexr) \
539 - $(use_with pango) \
540 - $(use_with png) \
541 - $(use_with svg rsvg) \
542 - $(use_with tiff) \
543 - $(use_with webp) \
544 - $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
545 - $(use_with wmf) \
546 - $(use_with xml) \
547 - --${openmp}-openmp \
548 - --with-gcc-arch=no-automagic
549 -}
550 -
551 -src_test() {
552 - LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
553 - emake check
554 -}
555 -
556 -src_install() {
557 - # Ensure documentation installation files and paths with each release!
558 - emake \
559 - DESTDIR="${D}" \
560 - DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
561 - install
562 -
563 - rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
564 - dodoc {AUTHORS,README}.txt ChangeLog
565 -
566 - if use perl; then
567 - find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
568 - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
569 - fi
570 -
571 - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
572 -
573 - if use opencl; then
574 - cat <<-EOF > "${T}"/99${PN}
575 - SANDBOX_PREDICT="/dev/nvidiactl:/dev/ati/card:/dev/dri/card"
576 - EOF
577 -
578 - insinto /etc/sandbox.d
579 - doins "${T}"/99${PN} #472766
580 - fi
581 -
582 - insinto /usr/share/${PN}
583 - doins config/*icm
584 -}