1 |
maekke 08/01/11 17:04:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: graphviz-2.16.1-r3.ebuild |
5 |
Log: |
6 |
this revision removes cairo and X USE-fag as they are pretty redundant and should simplify things. bug #202781 should now be covered without these flags. |
7 |
(Portage version: 2.1.4_rc14) |
8 |
|
9 |
Revision Changes Path |
10 |
1.135 media-gfx/graphviz/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.135&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.135&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/ChangeLog?r1=1.134&r2=1.135 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v |
19 |
retrieving revision 1.134 |
20 |
retrieving revision 1.135 |
21 |
diff -u -r1.134 -r1.135 |
22 |
--- ChangeLog 3 Jan 2008 11:31:45 -0000 1.134 |
23 |
+++ ChangeLog 11 Jan 2008 17:04:53 -0000 1.135 |
24 |
@@ -1,6 +1,13 @@ |
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.134 2008/01/03 11:31:45 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.135 2008/01/11 17:04:53 maekke Exp $ |
29 |
+ |
30 |
+*graphviz-2.16.1-r3 (11 Jan 2008) |
31 |
+ |
32 |
+ 11 Jan 2008; Markus Meier <maekke@g.o> +graphviz-2.16.1-r3.ebuild: |
33 |
+ this revision removes cairo and X USE-fag as they are pretty redundant and |
34 |
+ should simplify things. bug #202781 should now be covered without these |
35 |
+ flags. |
36 |
|
37 |
03 Jan 2008; Markus Meier <maekke@g.o> graphviz-2.16.1-r2.ebuild: |
38 |
sanitize built_with_use checks for media-libs/gd, thanks jakub in bug #204153 |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-gfx/graphviz/graphviz-2.16.1-r3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.16.1-r3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/graphviz/graphviz-2.16.1-r3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: graphviz-2.16.1-r3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.16.1-r3.ebuild,v 1.1 2008/01/11 17:04:53 maekke Exp $ |
52 |
|
53 |
WANT_AUTOCONF=latest |
54 |
WANT_AUTOMAKE=latest |
55 |
|
56 |
inherit eutils autotools multilib python |
57 |
|
58 |
DESCRIPTION="Open Source Graph Visualization Software" |
59 |
HOMEPAGE="http://www.graphviz.org/" |
60 |
SRC_URI="http://www.graphviz.org/pub/graphviz/ARCHIVE/${P}.tar.gz" |
61 |
|
62 |
LICENSE="CPL-1.0" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
65 |
IUSE="doc examples gnome gtk jpeg nls perl png python ruby tcl tk" |
66 |
|
67 |
# Requires ksh |
68 |
RESTRICT="test" |
69 |
|
70 |
RDEPEND=" |
71 |
>=dev-libs/expat-2.0.0 |
72 |
>=dev-libs/glib-2.11.1 |
73 |
>=media-libs/fontconfig-2.3.95 |
74 |
>=media-libs/freetype-2.1.10 |
75 |
>=media-libs/gd-2.0.28 |
76 |
>=media-libs/jpeg-6b |
77 |
>=media-libs/libpng-1.2.10 |
78 |
virtual/libiconv |
79 |
ruby? ( dev-lang/ruby ) |
80 |
tcl? ( >=dev-lang/tcl-8.3 ) |
81 |
tk? ( >=dev-lang/tk-8.3 ) |
82 |
gtk? ( |
83 |
>=x11-libs/gtk+-2 |
84 |
x11-libs/libXaw |
85 |
>=x11-libs/pango-1.12 |
86 |
>=x11-libs/cairo-1.1.10 |
87 |
gnome? ( gnome-base/libgnomeui ) |
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 |
|
147 |
# bug 181147 |
148 |
local gdflags |
149 |
use png && gdflags="png" |
150 |
use jpeg && gdflags="${gdflags} jpeg" |
151 |
if [[ -n ${gdflags} ]] && ! built_with_use media-libs/gd ${gdflags} ; then |
152 |
local diemsg="Re-emerge media-libs/gd with USE=\"${gdflags}\"" |
153 |
eerror "${diemsg}" |
154 |
die "${diemsg}" |
155 |
fi |
156 |
|
157 |
# bug 202781 |
158 |
if use gtk && ! built_with_use x11-libs/cairo svg ; then |
159 |
eerror "x11-libs/cairo has to be built with svg support" |
160 |
die "emerge x11-libs/cairo with USE=\"svg\"" |
161 |
fi |
162 |
} |
163 |
|
164 |
src_unpack() { |
165 |
unpack ${A} |
166 |
cd "${S}" |
167 |
|
168 |
epatch "${FILESDIR}"/${P}-bindings.patch |
169 |
epatch "${FILESDIR}"/${P}-gcc43-missing-includes.patch |
170 |
epatch "${FILESDIR}"/${P}-python-buildfix.patch |
171 |
epatch "${FILESDIR}"/${P}-pango-optional.patch |
172 |
epatch "${FILESDIR}"/${P}-tcltk.patch |
173 |
|
174 |
# ToDo: Do the same thing for examples and/or |
175 |
# write a patch for a configuration-option |
176 |
# and send it to upstream |
177 |
if ! use doc ; then |
178 |
find . -iname Makefile.am \ |
179 |
| xargs sed -i -e '/html_DATA/d' -e '/pdf_DATA/d' || die |
180 |
fi |
181 |
|
182 |
# This is an old version of libtool |
183 |
rm -rf libltdl |
184 |
sed -i -e '/libltdl/d' configure.ac || die |
185 |
|
186 |
# Update this file from our local libtool which is much newer than the |
187 |
# bundled one. This allows MAKEOPTS=-j2 to work on FreeBSD. |
188 |
cp /usr/share/libtool/install-sh config |
189 |
|
190 |
# no nls, no gettext, no iconv macro, so disable it |
191 |
use nls || { sed -i -e '/^AM_ICONV/d' configure.ac || die; } |
192 |
|
193 |
# Nuke the dead symlinks for the bindings |
194 |
sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die |
195 |
|
196 |
eautoreconf |
197 |
} |
198 |
|
199 |
src_compile() { |
200 |
local myconf |
201 |
|
202 |
# Core functionality: |
203 |
# All of X, cairo-output, gtk need the pango+cairo functionality |
204 |
myconf="${myconf} |
205 |
$(use_with gtk) |
206 |
$(use_with gtk x) |
207 |
$(use_with gtk pangocairo) |
208 |
--without-ming |
209 |
--with-digcola |
210 |
--with-ipsepcola |
211 |
--with-fontconfig |
212 |
--with-freetype |
213 |
--with-libgd |
214 |
--without-gdk-pixbuf" |
215 |
|
216 |
use gtk && myconf="${myconf} $(use_with gnome gnomeui)" |
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@l.g.o mailing list |