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