--- /dev/null
+Index: src/Canvas.cpp
+===================================================================
+--- src/Canvas.cpp (revision 5479)
++++ src/Canvas.cpp (revision 5480)
+@@ -760,6 +760,18 @@
+ }
+ #endif
+
++inline uint64_t
++get_monotonic_time()
++{
++#if GLIB_CHECK_VERSION(2, 28, 0)
++ return g_get_monotonic_time();
++#else
++ GTimeVal time;
++ g_get_current_time(&time);
++ return time.tv_sec + time.tv_usec;
++#endif
++}
++
+ #ifdef GANV_FDGL
+
+ inline Region
+@@ -788,18 +800,6 @@
+ b->impl->force = vec_sub(b->impl->force, f);
+ }
+
+-inline uint64_t
+-get_monotonic_time()
+-{
+-#if GLIB_CHECK_VERSION(2, 28, 0)
+- return g_get_monotonic_time();
+-#else
+- GTimeVal time;
+- g_get_current_time(&time);
+- return time.tv_sec + time.tv_usec;
+-#endif
+-}
+-
+ gboolean
+ GanvCanvasImpl::layout_iteration()
+ {
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE='threads(+)'
-inherit waf-utils python-any-r1
+inherit eutils waf-utils python-any-r1
DESCRIPTION="A GTK+ widget for interactive graph-like environments"
HOMEPAGE="http://drobilla.net/software/ganv/"
DOCS=( AUTHORS NEWS README )
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-fdgl.patch
+}
+
src_configure() {
waf-utils_src_configure \
$(use graphviz || echo "--no-graphviz") \
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <maintainer>
+ <email>karl.j.linden@gmail.com</email>
+ <name>Karl Lindén</name>
+ </maintainer>
<herd>proaudio</herd>
<use>
<flag name="fdgl">Use experimental force-directed graph layout</flag>