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