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/graphviz: graphviz-2.22.2.ebuild graphviz-2.22.1.ebuild ChangeLog graphviz-2.22.2-r1.ebuild metadata.xml
Date: Sun, 05 Apr 2009 20:00:17
Message-Id: E1LqYVp-0007u0-Fn@stork.gentoo.org
1 maekke 09/04/05 20:00:13
2
3 Modified: graphviz-2.22.2.ebuild graphviz-2.22.1.ebuild
4 ChangeLog metadata.xml
5 Added: graphviz-2.22.2-r1.ebuild
6 Log:
7 disable automagic media-libs/lasi dep, create a new revision with lasi USE-flag, bug #264362
8 (Portage version: 2.2_rc28/cvs/Linux i686)
9
10 Revision Changes Path
11 1.2 media-gfx/graphviz/graphviz-2.22.2.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2.ebuild?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2.ebuild?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2.ebuild?r1=1.1&r2=1.2
16
17 Index: graphviz-2.22.2.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2.ebuild,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- graphviz-2.22.2.ebuild 19 Mar 2009 18:18:29 -0000 1.1
24 +++ graphviz-2.22.2.ebuild 5 Apr 2009 20:00:13 -0000 1.2
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2009 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2.ebuild,v 1.1 2009/03/19 18:18:29 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2.ebuild,v 1.2 2009/04/05 20:00:13 maekke Exp $
30
31 EAPI="2"
32
33 @@ -148,7 +148,8 @@
34 --with-ipsepcola
35 --with-libgd
36 --without-gdk-pixbuf
37 - --without-ming"
38 + --without-ming
39 + --without-lasi"
40
41 # new/experimental features, to be tested, disable for now
42 myconf="${myconf}
43
44
45
46 1.3 media-gfx/graphviz/graphviz-2.22.1.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.1.ebuild?rev=1.3&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.1.ebuild?rev=1.3&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.1.ebuild?r1=1.2&r2=1.3
51
52 Index: graphviz-2.22.1.ebuild
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.22.1.ebuild,v
55 retrieving revision 1.2
56 retrieving revision 1.3
57 diff -u -r1.2 -r1.3
58 --- graphviz-2.22.1.ebuild 12 Mar 2009 06:03:18 -0000 1.2
59 +++ graphviz-2.22.1.ebuild 5 Apr 2009 20:00:13 -0000 1.3
60 @@ -1,6 +1,6 @@
61 # Copyright 1999-2009 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.22.1.ebuild,v 1.2 2009/03/12 06:03:18 maekke Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.22.1.ebuild,v 1.3 2009/04/05 20:00:13 maekke Exp $
65
66 EAPI="2"
67
68 @@ -148,7 +148,8 @@
69 --with-ipsepcola
70 --with-libgd
71 --without-gdk-pixbuf
72 - --without-ming"
73 + --without-ming
74 + --without-lasi"
75
76 # new/experimental features, to be tested, disable for now
77 myconf="${myconf}
78
79
80
81 1.189 media-gfx/graphviz/ChangeLog
82
83 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.189&view=markup
84 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.189&content-type=text/plain
85 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/ChangeLog?r1=1.188&r2=1.189
86
87 Index: ChangeLog
88 ===================================================================
89 RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v
90 retrieving revision 1.188
91 retrieving revision 1.189
92 diff -u -r1.188 -r1.189
93 --- ChangeLog 19 Mar 2009 18:18:29 -0000 1.188
94 +++ ChangeLog 5 Apr 2009 20:00:13 -0000 1.189
95 @@ -1,6 +1,14 @@
96 # ChangeLog for media-gfx/graphviz
97 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
98 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.188 2009/03/19 18:18:29 maekke Exp $
99 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.189 2009/04/05 20:00:13 maekke Exp $
100 +
101 +*graphviz-2.22.2-r1 (05 Apr 2009)
102 +
103 + 05 Apr 2009; Markus Meier <maekke@g.o> metadata.xml,
104 + graphviz-2.22.1.ebuild, graphviz-2.22.2.ebuild,
105 + +graphviz-2.22.2-r1.ebuild:
106 + disable automagic media-libs/lasi dep, create a new revision with lasi
107 + USE-flag, bug #264362
108
109 *graphviz-2.22.2 (19 Mar 2009)
110
111
112
113
114 1.3 media-gfx/graphviz/metadata.xml
115
116 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/metadata.xml?rev=1.3&view=markup
117 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/metadata.xml?rev=1.3&content-type=text/plain
118 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/metadata.xml?r1=1.2&r2=1.3
119
120 Index: metadata.xml
121 ===================================================================
122 RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/metadata.xml,v
123 retrieving revision 1.2
124 retrieving revision 1.3
125 diff -u -r1.2 -r1.3
126 --- metadata.xml 22 Aug 2008 21:56:34 -0000 1.2
127 +++ metadata.xml 5 Apr 2009 20:00:13 -0000 1.3
128 @@ -32,6 +32,9 @@
129 <flag name='cgraph'>
130 Enables cgraph (PostScript plotting library in C) library
131 </flag>
132 + <flag name='lasi'>
133 + Enables PostScript output via <pkg>media-libs/lasi</pkg> library
134 + </flag>
135 <flag name='pango'>
136 Enables the rendering of the graphs using pango &amp; cairo (with antialiasing support)
137 </flag>
138
139
140
141 1.1 media-gfx/graphviz/graphviz-2.22.2-r1.ebuild
142
143 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2-r1.ebuild?rev=1.1&view=markup
144 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2-r1.ebuild?rev=1.1&content-type=text/plain
145
146 Index: graphviz-2.22.2-r1.ebuild
147 ===================================================================
148 # Copyright 1999-2009 Gentoo Foundation
149 # Distributed under the terms of the GNU General Public License v2
150 # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.22.2-r1.ebuild,v 1.1 2009/04/05 20:00:13 maekke Exp $
151
152 EAPI="2"
153
154 inherit eutils autotools multilib python
155
156 DESCRIPTION="Open Source Graph Visualization Software"
157 HOMEPAGE="http://www.graphviz.org/"
158 SRC_URI="http://www.graphviz.org/pub/graphviz/ARCHIVE/${P}.tar.gz"
159
160 LICENSE="CPL-1.0"
161 SLOT="0"
162 KEYWORDS="~amd64 ~arm ~mips ~ppc ~s390 ~sh ~sparc-fbsd ~x86 ~x86-fbsd"
163 IUSE="cairo doc examples gnome gtk java jpeg lasi nls perl png python ruby tcl"
164
165 # Requires ksh
166 RESTRICT="test"
167
168 RDEPEND="
169 >=dev-libs/expat-2.0.0
170 >=dev-libs/glib-2.11.1
171 >=media-libs/fontconfig-2.3.95
172 >=media-libs/freetype-2.1.10
173 >=media-libs/gd-2.0.28[png?,jpeg?]
174 >=media-libs/jpeg-6b
175 >=media-libs/libpng-1.2.10
176 virtual/libiconv
177 cairo? (
178 x11-libs/libXaw
179 >=x11-libs/pango-1.12
180 >=x11-libs/cairo-1.1.10[svg]
181 )
182 gtk? (
183 >=x11-libs/gtk+-2
184 x11-libs/libXaw
185 >=x11-libs/pango-1.12
186 >=x11-libs/cairo-1.1.10
187 gnome? ( gnome-base/libgnomeui )
188 )
189 lasi? ( media-libs/lasi )
190 ruby? ( dev-lang/ruby )
191 tcl? ( >=dev-lang/tcl-8.3 )"
192
193 DEPEND="${RDEPEND}
194 >=dev-util/pkgconfig-0.20
195 sys-devel/flex
196 java? ( dev-lang/swig )
197 nls? ( >=sys-devel/gettext-0.14.5 )
198 perl? ( dev-lang/swig )
199 python? ( dev-lang/swig )
200 ruby? ( dev-lang/swig )
201 tcl? ( || ( <dev-lang/swig-1.3.38[tcl]
202 >=dev-lang/swig-1.3.38 ) )"
203
204 # Dependency description / Maintainer-Info:
205
206 # Rendering is done via the following plugins (/plugins):
207 # - core, dot_layout, neato_layout, gd , dot
208 # the ones which are always compiled in, depend on zlib, gd
209 # - gtk
210 # Directly depends on gtk-2.
211 # gtk-2 depends on pango, cairo and libX11 directly.
212 # - gdk-pixbuf
213 # Disabled, GTK-1 junk.
214 # - ming
215 # Disabled, depends on ming-3.0 which is still p.masked.
216 # - cairo:
217 # Needs pango for text layout, uses cairo methods to draw stuff
218 # - xlib :
219 # needs cairo+pango,
220 # can make use of gnomeui and inotify support,
221 # needs libXaw for UI
222
223 # There can be swig-generated bindings for the following languages (/tclpkg/gv):
224 # - c-sharp (disabled)
225 # - scheme (enabled via guile) ... broken on ~x86
226 # - io (disabled)
227 # - java (enabled via java) *2
228 # - lua (enabled via lua)
229 # - ocaml (enabled via ocaml)
230 # - perl (enabled via perl) *1
231 # - php (enabled via php) *2
232 # - python (enabled via python) *1
233 # - ruby (enabled via ruby) *1
234 # - tcl (enabled via tcl)
235 # *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location
236 # *2 = Those bindings don't build because the paths for the headers/libs aren't
237 # detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5)
238
239 # There are several other tools in /tclpkg:
240 # gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl
241 # tkspline, tkstubs ; enabled with: --with-tk
242
243 # And the commands (/cmd):
244 # - dot, dotty, gvpr, lefty, lneato, tools/* :)
245 # Lefty needs Xaw and X to build
246
247 src_prepare() {
248 # ToDo: Do the same thing for examples and/or
249 # write a patch for a configuration-option
250 # and send it to upstream
251 if ! use doc ; then
252 find . -iname Makefile.am \
253 | xargs sed -i -e '/html_DATA/d' -e '/pdf_DATA/d' || die
254 fi
255
256 # This is an old version of libtool
257 rm -rf libltdl
258 sed -i -e '/libltdl/d' configure.ac || die
259
260 # Update this file from our local libtool which is much newer than the
261 # bundled one. This allows MAKEOPTS=-j2 to work on FreeBSD.
262 if has_version ">=sys-devel/libtool-2" ; then
263 cp /usr/share/libtool/config/install-sh config || die
264 else
265 cp /usr/share/libtool/install-sh config || die
266 fi
267
268 # no nls, no gettext, no iconv macro, so disable it
269 use nls || { sed -i -e '/^AM_ICONV/d' configure.ac || die; }
270
271 # Nuke the dead symlinks for the bindings
272 sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die
273
274 # replace the whitespace with tabs
275 sed -i -e 's: :\t:g' doc/info/Makefile.am || die
276
277 eautoreconf
278 }
279
280 src_configure() {
281 local myconf
282
283 # Core functionality:
284 # All of X, cairo-output, gtk need the pango+cairo functionality
285 if use gtk || use cairo ; then
286 myconf="${myconf} --with-x"
287 else
288 myconf="${myconf} --without-x"
289 fi
290 myconf="${myconf}
291 $(use_with cairo pangocairo)
292 $(use_with gtk)
293 $(use_with lasi)
294 --with-digcola
295 --with-fontconfig
296 --with-freetype2
297 --with-ipsepcola
298 --with-libgd
299 --without-gdk-pixbuf
300 --without-ming"
301
302 # new/experimental features, to be tested, disable for now
303 myconf="${myconf}
304 --without-digcola
305 --without-ipsepcola
306 --without-sfdp
307 --without-smyrna"
308
309 use gtk && myconf="${myconf} $(use_with gnome gnomeui)"
310
311 # Bindings:
312 myconf="${myconf}
313 --disable-guile
314 --disable-io
315 $(use_enable java)
316 --disable-lua
317 --disable-ocaml
318 $(use_enable perl)
319 --disable-php
320 $(use_enable python)
321 --disable-r
322 $(use_enable ruby)
323 --disable-sharp
324 $(use_enable tcl)"
325
326 econf \
327 --enable-ltdl \
328 ${myconf}
329 }
330
331 src_install() {
332 sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die
333
334 emake DESTDIR="${D}" \
335 txtdir=/usr/share/doc/${PF} \
336 htmldir=/usr/share/doc/${PF}/html \
337 htmlinfodir=/usr/share/doc/${PF}/html/info \
338 pdfdir=/usr/share/doc/${PF}/pdf \
339 pkgconfigdir=/usr/$(get_libdir)/pkgconfig \
340 install || die "emake install failed"
341
342 use examples || rm -rf "${D}/usr/share/graphviz/demo"
343
344 dodoc AUTHORS ChangeLog NEWS README
345 }
346
347 pkg_postinst() {
348 # This actually works if --enable-ltdl is passed
349 # to configure
350 dot -c
351 if use python ; then
352 python_mod_optimize
353 fi
354 }
355
356 pkg_postrm() {
357 if use python ; then
358 python_mod_cleanup
359 fi
360 }