diff options
author | minskim <minskim@pkgsrc.org> | 2006-05-04 01:29:57 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2006-05-04 01:29:57 +0000 |
commit | 20112fc26018c381f8737f107aeabdd35912ff89 (patch) | |
tree | d477404f09aa978932bdb5724f54e79f094ae1a4 /devel/ruby-stream/Makefile | |
parent | f3a2054e6c88363eb28e8bc21b0a6dc8d032d9ec (diff) | |
download | pkgsrc-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/Makefile')
-rw-r--r-- | devel/ruby-stream/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
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" |