Gentoo Archives: gentoo-commits

From: "Markus Meier (maekke)" <maekke@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/imagemagick: ChangeLog imagemagick-6.5.8.8.ebuild
Date: Mon, 28 Dec 2009 15:37:31
Message-Id: E1NPHez-0004m1-1S@stork.gentoo.org
1 maekke 09/12/28 15:37:29
2
3 Modified: ChangeLog
4 Added: imagemagick-6.5.8.8.ebuild
5 Log:
6 version bump, install perl modules into correct location by tove in bug #294590
7 (Portage version: 2.2_rc61/cvs/Linux i686)
8
9 Revision Changes Path
10 1.378 media-gfx/imagemagick/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/ChangeLog?rev=1.378&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/ChangeLog?rev=1.378&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/ChangeLog?r1=1.377&r2=1.378
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v
19 retrieving revision 1.377
20 retrieving revision 1.378
21 diff -u -r1.377 -r1.378
22 --- ChangeLog 26 Dec 2009 17:38:06 -0000 1.377
23 +++ ChangeLog 28 Dec 2009 15:37:28 -0000 1.378
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-gfx/imagemagick
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v 1.377 2009/12/26 17:38:06 pva Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/ChangeLog,v 1.378 2009/12/28 15:37:28 maekke Exp $
29 +
30 +*imagemagick-6.5.8.8 (28 Dec 2009)
31 +
32 + 28 Dec 2009; Markus Meier <maekke@g.o> +imagemagick-6.5.8.8.ebuild:
33 + version bump, install perl modules into correct location by tove in bug
34 + #294590
35
36 26 Dec 2009; Peter Volkov <pva@g.o> imagemagick-6.5.2.9.ebuild,
37 imagemagick-6.5.4.10.ebuild, imagemagick-6.5.7.0.ebuild:
38
39
40
41 1.1 media-gfx/imagemagick/imagemagick-6.5.8.8.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/imagemagick-6.5.8.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/imagemagick/imagemagick-6.5.8.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: imagemagick-6.5.8.8.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.5.8.8.ebuild,v 1.1 2009/12/28 15:37:28 maekke Exp $
51
52 EAPI="2"
53
54 inherit eutils multilib perl-app toolchain-funcs versionator
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="mirror://imagemagick/${MY_P2}.tar.bz2
63 mirror://imagemagick/legacy/${MY_P2}.tar.bz2"
64
65 # perl tests fail with userpriv
66 RESTRICT="perl? ( userpriv )"
67 LICENSE="imagemagick"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
70 IUSE="autotrace bzip2 +corefonts djvu doc fftw fontconfig fpx graphviz gs hdri
71 jbig jpeg jpeg2k lcms lqr nocxx openexr openmp perl png q8 q32 raw svg tiff
72 truetype X wmf xml zlib"
73
74 RDEPEND="
75 autotrace? ( >=media-gfx/autotrace-0.31.1 )
76 bzip2? ( app-arch/bzip2 )
77 djvu? ( app-text/djvu )
78 fftw? ( sci-libs/fftw )
79 fontconfig? ( media-libs/fontconfig )
80 fpx? ( media-libs/libfpx )
81 graphviz? ( >=media-gfx/graphviz-2.6 )
82 gs? ( app-text/ghostscript-gpl )
83 jbig? ( media-libs/jbigkit )
84 jpeg? ( >=media-libs/jpeg-6b )
85 jpeg2k? ( media-libs/jasper )
86 lcms? ( >=media-libs/lcms-1.06 )
87 lqr? ( >=media-libs/liblqr-0.1.0 )
88 openexr? ( media-libs/openexr )
89 perl? ( >=dev-lang/perl-5.8.6-r6 )
90 png? ( media-libs/libpng )
91 raw? ( media-gfx/ufraw )
92 tiff? ( >=media-libs/tiff-3.5.5 )
93 truetype? ( =media-libs/freetype-2*
94 corefonts? ( media-fonts/corefonts ) )
95 wmf? ( >=media-libs/libwmf-0.2.8 )
96 xml? ( >=dev-libs/libxml2-2.4.10 )
97 zlib? ( sys-libs/zlib )
98 X? (
99 x11-libs/libXext
100 x11-libs/libXt
101 x11-libs/libICE
102 x11-libs/libSM
103 svg? ( >=gnome-base/librsvg-2.9.0 )
104 )
105 !dev-perl/perlmagick
106 !media-gfx/graphicsmagick[imagemagick]
107 !sys-apps/compare
108 >=sys-devel/libtool-1.5.2-r6"
109
110 DEPEND="${RDEPEND}
111 >=sys-apps/sed-4
112 X? ( x11-proto/xextproto )"
113
114 S="${WORKDIR}/${MY_P2}"
115
116 pkg_setup() {
117 # for now, only build svg support when X is enabled, as librsvg
118 # pulls in quite some X dependencies.
119 if use svg && ! use X ; then
120 elog "the svg USE-flag requires the X USE-flag set."
121 elog "disabling svg support for now."
122 fi
123
124 if use corefonts && ! use truetype ; then
125 elog "corefonts USE-flag requires the truetype USE-flag to be set."
126 elog "disabling corefonts support for now."
127 fi
128 }
129
130 src_prepare() {
131 # fix doc dir, bug #91911
132 sed -i -e \
133 's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/${PF}":g' \
134 "${S}"/configure || die
135 }
136
137 src_configure() {
138 local myconf
139 if use q32 ; then
140 myconf="${myconf} --with-quantum-depth=32"
141 elif use q8 ; then
142 myconf="${myconf} --with-quantum-depth=8"
143 else
144 myconf="${myconf} --with-quantum-depth=16"
145 fi
146
147 if use X && use svg ; then
148 myconf="${myconf} --with-rsvg"
149 else
150 myconf="${myconf} --without-rsvg"
151 fi
152
153 # openmp support only works with >=sys-devel/gcc-4.3, bug #223825
154 if use openmp && version_is_at_least 4.3 $(gcc-version) ; then
155 if built_with_use --missing false =sys-devel/gcc-$(gcc-version)* openmp ; then
156 myconf="${myconf} --enable-openmp"
157 else
158 elog "disabling openmp support (requires >=sys-devel/gcc-4.3 with USE='openmp')"
159 myconf="${myconf} --disable-openmp"
160 fi
161 else
162 elog "disabling openmp support (requires >=sys-devel/gcc-4.3)"
163 myconf="${myconf} --disable-openmp"
164 fi
165
166 use truetype && myconf="${myconf} $(use_with corefonts windows-font-dir /usr/share/fonts/corefonts)"
167
168 econf \
169 ${myconf} \
170 --without-included-ltdl \
171 --with-ltdl-include=/usr/include \
172 --with-ltdl-lib=/usr/$(get_libdir) \
173 --with-threads \
174 --with-modules \
175 $(use_with perl) \
176 --with-perl-options='INSTALLDIRS=vendor' \
177 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
178 $(use_enable hdri) \
179 $(use_with !nocxx magick-plus-plus) \
180 $(use_with autotrace) \
181 $(use_with bzip2 bzlib) \
182 $(use_with djvu) \
183 $(use_with fftw) \
184 $(use_with fontconfig) \
185 $(use_with fpx) \
186 $(use_with gs dps) \
187 $(use_with gs gslib) \
188 $(use_with graphviz gvc) \
189 $(use_with jbig) \
190 $(use_with jpeg jpeg) \
191 $(use_with jpeg2k jp2) \
192 $(use_with lcms) \
193 $(use_with openexr) \
194 $(use_with png) \
195 $(use_with svg rsvg) \
196 $(use_with tiff) \
197 $(use_with truetype freetype) \
198 $(use_with wmf) \
199 $(use_with xml) \
200 $(use_with zlib) \
201 $(use_with X x)
202 }
203
204 src_test() {
205 einfo "please note that the tests will only be run when the installed"
206 einfo "version and current emerging version are the same"
207
208 if has_version ~${CATEGORY}/${P} ; then
209 emake -j1 check || die "make check failed"
210 fi
211 }
212
213 src_install() {
214 emake DESTDIR="${D}" install || die "Installation of files into image failed"
215
216 # dont need these files with runtime plugins
217 rm -f "${D}"/usr/$(get_libdir)/*/*/*.{la,a}
218
219 use doc || rm -r "${D}"/usr/share/doc/${PF}/{www,images,index.html}
220 dodoc NEWS.txt ChangeLog AUTHORS.txt README.txt
221
222 # Fix perllocal.pod file collision
223 use perl && fixlocalpod
224 }