diff --git a/x11-libs/flowcanvas/Manifest b/x11-libs/flowcanvas/Manifest new file mode 100644 index 000000000..0eee88ac1 --- /dev/null +++ b/x11-libs/flowcanvas/Manifest @@ -0,0 +1 @@ +DIST flowcanvas-0.7.1.tar.bz2 139471 SHA256 047928d858fd1e9296a9984de7468c86bbe23fc42e286691b8f273541402c596 diff --git a/x11-libs/flowcanvas/files/graphviz-2.30.patch b/x11-libs/flowcanvas/files/graphviz-2.30.patch new file mode 100644 index 000000000..1338a6832 --- /dev/null +++ b/x11-libs/flowcanvas/files/graphviz-2.30.patch @@ -0,0 +1,56 @@ +--- src/Canvas.cpp.orig 2011-01-10 00:19:58.000000000 +0100 ++++ src/Canvas.cpp 2013-03-16 13:45:17.797462753 +0100 +@@ -1253,21 +1253,21 @@ + */ + + GVC_t* gvc = gvContext(); +- Agraph_t* G = agopen((char*)"g", AGDIGRAPH); ++ Agraph_t* G = agopen((char*)"g", Agdirected, NULL); + + nodes.gvc = gvc; + nodes.G = G; + + if (_direction == HORIZONTAL) +- agraphattr(G, (char*)"rankdir", (char*)"LR"); ++ agattr(G, AGRAPH, (char*)"rankdir", (char*)"LR"); + else +- agraphattr(G, (char*)"rankdir", (char*)"TD"); ++ agattr(G, AGRAPH, (char*)"rankdir", (char*)"TD"); + + unsigned id = 0; + for (ItemList::const_iterator i = _items.begin(); i != _items.end(); ++i) { + std::ostringstream ss; + ss << "n" << id++; +- Agnode_t* node = agnode(G, strdup(ss.str().c_str())); ++ Agnode_t* node = agnode(G, strdup(ss.str().c_str()), true); + if (boost::dynamic_pointer_cast(*i)) { + ss.str(""); + ss << (*i)->width() / 96.0; +@@ -1310,7 +1310,7 @@ + + assert(src_node && dst_node); + +- Agedge_t* edge = agedge(G, src_node, dst_node); ++ Agedge_t* edge = agedge(G, src_node, dst_node, NULL, true); + + if (use_length_hints && c->length_hint() != 0) { + std::ostringstream len_ss; +@@ -1325,7 +1325,7 @@ + if (partner) { + GVNodes::iterator p = nodes.find(partner); + if (p != nodes.end()) +- agedge(G, i->second, p->second); ++ agedge(G, i->second, p->second, NULL, true); + } + } + +--- wscript.orig 2011-01-12 00:09:31.000000000 +0100 ++++ wscript 2013-03-16 14:19:43.577462602 +0100 +@@ -41,6 +41,7 @@ + conf.check_tool('compiler_cxx') + autowaf.check_pkg(conf, 'libgvc', uselib_store='AGRAPH', + atleast_version='2.8', mandatory=False) ++ conf.env['LIB_AGRAPH'] = ['cgraph' if l == 'graph' else l for l in conf.env['LIB_AGRAPH']] + autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GLIBMM', + atleast_version='2.10.0', mandatory=True) + autowaf.check_pkg(conf, 'libgnomecanvasmm-2.6', uselib_store='GNOMECANVASMM', diff --git a/x11-libs/flowcanvas/files/ldconfig2.patch b/x11-libs/flowcanvas/files/ldconfig2.patch new file mode 100644 index 000000000..d86e65eaf --- /dev/null +++ b/x11-libs/flowcanvas/files/ldconfig2.patch @@ -0,0 +1,10 @@ +Index: flowcanvas-0.7.1/wscript +=================================================================== +--- flowcanvas-0.7.1.orig/wscript ++++ flowcanvas-0.7.1/wscript +@@ -85,5 +85,3 @@ def build(bld): + + # Documentation + autowaf.build_dox(bld, 'FLOWCANVAS', FLOWCANVAS_VERSION, top, out) +- +- bld.add_post_fun(autowaf.run_ldconfig) diff --git a/x11-libs/flowcanvas/flowcanvas-0.7.1.ebuild b/x11-libs/flowcanvas/flowcanvas-0.7.1.ebuild new file mode 100644 index 000000000..cacaba22b --- /dev/null +++ b/x11-libs/flowcanvas/flowcanvas-0.7.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/flowcanvas/flowcanvas-0.7.1.ebuild,v 1.6 2012/06/01 19:59:46 axs Exp $ + +EAPI=4 + +inherit waf-utils python eutils + +DESCRIPTION="Gtkmm/Gnomecanvasmm widget for boxes and lines environments" +HOMEPAGE="http://wiki.drobilla.net/FlowCanvas" +SRC_URI="http://download.drobilla.net/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug doc" + +RDEPEND="dev-libs/boost + >=dev-cpp/gtkmm-2.4:2.4 + >=dev-cpp/libgnomecanvasmm-2.6:2.6 + >=media-gfx/graphviz-2.30" +DEPEND="${RDEPEND} + =dev-lang/python-2* + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +DOCS=( AUTHORS README ChangeLog ) + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + epatch "${FILESDIR}/ldconfig2.patch" + epatch "${FILESDIR}/graphviz-2.30.patch" +} + +src_configure() { + waf-utils_src_configure \ + --htmldir=/usr/share/doc/${PF}/html \ + $(use debug && echo "--debug") \ + $(use doc && echo "--doc") +} diff --git a/x11-libs/flowcanvas/metadata.xml b/x11-libs/flowcanvas/metadata.xml new file mode 100644 index 000000000..6292b8c1f --- /dev/null +++ b/x11-libs/flowcanvas/metadata.xml @@ -0,0 +1,10 @@ + + + +proaudio + + FlowCanvas is an interactive Gtkmm/Gnomecanvasmm widget for "boxes and + lines" environments (ie modular synths or interactive finite state automata + diagrams). + +