1 |
maekke 10/09/05 13:38:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: graphviz-2.26.3-r2.ebuild |
5 |
Log: |
6 |
bug #267373 media-libs/gd needs fontconfig and truetype support enabled, bug #317543 enable sfdp, bug #328945 disable automagic gnome-base/librsvg dep |
7 |
|
8 |
(Portage version: 2.2_rc75/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.223 media-gfx/graphviz/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.223&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.223&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?r1=1.222&r2=1.223 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v |
20 |
retrieving revision 1.222 |
21 |
retrieving revision 1.223 |
22 |
diff -u -r1.222 -r1.223 |
23 |
--- ChangeLog 6 Jul 2010 14:20:27 -0000 1.222 |
24 |
+++ ChangeLog 5 Sep 2010 13:38:58 -0000 1.223 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-gfx/graphviz |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.222 2010/07/06 14:20:27 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.223 2010/09/05 13:38:58 maekke Exp $ |
30 |
+ |
31 |
+*graphviz-2.26.3-r2 (05 Sep 2010) |
32 |
+ |
33 |
+ 05 Sep 2010; Markus Meier <maekke@g.o> +graphviz-2.26.3-r2.ebuild: |
34 |
+ bug #267373 media-libs/gd needs fontconfig and truetype support enabled, |
35 |
+ bug #317543 enable sfdp, bug #328945 disable automagic gnome-base/librsvg |
36 |
+ dep |
37 |
|
38 |
06 Jul 2010; Justin Lecher <jlec@g.o> graphviz-2.26.3-r1.ebuild: |
39 |
Fix python_mod_* for EAPI=3 |
40 |
|
41 |
|
42 |
|
43 |
1.1 media-gfx/graphviz/graphviz-2.26.3-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/graphviz-2.26.3-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/graphviz-2.26.3-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: graphviz-2.26.3-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.26.3-r2.ebuild,v 1.1 2010/09/05 13:38:58 maekke Exp $ |
53 |
|
54 |
EAPI=3 |
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 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
64 |
IUSE="cairo doc examples gtk java lasi nls perl python ruby static-libs 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[fontconfig,jpeg,png,truetype] |
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[svg] |
82 |
) |
83 |
gtk? ( |
84 |
>=x11-libs/gtk+-2 |
85 |
x11-libs/libXaw |
86 |
>=x11-libs/pango-1.12 |
87 |
>=x11-libs/cairo-1.1.10 |
88 |
) |
89 |
lasi? ( media-libs/lasi ) |
90 |
ruby? ( dev-lang/ruby ) |
91 |
tcl? ( >=dev-lang/tcl-8.3 )" |
92 |
DEPEND="${RDEPEND} |
93 |
dev-util/pkgconfig |
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-1.3.38[tcl] |
101 |
>=dev-lang/swig-1.3.38 ) )" |
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 |
# flash plugin via -Tswf requires media-libs/ming-0.4. Disabled as it's |
115 |
# incomplete. |
116 |
# - cairo: |
117 |
# Needs pango for text layout, uses cairo methods to draw stuff |
118 |
# - xlib : |
119 |
# needs cairo+pango, |
120 |
# can make use of gnomeui and inotify support, |
121 |
# needs libXaw for UI |
122 |
|
123 |
# There can be swig-generated bindings for the following languages (/tclpkg/gv): |
124 |
# - c-sharp (disabled) |
125 |
# - scheme (enabled via guile) ... broken on ~x86 |
126 |
# - io (disabled) |
127 |
# - java (enabled via java) *2 |
128 |
# - lua (enabled via lua) |
129 |
# - ocaml (enabled via ocaml) |
130 |
# - perl (enabled via perl) *1 |
131 |
# - php (enabled via php) *2 |
132 |
# - python (enabled via python) *1 |
133 |
# - ruby (enabled via ruby) *1 |
134 |
# - tcl (enabled via tcl) |
135 |
# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location |
136 |
# *2 = Those bindings don't build because the paths for the headers/libs aren't |
137 |
# detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5) |
138 |
|
139 |
# There are several other tools in /tclpkg: |
140 |
# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl |
141 |
# tkspline, tkstubs ; enabled with: --with-tk |
142 |
|
143 |
# And the commands (/cmd): |
144 |
# - dot, dotty, gvpr, lefty, lneato, tools/* :) |
145 |
# Lefty needs Xaw and X to build |
146 |
|
147 |
src_prepare() { |
148 |
# ToDo: Do the same thing for examples and/or |
149 |
# write a patch for a configuration-option |
150 |
# and send it to upstream |
151 |
if ! use doc ; then |
152 |
find . -iname Makefile.am \ |
153 |
| xargs sed -i -e '/html_DATA/d' -e '/pdf_DATA/d' || die |
154 |
fi |
155 |
|
156 |
# This is an old version of libtool |
157 |
rm -rf libltdl |
158 |
sed -i -e '/libltdl/d' configure.ac || die |
159 |
sed -i -e 's/AC_LIBLTDL_CONVENIENCE/AC_LIBLTDL_INSTALLABLE/' configure.ac || die |
160 |
|
161 |
# Update this file from our local libtool which is much newer than the |
162 |
# bundled one. This allows MAKEOPTS=-j2 to work on FreeBSD. |
163 |
if has_version ">=sys-devel/libtool-2" ; then |
164 |
cp "${EPREFIX}"/usr/share/libtool/config/install-sh config || die |
165 |
else |
166 |
cp "${EPREFIX}"/usr/share/libtool/install-sh config || die |
167 |
fi |
168 |
|
169 |
# no nls, no gettext, no iconv macro, so disable it |
170 |
use nls || { sed -i -e '/^AM_ICONV/d' configure.ac || die; } |
171 |
|
172 |
# Nuke the dead symlinks for the bindings |
173 |
sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die |
174 |
|
175 |
# replace the whitespace with tabs |
176 |
sed -i -e 's: :\t:g' doc/info/Makefile.am || die |
177 |
|
178 |
eautoreconf |
179 |
} |
180 |
|
181 |
src_configure() { |
182 |
# libtool file collision, bug 276609 |
183 |
local myconf="--disable-ltdl-install" |
184 |
|
185 |
# Core functionality: |
186 |
# All of X, cairo-output, gtk need the pango+cairo functionality |
187 |
if use gtk || use cairo; then |
188 |
myconf="${myconf} --with-x" |
189 |
else |
190 |
myconf="${myconf} --without-x" |
191 |
fi |
192 |
myconf="${myconf} |
193 |
$(use_with cairo pangocairo) |
194 |
$(use_with gtk) |
195 |
$(use_with lasi) |
196 |
--with-digcola |
197 |
--with-fontconfig |
198 |
--with-freetype2 |
199 |
--with-ipsepcola |
200 |
--with-libgd |
201 |
--with-sfdp |
202 |
--without-gdk-pixbuf |
203 |
--without-ming" |
204 |
|
205 |
# new/experimental features, to be tested, disable for now |
206 |
myconf="${myconf} |
207 |
--without-cgraph |
208 |
--without-devil |
209 |
--without-digcola |
210 |
--without-ipsepcola |
211 |
--without-rsvg |
212 |
--without-smyrna" |
213 |
|
214 |
# Bindings: |
215 |
myconf="${myconf} |
216 |
--disable-guile |
217 |
--disable-io |
218 |
$(use_enable java) |
219 |
--disable-lua |
220 |
--disable-ocaml |
221 |
$(use_enable perl) |
222 |
--disable-php |
223 |
$(use_enable python) |
224 |
--disable-r |
225 |
$(use_enable ruby) |
226 |
--disable-sharp |
227 |
$(use_enable tcl)" |
228 |
|
229 |
econf \ |
230 |
--enable-ltdl \ |
231 |
$(use_enable static-libs static) \ |
232 |
${myconf} |
233 |
} |
234 |
|
235 |
src_install() { |
236 |
sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die |
237 |
|
238 |
emake DESTDIR="${D}" \ |
239 |
txtdir="${EPREFIX}"/usr/share/doc/${PF} \ |
240 |
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
241 |
htmlinfodir="${EPREFIX}"/usr/share/doc/${PF}/html/info \ |
242 |
pdfdir="${EPREFIX}"/usr/share/doc/${PF}/pdf \ |
243 |
pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \ |
244 |
install || die "emake install failed" |
245 |
|
246 |
use examples || rm -rf "${D}/usr/share/graphviz/demo" |
247 |
|
248 |
if ! use static-libs; then |
249 |
find "${ED}"/usr/$(get_libdir)/ -name '*.la' -delete || die |
250 |
fi |
251 |
|
252 |
dodoc AUTHORS ChangeLog NEWS README |
253 |
} |
254 |
|
255 |
pkg_postinst() { |
256 |
# This actually works if --enable-ltdl is passed |
257 |
# to configure |
258 |
dot -c |
259 |
use python && python_mod_optimize gv.py |
260 |
} |
261 |
|
262 |
pkg_postrm() { |
263 |
use python && python_mod_cleanup gv.py |
264 |
} |