Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/imagemagick: imagemagick-6.8.8.10.ebuild ChangeLog
Date: Wed, 02 Apr 2014 14:31:19
Message-Id: 20140402143107.3446C20060@flycatcher.gentoo.org
1 ssuominen 14/04/02 14:31:07
2
3 Modified: ChangeLog
4 Added: imagemagick-6.8.8.10.ebuild
5 Log:
6 Version bump. Install sandbox.d file to prevent errors with USE="opencl" wrt #472766
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.541 media-gfx/imagemagick/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/imagemagick/ChangeLog?rev=1.541&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/imagemagick/ChangeLog?rev=1.541&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/imagemagick/ChangeLog?r1=1.540&r2=1.541
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v
20 retrieving revision 1.540
21 retrieving revision 1.541
22 diff -u -r1.540 -r1.541
23 --- ChangeLog 24 Mar 2014 14:29:06 -0000 1.540
24 +++ ChangeLog 2 Apr 2014 14:31:07 -0000 1.541
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-gfx/imagemagick
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v 1.540 2014/03/24 14:29:06 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v 1.541 2014/04/02 14:31:07 ssuominen Exp $
30 +
31 +*imagemagick-6.8.8.10 (02 Apr 2014)
32 +
33 + 02 Apr 2014; Samuli Suominen <ssuominen@g.o>
34 + +imagemagick-6.8.8.10.ebuild:
35 + Version bump. Install sandbox.d file to prevent errors with USE="opencl" wrt
36 + #472766
37
38 24 Mar 2014; Agostino Sarubbo <ago@g.o> imagemagick-6.8.8.5.ebuild:
39 Stable for ppc64, wrt bug #500988
40
41
42
43 1.1 media-gfx/imagemagick/imagemagick-6.8.8.10.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/imagemagick/imagemagick-6.8.8.10.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/imagemagick/imagemagick-6.8.8.10.ebuild?rev=1.1&content-type=text/plain
47
48 Index: imagemagick-6.8.8.10.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/imagemagick-6.8.8.10.ebuild,v 1.1 2014/04/02 14:31:07 ssuominen Exp $
53
54 EAPI=5
55 inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
56
57 MY_P=ImageMagick-$(replace_version_separator 3 '-')
58
59 DESCRIPTION="A collection of tools and libraries for many image formats"
60 HOMEPAGE="http://www.imagemagick.org/"
61 SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
62
63 LICENSE="imagemagick"
64 SLOT="0/${PV}"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-aix ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-interix ~x86-solaris"
66 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"
67
68 RESTRICT="perl? ( userpriv )"
69
70 RDEPEND=">=sys-devel/libtool-2.2.6b
71 autotrace? ( >=media-gfx/autotrace-0.31.1 )
72 bzip2? ( app-arch/bzip2 )
73 corefonts? ( media-fonts/corefonts )
74 djvu? ( app-text/djvu )
75 fftw? ( sci-libs/fftw:3.0 )
76 fontconfig? ( media-libs/fontconfig )
77 fpx? ( >=media-libs/libfpx-1.3.0-r1 )
78 graphviz? ( media-gfx/graphviz )
79 jbig? ( media-libs/jbigkit )
80 jpeg? ( virtual/jpeg:0 )
81 jpeg2k? ( media-libs/openjpeg:2 )
82 lcms? ( media-libs/lcms:2 )
83 lqr? ( media-libs/liblqr )
84 opencl? ( virtual/opencl )
85 openexr? ( media-libs/openexr:0= )
86 pango? ( x11-libs/pango )
87 perl? ( >=dev-lang/perl-5.8.8:0= )
88 png? ( media-libs/libpng:0= )
89 postscript? ( app-text/ghostscript-gpl )
90 raw? ( media-gfx/ufraw )
91 svg? ( gnome-base/librsvg )
92 tiff? ( media-libs/tiff:0 )
93 truetype? (
94 media-fonts/urw-fonts
95 >=media-libs/freetype-2
96 )
97 webp? ( media-libs/libwebp:0= )
98 wmf? ( media-libs/libwmf )
99 X? (
100 x11-libs/libICE
101 x11-libs/libSM
102 x11-libs/libXext
103 x11-libs/libXt
104 )
105 xml? ( dev-libs/libxml2 )
106 lzma? ( app-arch/xz-utils )
107 zlib? ( sys-libs/zlib )"
108 DEPEND="${RDEPEND}
109 !media-gfx/graphicsmagick[imagemagick]
110 virtual/pkgconfig
111 X? ( x11-proto/xextproto )"
112
113 REQUIRED_USE="corefonts? ( truetype )
114 test? ( corefonts )"
115
116 S=${WORKDIR}/${MY_P}
117
118 src_prepare() {
119 epatch "${FILESDIR}"/${PN}-6.8.8.8-openjpeg-2.0.0-has-no-opj_stream_destroy_v3.patch
120
121 epatch_user
122
123 elibtoolize # for Darwin modules
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 econf \
138 $(use_enable static-libs static) \
139 $(use_enable hdri) \
140 $(use_enable opencl) \
141 --with-threads \
142 --with-modules \
143 --with-quantum-depth=${depth} \
144 $(use_with cxx magick-plus-plus) \
145 $(use_with perl) \
146 --with-perl-options='INSTALLDIRS=vendor' \
147 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
148 $(use_with bzip2 bzlib) \
149 $(use_with X x) \
150 $(use_with zlib) \
151 $(use_with autotrace) \
152 $(use_with postscript dps) \
153 $(use_with djvu) \
154 --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
155 $(use_with fftw) \
156 $(use_with fpx) \
157 $(use_with fontconfig) \
158 $(use_with truetype freetype) \
159 $(use_with postscript gslib) \
160 $(use_with graphviz gvc) \
161 $(use_with jbig) \
162 $(use_with jpeg) \
163 $(use_with jpeg2k openjp2) \
164 --without-lcms \
165 $(use_with lcms lcms2) \
166 $(use_with lqr) \
167 $(use_with lzma) \
168 --without-mupdf \
169 $(use_with openexr) \
170 $(use_with pango) \
171 $(use_with png) \
172 $(use_with svg rsvg) \
173 $(use_with tiff) \
174 $(use_with webp) \
175 $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
176 $(use_with wmf) \
177 $(use_with xml) \
178 --${openmp}-openmp
179 }
180
181 src_test() {
182 if has_version ~${CATEGORY}/${P}; then
183 emake -j1 check
184 else
185 ewarn "Skipping testsuite because installed version doesn't match."
186 fi
187 }
188
189 src_install() {
190 # Ensure documentation installation files and paths with each release!
191 emake \
192 DESTDIR="${D}" \
193 DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
194 install
195
196 rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
197 dodoc {AUTHORS,README}.txt ChangeLog
198
199 if use perl; then
200 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
201 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
202 fi
203
204 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
205
206 if use opencl; then
207 cat <<-EOF > "${T}"/99${PN}
208 SANDBOX_PREDICT="/dev/dri/card"
209 EOF
210
211 insinto /etc/sandbox.d
212 doins "${T}"/99${PN} #472766
213 fi
214 }