Gentoo Archives: gentoo-commits

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