Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

24
math/graphopt/DESCR Normal file
View File

@@ -0,0 +1,24 @@
In contrast to Graphviz and other graph optimizers, graphopt does
not use a heuristic approach to layout optimization. Instead, it
uses basic principles of physics to iteratively determine optimal
layout. Each node is given mass and an electric charge, and each
edge is represented as a spring. Node mass, electric charge,
optimal spring length, and the spring constant are tweakable in
the gui in realtime.
For most graphs, this is all that is needed - hit 'go' and the
graph organizes itself much as the analagous real-life system would
if constrained to two dimensions. For more complex graphs, some
fiddling with the physical parameters at different stages of
optimization usually does the trick.
To accomodate very large graphs, an additional mechanism called
layering was added. When a graph is loaded, nodes are assigned to
layers based on their relative positions. During optimization,
you can choose to hide any number of layers. Any nodes assigned
to a layer lower than the selected layer are not only hidden, but
neither their electric charges nor the forces of the springs attached
to them are figured into the forces acting on the visible nodes.
In effect, those nodes cease to exist, and a smaller graph is
allowed to lay itself out without being constrained by an excessive
number of nodes.

22
math/graphopt/Makefile Normal file
View File

@@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.24 2012/09/11 23:04:22 asau Exp $
#
DISTNAME= graphopt-0.4.1
PKGREVISION= 5
CATEGORIES= math graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=graphopt/}
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/graphopt/
COMMENT= Optimize graph layouts
USE_LANGUAGES= c c++
GNU_CONFIGURE= YES
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/graphopt
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/graphopt
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

10
math/graphopt/PLIST Normal file
View File

@@ -0,0 +1,10 @@
@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:05:44 joerg Exp $
bin/graphopt
share/doc/graphopt/README
share/pixmaps/graphopt/new.xpm
share/pixmaps/graphopt/open.xpm
share/pixmaps/graphopt/save.xpm
share/pixmaps/graphopt/save_as.xpm
share/pixmaps/graphopt/export.xpm
share/pixmaps/graphopt/import.xpm
share/pixmaps/graphopt/quit.xpm

11
math/graphopt/distinfo Normal file
View File

@@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.6 2011/11/24 13:53:06 joerg Exp $
SHA1 (graphopt-0.4.1.tgz) = f9648737604b6d0b403081e59447e39956e6d024
RMD160 (graphopt-0.4.1.tgz) = 78e10751481ed6ae3cf6dc784c210d1a3b73013b
Size (graphopt-0.4.1.tgz) = 77612 bytes
SHA1 (patch-src_classes_dotImporter.cc) = 5bdc265514d334cdbedeaad1a6d259d19561cb9e
SHA1 (patch-src_classes_nodes.cc) = 4ad2a227be7bdaa248dad7cab3321100c79cc3d3
SHA1 (patch-src_classes_optFileReader.cc) = 00411ffdabc3bc8f5292d561c2c037f96b292c8c
SHA1 (patch-src_classes_optFileWriter.cc) = fb7226c0df80b675d8b8e741df67aab367fea90b
SHA1 (patch-src_classes_psExporter.cc) = b9c6caed4a0f2fb887a7b0bce10e8bfacb7088f5
SHA1 (patch-src_classes_visioExporter.cc) = 7c23259e0947ea1d6c7dcc6a18b58bc221981fd3

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-src_classes_dotImporter.cc,v 1.1 2011/11/24 13:53:06 joerg Exp $
--- src/classes/dotImporter.cc.orig 2011-11-24 01:07:22.000000000 +0000
+++ src/classes/dotImporter.cc
@@ -1,5 +1,6 @@
#include "dotImporter.h"
#include <string.h>
+#include <stdlib.h>
#include <gtk/gtk.h>
#include "../interface.h"

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-src_classes_nodes.cc,v 1.1 2011/11/24 13:53:06 joerg Exp $
--- src/classes/nodes.cc.orig 2011-11-24 01:07:04.000000000 +0000
+++ src/classes/nodes.cc
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "nodes.h"

View File

@@ -0,0 +1,10 @@
$NetBSD: patch-src_classes_optFileReader.cc,v 1.1 2011/11/24 13:53:06 joerg Exp $
--- src/classes/optFileReader.cc.orig 2011-11-24 01:08:20.000000000 +0000
+++ src/classes/optFileReader.cc
@@ -1,4 +1,5 @@
#include "optFileReader.h"
+#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include "../interface.h"

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_classes_optFileWriter.cc,v 1.1 2011/11/24 13:53:06 joerg Exp $
--- src/classes/optFileWriter.cc.orig 2011-11-24 01:07:58.000000000 +0000
+++ src/classes/optFileWriter.cc
@@ -1,5 +1,6 @@
#include "optFileWriter.h"
-
+#include <stdlib.h>
+#include <string.h>
optFileWriter::optFileWriter(char *what_file, nodes *what_nodes) {
filename = strdup(what_file);

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_classes_psExporter.cc,v 1.1 2011/11/24 13:53:06 joerg Exp $
--- src/classes/psExporter.cc.orig 2011-11-24 01:08:36.000000000 +0000
+++ src/classes/psExporter.cc
@@ -1,5 +1,6 @@
#include "psExporter.h"
-
+#include <stdlib.h>
+#include <string.h>
psExporter::psExporter(char *what_file, nodes *what_nodes) {
filename = strdup(what_file);

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_classes_visioExporter.cc,v 1.1 2011/11/24 13:53:06 joerg Exp $
--- src/classes/visioExporter.cc.orig 2011-11-24 01:07:35.000000000 +0000
+++ src/classes/visioExporter.cc
@@ -1,5 +1,6 @@
#include "visioExporter.h"
-
+#include <stdlib.h>
+#include <string.h>
visioExporter::visioExporter(char *what_file, nodes *what_nodes) {
filename = strdup(what_file);