Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/imagemagick: imagemagick-6.4.5.9.ebuild ChangeLog
Date: Mon, 29 Dec 2008 04:05:41
Message-Id: E1LH9Np-0002CT-MV@stork.gentoo.org
1 robbat2 08/12/29 04:05:37
2
3 Modified: ChangeLog
4 Added: imagemagick-6.4.5.9.ebuild
5 Log:
6 Minor version bump that improves PerlMagick and OpenMP usage.
7 (Portage version: 2.2_rc19/cvs/Linux 2.6.28-rc5-00117-g7f0f598 x86_64)
8
9 Revision Changes Path
10 1.324 media-gfx/imagemagick/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/ChangeLog?rev=1.324&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/ChangeLog?rev=1.324&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/ChangeLog?r1=1.323&r2=1.324
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v
19 retrieving revision 1.323
20 retrieving revision 1.324
21 diff -p -w -b -B -u -u -r1.323 -r1.324
22 --- ChangeLog 23 Dec 2008 17:49:18 -0000 1.323
23 +++ ChangeLog 29 Dec 2008 04:05:37 -0000 1.324
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-gfx/imagemagick
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v 1.323 2008/12/23 17:49:18 maekke Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v 1.324 2008/12/29 04:05:37 robbat2 Exp $
29 +
30 +*imagemagick-6.4.5.9 (29 Dec 2008)
31 +
32 + 29 Dec 2008; Robin H. Johnson <robbat2@g.o>
33 + +imagemagick-6.4.5.9.ebuild:
34 + Minor version bump that improves PerlMagick and OpenMP usage.
35
36 23 Dec 2008; Markus Meier <maekke@g.o>
37 -imagemagick-6.3.5.10.ebuild, -imagemagick-6.4.0.6.ebuild,
38
39
40
41 1.1 media-gfx/imagemagick/imagemagick-6.4.5.9.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/imagemagick-6.4.5.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/imagemagick-6.4.5.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: imagemagick-6.4.5.9.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/imagemagick-6.4.5.9.ebuild,v 1.1 2008/12/29 04:05:37 robbat2 Exp $
51
52 EAPI="2"
53
54 inherit eutils multilib perl-app toolchain-funcs
55
56 MY_PN=ImageMagick
57 MY_P=${MY_PN}-${PV%.*}
58 MY_P2=${MY_PN}-${PV%.*}-${PV#*.*.*.}
59
60 DESCRIPTION="A collection of tools and libraries for many image formats"
61 HOMEPAGE="http://www.imagemagick.org/"
62 SRC_URI="ftp://ftp.imagemagick.org/pub/${MY_PN}/${MY_P2}.tar.bz2"
63
64 LICENSE="imagemagick"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
67 IUSE="bzip2 +corefonts djvu doc fontconfig fpx graphviz gs hdri jbig jpeg jpeg2k
68 lcms nocxx openexr openmp perl png q8 q32 raw svg tiff truetype X wmf xml zlib"
69
70 RDEPEND="bzip2? ( app-arch/bzip2 )
71 djvu? ( app-text/djvu[threads] )
72 fontconfig? ( media-libs/fontconfig )
73 fpx? ( media-libs/libfpx )
74 graphviz? ( >=media-gfx/graphviz-2.6 )
75 gs? ( virtual/ghostscript )
76 jbig? ( media-libs/jbigkit )
77 jpeg? ( >=media-libs/jpeg-6b )
78 jpeg2k? ( media-libs/jasper )
79 lcms? ( >=media-libs/lcms-1.06 )
80 openexr? ( media-libs/openexr )
81 perl? ( >=dev-lang/perl-5.8.6-r6 !=dev-lang/perl-5.8.7 )
82 png? ( media-libs/libpng )
83 raw? ( media-gfx/ufraw )
84 tiff? ( >=media-libs/tiff-3.5.5 )
85 truetype? ( =media-libs/freetype-2*
86 corefonts? ( media-fonts/corefonts ) )
87 wmf? ( >=media-libs/libwmf-0.2.8 )
88 xml? ( >=dev-libs/libxml2-2.4.10 )
89 zlib? ( sys-libs/zlib )
90 X? (
91 x11-libs/libXext
92 x11-libs/libXt
93 x11-libs/libICE
94 x11-libs/libSM
95 svg? ( >=gnome-base/librsvg-2.9.0 )
96 )
97 !dev-perl/perlmagick
98 !sys-apps/compare
99 >=sys-devel/libtool-1.5.2-r6"
100
101 DEPEND="${RDEPEND}
102 >=sys-apps/sed-4
103 X? ( x11-proto/xextproto )"
104
105 S="${WORKDIR}/${MY_P}"
106
107 pkg_setup() {
108 # for now, only build svg support when X is enabled, as librsvg
109 # pulls in quite some X dependencies.
110 if use svg && ! use X ; then
111 elog "the svg USE-flag requires the X USE-flag set."
112 elog "disabling svg support for now."
113 fi
114
115 if use corefonts && ! use truetype ; then
116 elog "corefonts USE-flag requires the truetype USE-flag to be set."
117 elog "disabling corefonts support for now"
118 fi
119 }
120
121 src_prepare() {
122 # fix doc dir, bug 91911
123 sed -i -e \
124 's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/${PF}":g' \
125 "${S}"/configure || die
126 }
127
128 src_configure() {
129 local myconf
130 if use q32 ; then
131 myconf="${myconf} --with-quantum-depth=32"
132 elif use q8 ; then
133 myconf="${myconf} --with-quantum-depth=8"
134 else
135 myconf="${myconf} --with-quantum-depth=16"
136 fi
137
138 if use X && use svg ; then
139 myconf="${myconf} --with-rsvg"
140 else
141 myconf="${myconf} --without-rsvg"
142 fi
143
144 #openmp support only works with >=sys-devel/gcc-4.3
145 # see bug #223825
146 if use openmp && built_with_use --missing false sys-devel/gcc openmp; then
147 if [[ $(gcc-version) != "4.3" ]] ; then
148 ewarn "you need sys-devel/gcc-4.3 to be able to use openmp, disabling."
149 myconf="${myconf} --disable-openmp"
150 else
151 myconf="${myconf} --enable-openmp"
152 fi
153 else
154 elog "disabling openmp support"
155 myconf="${myconf} --disable-openmp"
156 fi
157
158 use truetype && myconf="${myconf} $(use_with corefonts windows-font-dir /usr/share/fonts/corefonts)"
159
160 econf \
161 ${myconf} \
162 --without-included-ltdl \
163 --with-ltdl-include=/usr/include \
164 --with-ltdl-lib=/usr/$(get_libdir) \
165 --with-threads \
166 --with-modules \
167 $(use_with perl) \
168 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
169 $(use_enable hdri) \
170 $(use_with !nocxx magick-plus-plus) \
171 $(use_with bzip2 bzlib) \
172 $(use_with djvu) \
173 $(use_with fontconfig) \
174 $(use_with fpx) \
175 $(use_with gs dps) \
176 $(use_with gs gslib) \
177 $(use_with graphviz gvc) \
178 $(use_with jbig) \
179 $(use_with jpeg jpeg) \
180 $(use_with jpeg2k jp2) \
181 $(use_with lcms) \
182 $(use_with openexr) \
183 $(use_with png) \
184 $(use_with svg rsvg) \
185 $(use_with tiff) \
186 $(use_with truetype freetype) \
187 $(use_with wmf) \
188 $(use_with xml) \
189 $(use_with zlib) \
190 $(use_with X x) \
191 || die "econf failed"
192 }
193
194 src_test() {
195 # make check only works after make install,
196 # --> only run if this version is already installed
197 if has_version ~${CATEGORY}/${P} ; then
198 emake -j1 check || die "make check failed"
199 fi
200 }
201
202 src_install() {
203 emake DESTDIR="${D}" install || die "Installation of files into image failed"
204
205 # dont need these files with runtime plugins
206 rm -f "${D}"/usr/$(get_libdir)/*/*/*.{la,a}
207
208 use doc || rm -r "${D}"/usr/share/doc/${PF}/{www,images,index.html}
209 dodoc NEWS.txt ChangeLog AUTHORS.txt README.txt
210
211 # Fix perllocal.pod file collision
212 use perl && fixlocalpod
213 }