summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/graphviz')
-rw-r--r--media-gfx/graphviz/ChangeLog9
-rw-r--r--media-gfx/graphviz/Manifest23
-rw-r--r--media-gfx/graphviz/files/digest-graphviz-2.16.1-r33
-rw-r--r--media-gfx/graphviz/graphviz-2.16.1-r3.ebuild222
4 files changed, 248 insertions, 9 deletions
diff --git a/media-gfx/graphviz/ChangeLog b/media-gfx/graphviz/ChangeLog
index cd75fe2614eb..8c34b2920214 100644
--- a/media-gfx/graphviz/ChangeLog
+++ b/media-gfx/graphviz/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/graphviz
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.134 2008/01/03 11:31:45 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.135 2008/01/11 17:04:53 maekke Exp $
+
+*graphviz-2.16.1-r3 (11 Jan 2008)
+
+ 11 Jan 2008; Markus Meier <maekke@gentoo.org> +graphviz-2.16.1-r3.ebuild:
+ 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.
03 Jan 2008; Markus Meier <maekke@gentoo.org> graphviz-2.16.1-r2.ebuild:
sanitize built_with_use checks for media-libs/gd, thanks jakub in bug #204153
diff --git a/media-gfx/graphviz/Manifest b/media-gfx/graphviz/Manifest
index c21621e441ab..dd8f3fc7ea35 100644
--- a/media-gfx/graphviz/Manifest
+++ b/media-gfx/graphviz/Manifest
@@ -55,14 +55,18 @@ EBUILD graphviz-2.16.1-r2.ebuild 6090 RMD160 c342a50a5b31a66d51ff8af4138f88590bc
MD5 d204f3b0a67ed291efd796c3a26e9efe graphviz-2.16.1-r2.ebuild 6090
RMD160 c342a50a5b31a66d51ff8af4138f88590bc98a28 graphviz-2.16.1-r2.ebuild 6090
SHA256 d78bf7fa23d8d3eb6550a5d467a2f93f3ab0bdbc93b3c7716648b0ad403fafd1 graphviz-2.16.1-r2.ebuild 6090
+EBUILD graphviz-2.16.1-r3.ebuild 5934 RMD160 2bdb54ffd501b08e9dbae8a0e16f67742b417809 SHA1 f31d805acdf78fee3ec1db8b5f89f8d2c029f3d7 SHA256 5289f63ae6c82fa1e7919412f8de5c8efee60764d941291ddce2b58220f85149
+MD5 bf38c0d39c9408f64830a40b12703f7e graphviz-2.16.1-r3.ebuild 5934
+RMD160 2bdb54ffd501b08e9dbae8a0e16f67742b417809 graphviz-2.16.1-r3.ebuild 5934
+SHA256 5289f63ae6c82fa1e7919412f8de5c8efee60764d941291ddce2b58220f85149 graphviz-2.16.1-r3.ebuild 5934
EBUILD graphviz-2.16.1.ebuild 5978 RMD160 01fe950a684fb11e79b5386e3c9c4b34b3179f71 SHA1 5b3039c8765ad367c4479907ddca14f72b6b3057 SHA256 21bb381d34054f500f023798e00a4f739fce67bba326469e2e6babef31b22c68
MD5 cfa85a52a1e4f78fdab83cbfce9a756a graphviz-2.16.1.ebuild 5978
RMD160 01fe950a684fb11e79b5386e3c9c4b34b3179f71 graphviz-2.16.1.ebuild 5978
SHA256 21bb381d34054f500f023798e00a4f739fce67bba326469e2e6babef31b22c68 graphviz-2.16.1.ebuild 5978
-MISC ChangeLog 20834 RMD160 b2e3967c27b82f4a2ac5033718c47493a10c7b78 SHA1 acb6c7e0701527dd3dab832dca38bbd0717f2bcf SHA256 42fb524c3abda8e6df8dbae85ff244d54a011abfc8f36a8186be59e4a89d1ba3
-MD5 5971b246baaf9d5d5d6061bd896bb77e ChangeLog 20834
-RMD160 b2e3967c27b82f4a2ac5033718c47493a10c7b78 ChangeLog 20834
-SHA256 42fb524c3abda8e6df8dbae85ff244d54a011abfc8f36a8186be59e4a89d1ba3 ChangeLog 20834
+MISC ChangeLog 21106 RMD160 1f2f14967fe94dfcf18faddf6badda633e57242d SHA1 7ebaaf826116fb76edfaefc1e614d2dc14681c7e SHA256 d1a6042f0211d771d05e56f8a8252d9f20b875c674ab28a4a4fe6158a158d087
+MD5 3c03a183c67a227c416b4958a7c77b65 ChangeLog 21106
+RMD160 1f2f14967fe94dfcf18faddf6badda633e57242d ChangeLog 21106
+SHA256 d1a6042f0211d771d05e56f8a8252d9f20b875c674ab28a4a4fe6158a158d087 ChangeLog 21106
MISC metadata.xml 1540 RMD160 4652a8cc1044e37e34e06be5480a9ee6f842c333 SHA1 b493bbaade7ae395c87ada0bbef0b0f0e7f7fb08 SHA256 c2a220f962a3048cc026e4c376b6555bfd0be7b401206d0ae3d265d628f231a1
MD5 e98595ce89ff0da26058b1e6e0ce3d31 metadata.xml 1540
RMD160 4652a8cc1044e37e34e06be5480a9ee6f842c333 metadata.xml 1540
@@ -79,10 +83,13 @@ SHA256 474d5692610481a65602801a914c2e589dd2fbcbc277519f7c4660bc7e157aa2 files/di
MD5 11f1df4a73b8d8caad925943ec44a9c4 files/digest-graphviz-2.16.1-r2 250
RMD160 1867fd95a4b06aac54076fd43dabc55210e8c80f files/digest-graphviz-2.16.1-r2 250
SHA256 474d5692610481a65602801a914c2e589dd2fbcbc277519f7c4660bc7e157aa2 files/digest-graphviz-2.16.1-r2 250
+MD5 11f1df4a73b8d8caad925943ec44a9c4 files/digest-graphviz-2.16.1-r3 250
+RMD160 1867fd95a4b06aac54076fd43dabc55210e8c80f files/digest-graphviz-2.16.1-r3 250
+SHA256 474d5692610481a65602801a914c2e589dd2fbcbc277519f7c4660bc7e157aa2 files/digest-graphviz-2.16.1-r3 250
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.8 (GNU/Linux)
+Version: GnuPG v2.0.7 (GNU/Linux)
-iEYEARECAAYFAkd8x/EACgkQkKaRLQcq0GKyhQCgkl3e7SNN8kw0/xfPwznZoewe
-UysAnjz0iIxpvQ/UyDiikw2emRDzlW0k
-=huf0
+iD8DBQFHh6H+kKaRLQcq0GIRArDJAJ0T6brwHzmP9+mpKF0FxmD3Av6HAACgrDjP
+76RnRAe5ZrmXXi0lEtdgAQU=
+=kzsu
-----END PGP SIGNATURE-----
diff --git a/media-gfx/graphviz/files/digest-graphviz-2.16.1-r3 b/media-gfx/graphviz/files/digest-graphviz-2.16.1-r3
new file mode 100644
index 000000000000..5439614ce5d3
--- /dev/null
+++ b/media-gfx/graphviz/files/digest-graphviz-2.16.1-r3
@@ -0,0 +1,3 @@
+MD5 8952fb2a627b38e38ed429a3a9d5cc5c graphviz-2.16.1.tar.gz 8076271
+RMD160 6d0f23fa176a1bef7ee0ca48cf1b700fe6cbfb42 graphviz-2.16.1.tar.gz 8076271
+SHA256 32c1a185ba39961935f104cc47d2bceea327c0de8c5636edc6ab83ac3c0c56d1 graphviz-2.16.1.tar.gz 8076271
diff --git a/media-gfx/graphviz/graphviz-2.16.1-r3.ebuild b/media-gfx/graphviz/graphviz-2.16.1-r3.ebuild
new file mode 100644
index 000000000000..389dc2f7d86f
--- /dev/null
+++ b/media-gfx/graphviz/graphviz-2.16.1-r3.ebuild
@@ -0,0 +1,222 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+WANT_AUTOCONF=latest
+WANT_AUTOMAKE=latest
+
+inherit eutils autotools multilib python
+
+DESCRIPTION="Open Source Graph Visualization Software"
+HOMEPAGE="http://www.graphviz.org/"
+SRC_URI="http://www.graphviz.org/pub/graphviz/ARCHIVE/${P}.tar.gz"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="doc examples gnome gtk jpeg nls perl png python ruby tcl tk"
+
+# Requires ksh
+RESTRICT="test"
+
+RDEPEND="
+ >=dev-libs/expat-2.0.0
+ >=dev-libs/glib-2.11.1
+ >=media-libs/fontconfig-2.3.95
+ >=media-libs/freetype-2.1.10
+ >=media-libs/gd-2.0.28
+ >=media-libs/jpeg-6b
+ >=media-libs/libpng-1.2.10
+ virtual/libiconv
+ ruby? ( dev-lang/ruby )
+ tcl? ( >=dev-lang/tcl-8.3 )
+ tk? ( >=dev-lang/tk-8.3 )
+ gtk? (
+ >=x11-libs/gtk+-2
+ x11-libs/libXaw
+ >=x11-libs/pango-1.12
+ >=x11-libs/cairo-1.1.10
+ gnome? ( gnome-base/libgnomeui )
+ )"
+
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.20
+ nls? ( >=sys-devel/gettext-0.14.5 )
+ perl? ( dev-lang/swig )
+ python? ( dev-lang/swig )
+ ruby? ( dev-lang/swig )
+ tcl? ( dev-lang/swig )"
+
+# Dependency description / Maintainer-Info:
+
+# Rendering is done via the following plugins (/plugins):
+# - core, dot_layout, neato_layout, gd , dot
+# the ones which are always compiled in, depend on zlib, gd
+# - gtk
+# Directly depends on gtk-2.
+# gtk-2 depends on pango, cairo and libX11 directly.
+# - gdk-pixbuf
+# Disabled, GTK-1 junk.
+# - ming
+# Disabled, depends on ming-3.0 which is still p.masked.
+# - cairo:
+# Needs pango for text layout, uses cairo methods to draw stuff
+# - xlib :
+# needs cairo+pango,
+# can make use of gnomeui and inotify support,
+# needs libXaw for UI
+
+# There can be swig-generated bindings for the following languages (/tclpkg/gv):
+# - c-sharp (disabled)
+# - scheme (enabled via guile) ... broken on ~x86
+# - io (disabled)
+# - java (enabled via java) *2
+# - lua (enabled via lua)
+# - ocaml (enabled via ocaml)
+# - perl (enabled via perl) *1
+# - php (enabled via php) *2
+# - python (enabled via python) *1
+# - ruby (enabled via ruby) *1
+# - tcl (enabled via tcl)
+# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location
+# *2 = Those bindings don't build because the paths for the headers/libs aren't
+# detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5)
+
+# There are several other tools in /tclpkg:
+# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl
+# tkspline, tkstubs ; enabled with: --with-tk
+
+# And the commands (/cmd):
+# - dot, dotty, gvpr, lefty, lneato, tools/* :)
+# Lefty needs Xaw and X to build
+
+pkg_setup() {
+ if use tcl && ! built_with_use dev-lang/swig tcl ; then
+ eerror "SWIG has to be built with tcl support."
+ die "Missing tcl USE-flag for dev-lang/swig"
+ fi
+
+ # bug 181147
+ local gdflags
+ use png && gdflags="png"
+ use jpeg && gdflags="${gdflags} jpeg"
+ if [[ -n ${gdflags} ]] && ! built_with_use media-libs/gd ${gdflags} ; then
+ local diemsg="Re-emerge media-libs/gd with USE=\"${gdflags}\""
+ eerror "${diemsg}"
+ die "${diemsg}"
+ fi
+
+ # bug 202781
+ if use gtk && ! built_with_use x11-libs/cairo svg ; then
+ eerror "x11-libs/cairo has to be built with svg support"
+ die "emerge x11-libs/cairo with USE=\"svg\""
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-bindings.patch
+ epatch "${FILESDIR}"/${P}-gcc43-missing-includes.patch
+ epatch "${FILESDIR}"/${P}-python-buildfix.patch
+ epatch "${FILESDIR}"/${P}-pango-optional.patch
+ epatch "${FILESDIR}"/${P}-tcltk.patch
+
+ # ToDo: Do the same thing for examples and/or
+ # write a patch for a configuration-option
+ # and send it to upstream
+ if ! use doc ; then
+ find . -iname Makefile.am \
+ | xargs sed -i -e '/html_DATA/d' -e '/pdf_DATA/d' || die
+ fi
+
+ # This is an old version of libtool
+ rm -rf libltdl
+ sed -i -e '/libltdl/d' configure.ac || die
+
+ # Update this file from our local libtool which is much newer than the
+ # bundled one. This allows MAKEOPTS=-j2 to work on FreeBSD.
+ cp /usr/share/libtool/install-sh config
+
+ # no nls, no gettext, no iconv macro, so disable it
+ use nls || { sed -i -e '/^AM_ICONV/d' configure.ac || die; }
+
+ # Nuke the dead symlinks for the bindings
+ sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die
+
+ eautoreconf
+}
+
+src_compile() {
+ local myconf
+
+ # Core functionality:
+ # All of X, cairo-output, gtk need the pango+cairo functionality
+ myconf="${myconf}
+ $(use_with gtk)
+ $(use_with gtk x)
+ $(use_with gtk pangocairo)
+ --without-ming
+ --with-digcola
+ --with-ipsepcola
+ --with-fontconfig
+ --with-freetype
+ --with-libgd
+ --without-gdk-pixbuf"
+
+ use gtk && myconf="${myconf} $(use_with gnome gnomeui)"
+
+ # Bindings:
+ myconf="${myconf}
+ --disable-guile
+ --disable-java
+ --disable-io
+ --disable-lua
+ --disable-ocaml
+ $(use_enable perl)
+ --disable-php
+ $(use_enable python)
+ $(use_enable ruby)
+ --disable-sharp
+ $(use_enable tcl)
+ $(use_enable tk)"
+
+ econf \
+ --enable-ltdl \
+ ${myconf} \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die
+
+ emake DESTDIR="${D}" \
+ txtdir=/usr/share/doc/${PF} \
+ htmldir=/usr/share/doc/${PF}/html \
+ htmlinfodir=/usr/share/doc/${PF}/html/info \
+ pdfdir=/usr/share/doc/${PF}/pdf \
+ pkgconfigdir=/usr/$(get_libdir)/pkgconfig \
+ install || die "emake install failed"
+
+ use examples || rm -rf "${D}/usr/share/graphviz/demo"
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ # This actually works if --enable-ltdl is passed
+ # to configure
+ dot -c
+ if use python ; then
+ python_mod_optimize
+ fi
+}
+
+pkg_postrm() {
+ if use python ; then
+ python_mod_cleanup
+ fi
+}