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