summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-05-03 23:11:03 +0000
committerminskim <minskim@pkgsrc.org>2006-05-03 23:11:03 +0000
commit5eceb539d56c873ac24618baf987f2c879281ec6 (patch)
treed55ddc81b8d872f84d19fe1816812dd26d0a2611 /devel
parentbf77321dafe5c1db58fa4de2d7b9825cc99bf05b (diff)
downloadpkgsrc-5eceb539d56c873ac24618baf987f2c879281ec6.tar.gz
Import ruby-rgl.
RGL is a framework for graph data structures and algorithms. The design of the library is much influenced by the Boost Graph Library (BGL) which is written in C++ heavily using its template mechanism. RGL provides some general purpose graph classes that conform to the interface for how the structure of a graph can be accessed using a generic interface that hides the details of the graph data structure implementation, but they are not meant to be the only graph classes. As in BGL, the main contribution of the RGL is the formulation of this interface.
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-rgl/DESCR9
-rw-r--r--devel/ruby-rgl/Makefile30
-rw-r--r--devel/ruby-rgl/PLIST95
-rw-r--r--devel/ruby-rgl/distinfo6
-rw-r--r--devel/ruby-rgl/patches/patch-aa26
5 files changed, 166 insertions, 0 deletions
diff --git a/devel/ruby-rgl/DESCR b/devel/ruby-rgl/DESCR
new file mode 100644
index 00000000000..331b0dc3d8e
--- /dev/null
+++ b/devel/ruby-rgl/DESCR
@@ -0,0 +1,9 @@
+RGL is a framework for graph data structures and algorithms. The
+design of the library is much influenced by the Boost Graph Library
+(BGL) which is written in C++ heavily using its template mechanism.
+RGL provides some general purpose graph classes that conform to the
+interface for how the structure of a graph can be accessed using a
+generic interface that hides the details of the graph data structure
+implementation, but they are not meant to be the only graph classes.
+As in BGL, the main contribution of the RGL is the formulation of this
+interface.
diff --git a/devel/ruby-rgl/Makefile b/devel/ruby-rgl/Makefile
new file mode 100644
index 00000000000..e2d4ce802b3
--- /dev/null
+++ b/devel/ruby-rgl/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/05/03 23:11:03 minskim Exp $
+
+DISTNAME= rgl-0.2.3
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
+CATEGORIES= devel
+MASTER_SITES= http://rubyforge.org/frs/download.php/3959/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://rgl.rubyforge.org/
+COMMENT= Framework for graph data structures and algorithms
+
+NO_BUILD= yes
+NO_CONFIGURE= yes
+USE_RUBY_INSTALL= yes
+
+.include "../../lang/ruby/modules.mk"
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/rgl
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/rgl
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/rgl
+ ${CP} -R ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/rgl
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RUBY_EXAMPLESDIR}/rgl
+ ${FIND} ${RUBY_EXAMPLESDIR}/rgl -type d -print | \
+ ${XARGS} ${CHMOD} ${PKGDIRMODE}
+ ${FIND} ${RUBY_EXAMPLESDIR}/rgl -type f -print | \
+ ${XARGS} ${CHMOD} ${SHAREMODE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-rgl/PLIST b/devel/ruby-rgl/PLIST
new file mode 100644
index 00000000000..cff7a4491fb
--- /dev/null
+++ b/devel/ruby-rgl/PLIST
@@ -0,0 +1,95 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/03 23:11:03 minskim Exp $
+${RUBY_SITELIBDIR}/rgl/adjacency.rb
+${RUBY_SITELIBDIR}/rgl/base.rb
+${RUBY_SITELIBDIR}/rgl/connected_components.rb
+${RUBY_SITELIBDIR}/rgl/dot.rb
+${RUBY_SITELIBDIR}/rgl/graphxml.rb
+${RUBY_SITELIBDIR}/rgl/implicit.rb
+${RUBY_SITELIBDIR}/rgl/mutable.rb
+${RUBY_SITELIBDIR}/rgl/rdot.rb
+${RUBY_SITELIBDIR}/rgl/topsort.rb
+${RUBY_SITELIBDIR}/rgl/transitiv_closure.rb
+${RUBY_SITELIBDIR}/rgl/traversal.rb
+${RUBY_DOCDIR}/rgl/README
+${RUBY_EXAMPLESDIR}/rgl/canvas.rb
+${RUBY_EXAMPLESDIR}/rgl/codegraph
+${RUBY_EXAMPLESDIR}/rgl/debgraph.rb
+${RUBY_EXAMPLESDIR}/rgl/example.jpg
+${RUBY_EXAMPLESDIR}/rgl/examples.rb
+${RUBY_EXAMPLESDIR}/rgl/graph.dot
+${RUBY_EXAMPLESDIR}/rgl/insel.rb
+${RUBY_EXAMPLESDIR}/rgl/module_graph.jpg
+${RUBY_EXAMPLESDIR}/rgl/north.rb
+${RUBY_EXAMPLESDIR}/rgl/north/Graph.log
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.0.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.1.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.11.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.12.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.13.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.14.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.15.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.16.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.17.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.19.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.2.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.20.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.22.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.24.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.25.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.27.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.28.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.29.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.3.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.30.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.31.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.34.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.37.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.38.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.39.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.4.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.40.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.41.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.42.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.45.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.46.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.5.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.50.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.56.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.57.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.58.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.6.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.60.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.61.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.62.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.68.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.69.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.7.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.70.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.71.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.72.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.74.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.75.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.78.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.79.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.8.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.80.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.82.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.83.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.85.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.86.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.88.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.89.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.9.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.90.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.91.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.92.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.93.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.10.94.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.12.8.graphml
+${RUBY_EXAMPLESDIR}/rgl/north/g.14.9.graphml
+${RUBY_EXAMPLESDIR}/rgl/north2.rb
+${RUBY_EXAMPLESDIR}/rgl/rdep-rgl.rb
+@dirrm ${RUBY_EXAMPLESDIR}/rgl/north
+@dirrm ${RUBY_EXAMPLESDIR}/rgl
+@dirrm ${RUBY_DOCDIR}/rgl
+@dirrm ${RUBY_SITELIBDIR}/rgl
diff --git a/devel/ruby-rgl/distinfo b/devel/ruby-rgl/distinfo
new file mode 100644
index 00000000000..7b9b2152457
--- /dev/null
+++ b/devel/ruby-rgl/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/05/03 23:11:03 minskim Exp $
+
+SHA1 (rgl-0.2.3.tgz) = 375197d8961a70081e0e8c833cc60dcfa10ab0e9
+RMD160 (rgl-0.2.3.tgz) = c51cac4f587e3090cbc392ce6b63340da8ecc464
+Size (rgl-0.2.3.tgz) = 66055 bytes
+SHA1 (patch-aa) = e93a19819a9a924da18abe6a100603a852d0c285
diff --git a/devel/ruby-rgl/patches/patch-aa b/devel/ruby-rgl/patches/patch-aa
new file mode 100644
index 00000000000..a7ea9407cb4
--- /dev/null
+++ b/devel/ruby-rgl/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/05/03 23:11:03 minskim Exp $
+
+--- install.rb.orig 2004-10-08 10:13:14.000000000 -0500
++++ install.rb
+@@ -8,8 +8,20 @@ require 'find'
+ SRC_BASE = 'lib'
+ SRC = 'rgl'
+
++include Config
+
+-INSTDIR = File.join Config::CONFIG['sitedir']
++$sitedir = CONFIG["sitelibdir"]
++unless $sitedir
++ version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
++ $libdir = File.join(CONFIG["libdir"], "ruby", version)
++ $sitedir = $:.find {|x| x =~ /site_ruby/ }
++ if !$sitedir
++ $sitedir = File.join($libdir, "site_ruby")
++ elsif $sitedir !~ Regexp.quote(version)
++ $sitedir = File.join($sitedir, version)
++ end
++end
++INSTDIR = $sitedir
+ DESTDIR = File.join INSTDIR, SRC
+
+ opts = GetoptLong.new( [ "--uninstall", "-u", GetoptLong::NO_ARGUMENT ] )