debian/0000755000000000000000000000000012265742147007200 5ustar debian/unpack_waf.sh0000755000000000000000000000223312103167502011640 0ustar #!/bin/bash # unpack_waf - generate an unpacked instance of the waf all-in-one blob # Copyright (C) 2012 Alessio Treglia # Based on: http://wiki.debian.org/UnpackWaf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. set -e echo -n "Unpacking waf... " ./waf --help &>/dev/null WAFDIR=`ls .waf-*/` mv .waf-*/${WAFDIR} ${WAFDIR} sed -i '/^#==>$/,$d' waf rmdir .waf-* echo "OK." echo -n "Purging .pyc files... " find ${WAFDIR} -name "*.pyc" -delete echo "OK." debian/copyright0000644000000000000000000000524012103170304011111 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Ganv Upstream-Contact: David Robillard Source: http://svn.drobilla.net/lad/trunk/ganv/ Copyright: 2007-2011 David Robillard License: GPL-3+ Files: * Copyright: 1997-2000 Free Software Foundation 2007-2012 David Robillard License: GPL-3+ Files: waf Copyright: 2005-2011 Thomas Nagy License: BSD-3-clause Files: debian/* Copyright: 2012 Alessio Treglia License: GPL-3+ License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Comment: You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/get-svn-source.sh0000755000000000000000000000143312103170100012370 0ustar #!/bin/sh set -e PACKAGE=ganv BASE_REL=$(dpkg-parsechangelog 2>/dev/null | sed -ne 's/Version: \([0-9]\)~.*/\1/p') OLDDIR=${PWD} GOS_DIR=${OLDDIR}/get-orig-source SVN_COMMIT="svn log http://svn.drobilla.net/lad/trunk/${PACKAGE}/ -l 1 | sed -ne 's/r\([0-9]\+\).*/\1/p'" REPACK_SUFFIX=~dfsg0 if [ -z ${BASE_REL} ]; then echo 'Please run this script from the sources root directory.' exit 1 fi UNPACK_WAF=$PWD/debian/unpack_waf.sh rm -rf ${GOS_DIR} mkdir ${GOS_DIR} && cd ${GOS_DIR} PUGL_SVN_COMMIT=$(eval "${SVN_COMMIT}") svn export -r ${PUGL_SVN_COMMIT} http://svn.drobilla.net/lad/trunk/${PACKAGE} ${PACKAGE} cd ${PACKAGE}/ ${UNPACK_WAF} cd .. && tar cjf \ ${OLDDIR}/${PACKAGE}_${BASE_REL}~svn${PUGL_SVN_COMMIT}${REPACK_SUFFIX}.orig.tar.bz2 \ ${PACKAGE} --exclude-vcs rm -rf ${GOS_DIR} debian/changelog0000644000000000000000000000326112265742143011050 0ustar ganv (0~svn5021~dfsg0-2ubuntu2) trusty; urgency=medium * No change rebuild for new graphviz libs. -- Matthias Klose Thu, 16 Jan 2014 12:36:38 +0100 ganv (0~svn5021~dfsg0-2ubuntu1) trusty; urgency=low * Apply patch from shanipribadi (http://dev.drobilla.net/ticket/888) to fix build with libcgraph. -- Colin Watson Thu, 24 Oct 2013 10:19:22 +0100 ganv (0~svn5021~dfsg0-2build1) trusty; urgency=low * Rebuild for graphviz 2.30. -- Colin Watson Wed, 23 Oct 2013 23:48:39 +0100 ganv (0~svn5021~dfsg0-2) unstable; urgency=low * Upload to unstable. -- Alessio Treglia Tue, 07 May 2013 11:00:30 +0100 ganv (0~svn5021~dfsg0-1) experimental; urgency=low * New upstream snapshot. * Improve repackaging. * Refresh 1001-dont_run_ldconfig.patch. * Fix Vcs fields. * Update Standards-Version. -- Alessio Treglia Sat, 02 Feb 2013 10:57:30 +0000 ganv (0~svn4468~dfsg0-1) unstable; urgency=low * New upstream snapshot: - Fix issues with Gtk/Glib's header files lookup. (Closes: #674630) * Update packages descriptions. * Fix SVN commit detection in get-svn-source.sh. * Update debian/copyright. * Refresh 1001-dont_run_ldconfig.patch. -- Alessio Treglia Mon, 18 Jun 2012 12:26:06 +0200 ganv (0~svn4142~dfsg0-1) unstable; urgency=low * Imported upstream snapshot svn4124. * Fix Vcs-Browser field. -- Alessio Treglia Tue, 10 Apr 2012 11:58:54 +0200 ganv (0~svn4103~dfsg0-1) unstable; urgency=low * Initial release (Closes: #665805). -- Alessio Treglia Mon, 26 Mar 2012 12:28:29 +0200 debian/libganv-dev.install0000644000000000000000000000013412103170304012741 0ustar usr/include usr/lib/*.so usr/lib/girepository-1.0/*.gir usr/share/gir-1.0 usr/lib/pkgconfig debian/libganv-1-1.install0000644000000000000000000000001712103170304012461 0ustar usr/lib/*.so.* debian/compat0000644000000000000000000000000212103167254010365 0ustar 9 debian/patches/0000755000000000000000000000000012232163026010612 5ustar debian/patches/series0000644000000000000000000000005612232162230012024 0ustar 1001-dont_run_ldconfig.patch graphviz23.patch debian/patches/graphviz23.patch0000644000000000000000000001202312232162765013641 0ustar Description: Port to libcgraph Author: shanipribadi Origin: other, http://dev.drobilla.net/ticket/888 Forwarded: http://dev.drobilla.net/ticket/888 Last-Update: 2013-10-24 Index: b/src/Canvas.cpp =================================================================== --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -462,7 +462,7 @@ { std::ostringstream ss; ss << value; - agsafeset(subject, (char*)key, (char*)ss.str().c_str(), NULL); + agsafeset(subject, (char*)key, (char*)ss.str().c_str(), ""); } GVNodes @@ -473,12 +473,12 @@ const double dpi = gdk_screen_get_resolution(gdk_screen_get_default()); GVC_t* gvc = gvContext(); - Agraph_t* G = agopen((char*)"g", AGDIGRAPH); - agsafeset(G, (char*)"splines", (char*)"false", NULL); - agsafeset(G, (char*)"compound", (char*)"true", NULL); - agsafeset(G, (char*)"remincross", (char*)"true", NULL); - agsafeset(G, (char*)"overlap", (char*)"scale", NULL); - agsafeset(G, (char*)"nodesep", (char*)"0.05", NULL); + Agraph_t* G = agopen((char*)"g", Agdirected, NULL); + agsafeset(G, (char*)"splines", (char*)"false", ""); + agsafeset(G, (char*)"compound", (char*)"true", ""); + agsafeset(G, (char*)"remincross", (char*)"true", ""); + agsafeset(G, (char*)"overlap", (char*)"scale", ""); + agsafeset(G, (char*)"nodesep", (char*)"0.05", ""); gv_set(G, "fontsize", ganv_canvas_get_font_size(_gcanvas)); gv_set(G, "dpi", dpi); @@ -487,9 +487,9 @@ const bool flow_right = _gcanvas->direction; if (flow_right) { - 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; @@ -501,9 +501,9 @@ ss.str(""); ss << "n" << id++; const std::string node_id = ss.str(); - Agnode_t* node = agnode(G, strdup(node_id.c_str())); + Agnode_t* node = agnode(G, strdup(node_id.c_str()), true); nodes.insert(std::make_pair(*i, (Agnode_t*)node)); - agsafeset(node, (char*)"shape", (char*)"plaintext", NULL); + agsafeset(node, (char*)"shape", (char*)"plaintext", ""); gv_set(node, "width", ganv_box_get_width(GANV_BOX(*i)) / dpi); gv_set(node, "height", ganv_box_get_height(GANV_BOX(*i)) / dpi); @@ -590,16 +590,16 @@ } html += ""; - char* html_label_str = agstrdup_html((char*)html.c_str()); + char* html_label_str = agstrdup_html(G, (char*)html.c_str()); - agsafeset(node, (char*)"label", (char*)html_label_str, NULL); + agsafeset(node, (char*)"label", (char*)html_label_str, ""); } else if (GANV_IS_CIRCLE(*i)) { ss.str(""); ss << "n" << id++; - Agnode_t* node = agnode(G, strdup(ss.str().c_str())); - agsafeset(node, (char*)"shape", (char*)"circle", NULL); - agsafeset(node, (char*)"fixedsize", (char*)"true", NULL); - agsafeset(node, (char*)"margin", (char*)"0.0,0.0", NULL); + Agnode_t* node = agnode(G, strdup(ss.str().c_str()), true); + agsafeset(node, (char*)"shape", (char*)"circle", ""); + agsafeset(node, (char*)"fixedsize", (char*)"true", ""); + agsafeset(node, (char*)"margin", (char*)"0.0,0.0", ""); const double radius = ganv_circle_get_radius(GANV_CIRCLE(*i)); const double penwidth = ganv_node_get_border_width(GANV_NODE(*i)); @@ -609,14 +609,14 @@ gv_set(node, (char*)"penwidth", penwidth); if (ganv_node_get_dash_length(GANV_NODE(*i)) > 0.0) { - agsafeset(node, (char*)"style", (char*)"dashed", NULL); + agsafeset(node, (char*)"style", (char*)"dashed", ""); } const char* label = ganv_node_get_label(GANV_NODE(*i)); if (label) { - agsafeset(node, (char*)"label", (char*)label, NULL); + agsafeset(node, (char*)"label", (char*)label, ""); } else { - agsafeset(node, (char*)"label", (char*)"", NULL); + agsafeset(node, (char*)"label", (char*)"", ""); } nodes.insert(std::make_pair(*i, node)); } else { @@ -630,16 +630,16 @@ GVNodes::iterator head_i = nodes.find(edge->impl->head); if (tail_i != nodes.end() && head_i != nodes.end()) { - Agedge_t* e = agedge(G, tail_i->second, head_i->second); + Agedge_t* e = agedge(G, tail_i->second, head_i->second, NULL, true); if (GANV_IS_PORT(edge->impl->tail)) { ss.str(""); ss << edge->impl->tail << (flow_right ? ":e" : ":s"); - agsafeset(e, (char*)"tailport", (char*)ss.str().c_str(), NULL); + agsafeset(e, (char*)"tailport", (char*)ss.str().c_str(), ""); } if (GANV_IS_PORT(edge->impl->head)) { ss.str(""); ss << edge->impl->head << (flow_right ? ":w" : ":n"); - agsafeset(e, (char*)"headport", (char*)ss.str().c_str(), NULL); + agsafeset(e, (char*)"headport", (char*)ss.str().c_str(), ""); } } else { std::cerr << "Unable to find graphviz node" << std::endl; @@ -652,8 +652,8 @@ if (partner) { GVNodes::iterator p = nodes.find(partner); if (p != nodes.end()) { - Agedge_t* e = agedge(G, i->second, p->second); - agsafeset(e, (char*)"style", (char*)"dotted", NULL); + Agedge_t* e = agedge(G, i->second, p->second, NULL, true); + agsafeset(e, (char*)"style", (char*)"dotted", ""); } } } debian/patches/1001-dont_run_ldconfig.patch0000644000000000000000000000077212103170311015705 0ustar Description: Don't run ldconfig after calling the install target and save a bit of time. Author: Alessio Treglia Forwarded: not-needed --- wscript | 1 - 1 file changed, 1 deletion(-) --- ganv.orig/wscript +++ ganv/wscript @@ -170,7 +170,6 @@ def build(bld): install_path = '${LIBDIR}/girepository-1.0', rule = 'g-ir-compiler ${SRC} -o ${TGT}') - bld.add_post_fun(autowaf.run_ldconfig) def test(ctx): autowaf.pre_test(ctx, APPNAME) debian/control0000644000000000000000000000415612232163031010570 0ustar Source: ganv Section: libs Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Alessio Treglia Build-Depends: debhelper (>= 9), gir1.2-gtk-2.0, gobject-introspection, libgirepository1.0-dev, libglib2.0-dev, libgraphviz-dev, libgtk2.0-dev, libgtkmm-2.4-dev, pkg-config, python Standards-Version: 3.9.4 Homepage: http://dev.drobilla.net/browser/trunk/ganv Vcs-Git: git://anonscm.debian.org/collab-maint/ganv.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/ganv.git Package: libganv-1-1 Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: canvas widget for graph-based interfaces Ganv is an interactive Gtk canvas widget for graph-based interfaces (patchers, modular synthesizers, finite state automata, interactive graphs, etc). . Ganv provides classes for "Modules" (boxes with "Ports"), Circles, and Edges (lines that connect either Ports or Circles). The user can rearrange items, or Ganv can automatically arrange items using GraphViz. Edges can be made by the user one at a time with the mouse, or in groups using the mouse and keyboard. . This package provides the shared library. Package: libganv-dev Section: libdevel Architecture: any Depends: libganv-1-1 (= ${binary:Version}), libglib2.0-dev, libgraphviz-dev, libgtk2.0-dev, libgtkmm-2.4-dev, pkg-config, ${misc:Depends}, ${shlibs:Depends} Description: canvas widget for graph-based interfaces (development files) Ganv is an interactive Gtk canvas widget for graph-based interfaces (patchers, modular synthesizers, finite state automata, interactive graphs, etc). . This package provides the development files for the Ganv library. Package: gir1.2-ganv-1.0 Section: introspection Architecture: any Depends: ${gir:Depends}, ${misc:Depends}, ${shlibs:Depends} Description: GObject Introspection data for Ganv Ganv is an interactive Gtk canvas widget for graph-based interfaces (patchers, modular synthesizers, finite state automata, interactive graphs, etc). . This package provides the introspection data for the Ganv library. debian/rules0000755000000000000000000000101012103167254010237 0ustar #!/usr/bin/make -f export LDFLAGS+=-Wl,--as-needed WAF = ./waf %: dh $@ override_dh_auto_configure: $(WAF) configure \ --prefix=/usr \ --mandir=/usr/share/man \ --strict \ --gir \ --debug override_dh_auto_build: $(WAF) override_dh_auto_clean: $(WAF) clean || true find -name "*.pyc" -delete rm -rf build .waf* dh_auto_clean override_dh_auto_install: $(WAF) install --destdir=$(CURDIR)/debian/tmp/ override_dh_shlibdeps: dh_shlibdeps dh_girepository -l src:debian/libganv-dev/usr/share/gir-1.0 debian/source/0000755000000000000000000000000012103167254010467 5ustar debian/source/format0000644000000000000000000000001412103167254011675 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000006212103167254010604 0ustar [DEFAULT] pristine-tar = True compression = bzip2 debian/gir1.2-ganv-1.0.install0000644000000000000000000000004312103170304012771 0ustar usr/lib/girepository-1.0/*.typelib debian/watch0000644000000000000000000000010112103167254010210 0ustar # Sources are taken from http://svn.drobilla.net/lad/trunk/ganv/