Importing ruby-optparse.

Yet another command line option parser for Ruby.
This commit is contained in:
taca 2001-06-30 23:25:16 +00:00
parent 50852a42ad
commit 89466a9a26
4 changed files with 87 additions and 0 deletions

View file

@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.1.1.1 2001/06/30 23:25:16 taca Exp $
# FreeBSD: ports/devel/ruby-optparse/Makefile,v 1.10 2001/01/26 03:42:37 knu Exp
DISTNAME= optparse-0.8.2
PKGNAME= ${RUBY_PKGNAMEPREFIX}${DISTNAME}
CATEGORIES= devel
MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
MAINTAINER= taca@netbsd.org
HOMEPAGE= http://member.nifty.ne.jp/nokada/ruby.html
COMMENT= Yet another command line option parser for Ruby
DIST_SUBDIR= ruby
USE_RUBY= yes
USE_GMAKE= yes
NO_BUILD= # empty
MAKEFILE= GNUmakefile
INSTALL_TARGET= install-more
SRCS= optparse.rb optparse/shellwords.rb optparse/time.rb \
optparse/uri.rb
DOCS_EN= ChangeLog README.en optparse.en.rd optparse.rlog
DOCS_JA= FIRSTSTEP.ja.rd README.ja optparse.ja.rd
EXAMPLES= cmd-ls.rb cmd.rb getopts.test.en opttest.rb
EXAMPLES_JA= getopts.test rd/jfold.rb
do-install:
${INSTALL_DATA_DIR} ${RUBY_SITELIBDIR}/optparse
.for f in ${SRCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}/${f}
.endfor
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/optparse/ja
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse/ja
.endfor
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/optparse/ja
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse
.endfor
.for f in ${EXAMPLES_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse/ja
.endfor
.include "../../lang/ruby-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2001/06/30 23:25:16 taca Exp $
SHA1 (ruby/optparse-0.8.2.tar.gz) = 4630b2b198f2a49c05aa32ece3f27f9956d15f86
Size (ruby/optparse-0.8.2.tar.gz) = 82855 bytes

View file

@ -0,0 +1,11 @@
OptionParser is yet another command line option parser for Ruby.
Features:
* describe option definition with its handler
* specify argument format and convert automatically
* can emit options' summaries
* can add options on the fly
* completion for option/argument
Author: Nobuyoshi.Nakada <nobu.nokada@softhome.net>
WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=OptionParser

View file

@ -0,0 +1,23 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/30 23:25:16 taca Exp $
${RUBY_SITELIBDIR}/optparse.rb
${RUBY_SITELIBDIR}/optparse/shellwords.rb
${RUBY_SITELIBDIR}/optparse/time.rb
${RUBY_SITELIBDIR}/optparse/uri.rb
@dirrm ${RUBY_SITELIBDIR}/optparse
${RUBY_DOCDIR}/optparse/ChangeLog
${RUBY_DOCDIR}/optparse/README.en
${RUBY_DOCDIR}/optparse/ja/FIRSTSTEP.ja.rd
${RUBY_DOCDIR}/optparse/ja/README.ja
${RUBY_DOCDIR}/optparse/ja/optparse.ja.rd
@dirrm ${RUBY_DOCDIR}/optparse/ja
${RUBY_DOCDIR}/optparse/optparse.en.rd
${RUBY_DOCDIR}/optparse/optparse.rlog
@dirrm ${RUBY_DOCDIR}/optparse
${RUBY_EXAMPLESDIR}/optparse/cmd-ls.rb
${RUBY_EXAMPLESDIR}/optparse/cmd.rb
${RUBY_EXAMPLESDIR}/optparse/getopts.test.en
${RUBY_EXAMPLESDIR}/optparse/ja/getopts.test
${RUBY_EXAMPLESDIR}/optparse/ja/jfold.rb
@dirrm ${RUBY_EXAMPLESDIR}/optparse/ja
${RUBY_EXAMPLESDIR}/optparse/opttest.rb
@dirrm ${RUBY_EXAMPLESDIR}/optparse