summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-10-23 15:56:26 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-10-23 15:56:26 +0000
commit4f129a47a6e4ad0b29d6d789f6e323e1cd97cc33 (patch)
treefba41278fc18514f14fad572c33ddccec6db8052 /graphics
parentUpdate to 1.1.8. (diff)
Add ruby-graph, graph-related Ruby classes.
Notes
Notes: svn path=/head/; revision=49128
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/ruby-graph/Makefile34
-rw-r--r--graphics/ruby-graph/distinfo1
-rw-r--r--graphics/ruby-graph/files/patch-install.rb16
-rw-r--r--graphics/ruby-graph/pkg-comment1
-rw-r--r--graphics/ruby-graph/pkg-descr10
-rw-r--r--graphics/ruby-graph/pkg-plist6
7 files changed, 69 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index baff65cff677..175f7143ba73 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -240,6 +240,7 @@
SUBDIR += ruby-gdk_imlib
SUBDIR += ruby-gdk_pixbuf
SUBDIR += ruby-gimp
+ SUBDIR += ruby-graph
SUBDIR += ruby-libpng
SUBDIR += ruby-ming
SUBDIR += ruby-opengl
diff --git a/graphics/ruby-graph/Makefile b/graphics/ruby-graph/Makefile
new file mode 100644
index 000000000000..7b522244cb42
--- /dev/null
+++ b/graphics/ruby-graph/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: GraphR
+# Date created: 24 October 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= graph
+PORTVERSION= 0.1.1
+CATEGORIES= graphics ruby
+MASTER_SITES= http://rockit.sourceforge.net/subprojects/graphr/
+MASTER_SITE_SUBDIR= knu
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}r-${PORTVERSION:S/./-/g}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+RUN_DEPENDS= ${LOCALBASE}/bin/dot:${PORTSDIR}/graphics/graphviz
+
+USE_RUBY= yes
+
+NO_BUILD= yes
+
+do-install:
+ cd ${WRKSRC}; ${RUBY} install.rb
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/ruby-graph/distinfo b/graphics/ruby-graph/distinfo
new file mode 100644
index 000000000000..ba1283dad823
--- /dev/null
+++ b/graphics/ruby-graph/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/graphr-0-1-1.tar.gz) = 37700fd1085ab061181769b6e93d1873
diff --git a/graphics/ruby-graph/files/patch-install.rb b/graphics/ruby-graph/files/patch-install.rb
new file mode 100644
index 000000000000..48e2d2ad877f
--- /dev/null
+++ b/graphics/ruby-graph/files/patch-install.rb
@@ -0,0 +1,16 @@
+--- install.rb.orig Tue Oct 23 23:42:01 2001
++++ install.rb Wed Oct 24 00:52:40 2001
+@@ -18,12 +18,11 @@
+ def install
+ begin
+ File.makedirs( DESTDIR )
+- Dir.chdir(SRC_BASE) do
++ Dir.chdir(SRC_BASE)
+ Find.find(SRC) do |file|
+ dst = File.join( INSTDIR, file )
+ File.install(file, dst, 0644, true) if file =~ /.rb$/
+ end
+- end
+ rescue
+ puts $!
+ end
diff --git a/graphics/ruby-graph/pkg-comment b/graphics/ruby-graph/pkg-comment
new file mode 100644
index 000000000000..dcc7a28a39e2
--- /dev/null
+++ b/graphics/ruby-graph/pkg-comment
@@ -0,0 +1 @@
+Graph-related Ruby classes
diff --git a/graphics/ruby-graph/pkg-descr b/graphics/ruby-graph/pkg-descr
new file mode 100644
index 000000000000..6cb399d3e671
--- /dev/null
+++ b/graphics/ruby-graph/pkg-descr
@@ -0,0 +1,10 @@
+GraphR - Graph-related classes
+
+ * DirectedGraph - fairly extensive directed graph class
+ * DotGraphFormatter - output a graph in GraphViz's dot format
+
+GraphR is very simple but might grow to support additional features of
+dot.
+
+Author: Robert Feldt <feldt@ce.chalmers.se>
+WWW: http://rockit.sourceforge.net/subprojects/graphr/
diff --git a/graphics/ruby-graph/pkg-plist b/graphics/ruby-graph/pkg-plist
new file mode 100644
index 000000000000..7e05f25d43a4
--- /dev/null
+++ b/graphics/ruby-graph/pkg-plist
@@ -0,0 +1,6 @@
+%%RUBY_SITELIBDIR%%/graph/base_extensions.rb
+%%RUBY_SITELIBDIR%%/graph/directed_graph.rb
+%%RUBY_SITELIBDIR%%/graph/graphviz_dot.rb
+@dirrm %%RUBY_SITELIBDIR%%/graph
+%%PORTDOCS%%%%RUBY_DOCDIR%%/graph/README
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/graph