summaryrefslogtreecommitdiff
path: root/devel/ruby-stream
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-05-04 01:29:57 +0000
committerminskim <minskim@pkgsrc.org>2006-05-04 01:29:57 +0000
commit20112fc26018c381f8737f107aeabdd35912ff89 (patch)
treed477404f09aa978932bdb5724f54e79f094ae1a4 /devel/ruby-stream
parentf3a2054e6c88363eb28e8bc21b0a6dc8d032d9ec (diff)
downloadpkgsrc-20112fc26018c381f8737f107aeabdd35912ff89.tar.gz
Import ruby-stream.
Module Stream defines an interface for external iterators. A stream can be seen as an iterator on a sequence of objects x1, ..., xn. The state of the stream is uniquely determined by the following methods: at_beginning?, at_end?, current, and peek. State changes are done with the following operations: set_to_begin, set_to_end, forward, and backward.
Diffstat (limited to 'devel/ruby-stream')
-rw-r--r--devel/ruby-stream/DESCR6
-rw-r--r--devel/ruby-stream/Makefile30
-rw-r--r--devel/ruby-stream/PLIST8
-rw-r--r--devel/ruby-stream/distinfo6
-rw-r--r--devel/ruby-stream/patches/patch-aa13
5 files changed, 63 insertions, 0 deletions
diff --git a/devel/ruby-stream/DESCR b/devel/ruby-stream/DESCR
new file mode 100644
index 00000000000..e6a6a8bd128
--- /dev/null
+++ b/devel/ruby-stream/DESCR
@@ -0,0 +1,6 @@
+Module Stream defines an interface for external iterators. A stream
+can be seen as an iterator on a sequence of objects x1, ..., xn. The
+state of the stream is uniquely determined by the following methods:
+at_beginning?, at_end?, current, and peek. State changes are done
+with the following operations: set_to_begin, set_to_end, forward, and
+backward.
diff --git a/devel/ruby-stream/Makefile b/devel/ruby-stream/Makefile
new file mode 100644
index 00000000000..d051afcdfb1
--- /dev/null
+++ b/devel/ruby-stream/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/05/04 01:29:57 minskim Exp $
+
+DISTNAME= stream-0.5
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
+CATEGORIES= devel
+MASTER_SITES= http://rubyforge.org/frs/download.php/639/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://rgl.rubyforge.org/stream/
+COMMENT= Interface for external iterators
+
+NO_BUILD= yes
+NO_CONFIGURE= yes
+USE_RUBY_INSTALL= yes
+
+.include "../../lang/ruby/modules.mk"
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/stream
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/stream
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/stream
+ ${CP} -R ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/stream
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RUBY_EXAMPLESDIR}/stream
+ ${FIND} ${RUBY_EXAMPLESDIR}/stream -type d -print | \
+ ${XARGS} ${CHMOD} ${PKGDIRMODE}
+ ${FIND} ${RUBY_EXAMPLESDIR}/stream -type f -print | \
+ ${XARGS} ${CHMOD} ${SHAREMODE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-stream/PLIST b/devel/ruby-stream/PLIST
new file mode 100644
index 00000000000..b6a9cb61842
--- /dev/null
+++ b/devel/ruby-stream/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/04 01:29:57 minskim Exp $
+${RUBY_SITELIBDIR}/generator2stream.rb
+${RUBY_SITELIBDIR}/stream.rb
+${RUBY_DOCDIR}/stream/README
+${RUBY_EXAMPLESDIR}/stream/examples.rb
+${RUBY_EXAMPLESDIR}/stream/streamtester.rb
+@dirrm ${RUBY_EXAMPLESDIR}/stream
+@dirrm ${RUBY_DOCDIR}/stream
diff --git a/devel/ruby-stream/distinfo b/devel/ruby-stream/distinfo
new file mode 100644
index 00000000000..ac59902e09e
--- /dev/null
+++ b/devel/ruby-stream/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/05/04 01:29:57 minskim Exp $
+
+SHA1 (stream-0.5.tgz) = 4c2ec418e978d126ba2556a727b258e3ab55c2ee
+RMD160 (stream-0.5.tgz) = 019d3c671aaf80866bc085aad735f951622c23b0
+Size (stream-0.5.tgz) = 11633 bytes
+SHA1 (patch-aa) = 837d25246c92e5c5e3d16f806ef5de4a9cf9afbf
diff --git a/devel/ruby-stream/patches/patch-aa b/devel/ruby-stream/patches/patch-aa
new file mode 100644
index 00000000000..b41e87a0b5f
--- /dev/null
+++ b/devel/ruby-stream/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/05/04 01:29:57 minskim Exp $
+
+--- install.rb.orig 2004-05-13 16:30:03.000000000 -0700
++++ install.rb
+@@ -5,7 +5,7 @@ require 'ftools'
+ require 'find'
+
+ SRC_BASE = 'lib'
+-INSTDIR = File.join Config::CONFIG['sitedir']
++INSTDIR = File.join Config::CONFIG['sitelibdir']
+
+ def install
+ begin