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