Gentoo Archives: gentoo-commits

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