1 |
slyfox 15/03/07 11:58:44 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: graphviz-2.38.0.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA) |
9 |
|
10 |
Revision Changes Path |
11 |
1.285 media-gfx/graphviz/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.285&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.285&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?r1=1.284&r2=1.285 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v |
20 |
retrieving revision 1.284 |
21 |
retrieving revision 1.285 |
22 |
diff -u -r1.284 -r1.285 |
23 |
--- ChangeLog 7 Mar 2015 11:29:49 -0000 1.284 |
24 |
+++ ChangeLog 7 Mar 2015 11:58:44 -0000 1.285 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-gfx/graphviz |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.284 2015/03/07 11:29:49 slyfox Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.285 2015/03/07 11:58:44 slyfox Exp $ |
30 |
+ |
31 |
+*graphviz-2.38.0 (07 Mar 2015) |
32 |
+ |
33 |
+ 07 Mar 2015; Sergei Trofimovich <slyfox@g.o> +graphviz-2.38.0.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*graphviz-2.36.0-r1 (07 Mar 2015) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 media-gfx/graphviz/graphviz-2.38.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/graphviz-2.38.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/graphviz-2.38.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: graphviz-2.38.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2015 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.38.0.ebuild,v 1.1 2015/03/07 11:58:44 slyfox Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
54 |
|
55 |
inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1 |
56 |
|
57 |
DESCRIPTION="Open Source Graph Visualization Software" |
58 |
HOMEPAGE="http://www.graphviz.org/" |
59 |
SRC_URI="http://www.graphviz.org/pub/graphviz/stable/SOURCES/${P}.tar.gz" |
60 |
|
61 |
LICENSE="CPL-1.0" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris" |
64 |
IUSE="+cairo devil doc examples gdk-pixbuf gtk gts guile java lasi nls pdf perl postscript python qt4 ruby svg static-libs tcl X elibc_FreeBSD" |
65 |
|
66 |
# Requires ksh |
67 |
RESTRICT="test" |
68 |
|
69 |
RDEPEND=" |
70 |
sys-libs/zlib |
71 |
>=dev-libs/expat-2 |
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.34[fontconfig,jpeg,png,truetype,zlib] |
76 |
>=media-libs/libpng-1.2:0 |
77 |
!<=sci-chemistry/cluster-1.3.081231 |
78 |
sys-devel/libtool |
79 |
virtual/jpeg:0 |
80 |
virtual/libiconv |
81 |
X? ( |
82 |
x11-libs/libXaw |
83 |
x11-libs/libX11 |
84 |
x11-libs/libXmu |
85 |
x11-libs/libXpm |
86 |
x11-libs/libXt |
87 |
) |
88 |
cairo? ( |
89 |
>=x11-libs/pango-1.12 |
90 |
>=x11-libs/cairo-1.1.10[svg] |
91 |
) |
92 |
devil? ( media-libs/devil[png,jpeg] ) |
93 |
postscript? ( app-text/ghostscript-gpl ) |
94 |
gtk? ( x11-libs/gtk+:2 ) |
95 |
gts? ( sci-libs/gts ) |
96 |
lasi? ( media-libs/lasi ) |
97 |
pdf? ( app-text/poppler ) |
98 |
perl? ( dev-lang/perl:= ) |
99 |
python? ( ${PYTHON_DEPS} ) |
100 |
qt4? ( |
101 |
dev-qt/qtcore:4 |
102 |
dev-qt/qtgui:4 |
103 |
) |
104 |
ruby? ( dev-lang/ruby ) |
105 |
svg? ( gnome-base/librsvg ) |
106 |
tcl? ( >=dev-lang/tcl-8.3 )" |
107 |
DEPEND="${RDEPEND} |
108 |
virtual/pkgconfig |
109 |
sys-devel/flex |
110 |
guile? ( dev-scheme/guile dev-lang/swig ) |
111 |
java? ( >=virtual/jdk-1.5 dev-lang/swig ) |
112 |
nls? ( >=sys-devel/gettext-0.14.5 ) |
113 |
perl? ( dev-lang/swig ) |
114 |
python? ( dev-lang/swig ) |
115 |
ruby? ( dev-lang/swig ) |
116 |
tcl? ( dev-lang/swig )" |
117 |
REQUIRED_USE=" |
118 |
!cairo? ( !X !gtk !postscript !lasi ) |
119 |
python? ( ${PYTHON_REQUIRED_USE} )" |
120 |
|
121 |
# Dependency description / Maintainer-Info: |
122 |
|
123 |
# Rendering is done via the following plugins (/plugins): |
124 |
# - core, dot_layout, neato_layout, gd , dot |
125 |
# the ones which are always compiled in, depend on zlib, gd |
126 |
# - gtk |
127 |
# Directly depends on gtk-2. |
128 |
# needs 'pangocairo' enabled in graphviz configuration |
129 |
# gtk-2 depends on pango, cairo and libX11 directly. |
130 |
# - gdk-pixbuf |
131 |
# Disabled, GTK-1 junk. |
132 |
# - glitz |
133 |
# Disabled, no particular reason |
134 |
# needs 'pangocairo' enabled in graphviz configuration |
135 |
# - ming |
136 |
# flash plugin via -Tswf requires media-libs/ming-0.4. Disabled as it's |
137 |
# incomplete. |
138 |
# - cairo/pango: |
139 |
# Needs pango for text layout, uses cairo methods to draw stuff |
140 |
# - xlib: |
141 |
# needs cairo+pango, |
142 |
# can make use of gnomeui and inotify support (??? unsure), |
143 |
# needs libXaw for UI |
144 |
# UI also links directly against libX11, libXmu, and libXt |
145 |
# and uses libXpm if available so we make sure it always is |
146 |
|
147 |
# There can be swig-generated bindings for the following languages (/tclpkg/gv): |
148 |
# - c-sharp (disabled) |
149 |
# - scheme (enabled via guile) ... no longer broken on ~x86 |
150 |
# - io (disabled) |
151 |
# - java (enabled via java) *2 |
152 |
# - lua (enabled via lua) |
153 |
# - ocaml (enabled via ocaml) |
154 |
# - perl (enabled via perl) *1 |
155 |
# - php (enabled via php) *2 |
156 |
# - python (enabled via python) *1 |
157 |
# - ruby (enabled via ruby) *1 |
158 |
# - tcl (enabled via tcl) |
159 |
# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location |
160 |
# *2 = Those bindings don't build because the paths for the headers/libs aren't |
161 |
# detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5) |
162 |
|
163 |
# There are several other tools in /tclpkg: |
164 |
# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl |
165 |
# tkspline, tkstubs ; enabled with: --with-tk |
166 |
|
167 |
# And the commands (/cmd): |
168 |
# - dot, dotty, gvedit, gvpr, lefty, lneato, smyrna, tools/* :) |
169 |
# sci-libs/gts can be used for some of these |
170 |
# - lefty: |
171 |
# needs Xaw and X to build |
172 |
# - gvedit (via 'qt4'): |
173 |
# based on ./configure it needs qt-core and qt-gui only |
174 |
# - smyrna : experimental opengl front-end (via 'smyrna') |
175 |
# currently disabled -- it segfaults a lot |
176 |
# needs x11-libs/gtkglext, gnome-base/libglade, media-libs/freeglut |
177 |
# sci-libs/gts, x11-libs/gtk. Also needs 'gtk','glade','glut','gts' and 'png' |
178 |
# with flags enabled at configure time |
179 |
|
180 |
pkg_setup() { |
181 |
use python && python-single-r1_pkg_setup |
182 |
|
183 |
java-pkg-opt-2_pkg_setup |
184 |
} |
185 |
|
186 |
src_prepare() { |
187 |
epatch \ |
188 |
"${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch \ |
189 |
"${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch |
190 |
|
191 |
# ToDo: Do the same thing for examples and/or |
192 |
# write a patch for a configuration-option |
193 |
# and send it to upstream |
194 |
# note - the longer sed expression removes multi-line assignments that are extended via '\' |
195 |
if ! use doc ; then |
196 |
find . -iname Makefile.am \ |
197 |
| xargs sed -i -e '/^\(html\|pdf\)_DATA.*\\[[:space:]]*$/{:m;N;s/\\\n//;tm;d}' \ |
198 |
-e '/^\(html\|pdf\)_DATA/d' || die |
199 |
fi |
200 |
|
201 |
# This is an old version of libtool |
202 |
# use the ./configure option to exclude its use, and |
203 |
# delete the dir since we don't need to eautoreconf it |
204 |
rm -rf libltdl |
205 |
|
206 |
# no nls, no gettext, no iconv macro, so disable it |
207 |
use nls || { sed -i -e '/^AM_ICONV/d' configure.ac || die; } |
208 |
|
209 |
# Nuke the dead symlinks for the bindings |
210 |
sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die |
211 |
|
212 |
# replace the whitespace with tabs |
213 |
sed -i -e 's: :\t:g' doc/info/Makefile.am || die |
214 |
|
215 |
# workaround for http://www.graphviz.org/mantisbt/view.php?id=1895 |
216 |
use elibc_FreeBSD && append-flags $(test-flags -fno-builtin-sincos) |
217 |
|
218 |
use java && append-cppflags $(java-pkg_get-jni-cflags) |
219 |
|
220 |
eautoreconf |
221 |
} |
222 |
|
223 |
src_configure() { |
224 |
# libtool file collision, bug 276609 |
225 |
local myconf="--without-included-ltdl --disable-ltdl-install" |
226 |
|
227 |
myconf="${myconf} |
228 |
$(use_with cairo pangocairo) |
229 |
$(use_with devil) |
230 |
$(use_with gtk) |
231 |
$(use_with gts) |
232 |
$(use_with qt4) |
233 |
$(use_with lasi) |
234 |
$(use_with svg rsvg) |
235 |
$(use_with X x) |
236 |
$(use_with X xaw) |
237 |
$(use_with X lefty) |
238 |
--with-digcola |
239 |
--with-fontconfig |
240 |
--with-freetype2 |
241 |
--with-ipsepcola |
242 |
--with-libgd |
243 |
--with-sfdp |
244 |
$(use_enable gdk-pixbuf) |
245 |
--without-ming" |
246 |
|
247 |
# new/experimental features, to be tested, disable for now |
248 |
myconf="${myconf} |
249 |
--with-cgraph |
250 |
--without-glitz |
251 |
--without-ipsepcola |
252 |
--without-smyrna |
253 |
--without-visio" |
254 |
|
255 |
# Bindings: |
256 |
myconf="${myconf} |
257 |
$(use_enable guile) |
258 |
--disable-io |
259 |
$(use_enable java) |
260 |
--disable-lua |
261 |
--disable-ocaml |
262 |
$(use_enable perl) |
263 |
--disable-php |
264 |
$(use_enable python) |
265 |
--disable-r |
266 |
$(use_enable ruby) |
267 |
--disable-sharp |
268 |
$(use_enable tcl)" |
269 |
|
270 |
econf \ |
271 |
--enable-ltdl \ |
272 |
--disable-silent-rules \ |
273 |
$(use_enable static-libs static) \ |
274 |
${myconf} |
275 |
} |
276 |
|
277 |
src_install() { |
278 |
sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die |
279 |
|
280 |
emake DESTDIR="${D}" \ |
281 |
txtdir="${EPREFIX}"/usr/share/doc/${PF} \ |
282 |
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
283 |
htmlinfodir="${EPREFIX}"/usr/share/doc/${PF}/html/info \ |
284 |
pdfdir="${EPREFIX}"/usr/share/doc/${PF}/pdf \ |
285 |
pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \ |
286 |
install |
287 |
|
288 |
use examples || rm -rf "${ED}"/usr/share/graphviz/demo |
289 |
|
290 |
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} + |
291 |
|
292 |
dodoc AUTHORS ChangeLog NEWS README |
293 |
|
294 |
use python && python_optimize \ |
295 |
"${D}$(python_get_sitedir)" \ |
296 |
"${D}/usr/$(get_libdir)/graphviz/python" |
297 |
} |
298 |
|
299 |
pkg_postinst() { |
300 |
# This actually works if --enable-ltdl is passed |
301 |
# to configure |
302 |
dot -c |
303 |
} |