pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-stream Import ruby-stream.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3885cfbe48f7
branches:  trunk
changeset: 512257:3885cfbe48f7
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu May 04 01:29:57 2006 +0000

description:
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:

 devel/ruby-stream/DESCR            |   6 ++++++
 devel/ruby-stream/Makefile         |  30 ++++++++++++++++++++++++++++++
 devel/ruby-stream/PLIST            |   8 ++++++++
 devel/ruby-stream/distinfo         |   6 ++++++
 devel/ruby-stream/patches/patch-aa |  13 +++++++++++++
 5 files changed, 63 insertions(+), 0 deletions(-)

diffs (83 lines):

diff -r 2b3d270c6fc6 -r 3885cfbe48f7 devel/ruby-stream/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-stream/DESCR   Thu May 04 01:29:57 2006 +0000
@@ -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 -r 2b3d270c6fc6 -r 3885cfbe48f7 devel/ruby-stream/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-stream/Makefile        Thu May 04 01:29:57 2006 +0000
@@ -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@localhost
+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 -r 2b3d270c6fc6 -r 3885cfbe48f7 devel/ruby-stream/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-stream/PLIST   Thu May 04 01:29:57 2006 +0000
@@ -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 -r 2b3d270c6fc6 -r 3885cfbe48f7 devel/ruby-stream/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-stream/distinfo        Thu May 04 01:29:57 2006 +0000
@@ -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 -r 2b3d270c6fc6 -r 3885cfbe48f7 devel/ruby-stream/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-stream/patches/patch-aa        Thu May 04 01:29:57 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index