aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-01-09 01:52:53 +0800
committermiwi <miwi@FreeBSD.org>2009-01-09 01:52:53 +0800
commitfeb9464bcefd3b2a6813a0474e47bdf40c5cdb26 (patch)
tree1638f9ffa675f995ff4f7e86ee4722122598660a
parent70e8f66c70439ebaae2f2869968758d15d1e8679 (diff)
downloadfreebsd-ports-gnome-feb9464bcefd3b2a6813a0474e47bdf40c5cdb26.tar.gz
freebsd-ports-gnome-feb9464bcefd3b2a6813a0474e47bdf40c5cdb26.tar.zst
freebsd-ports-gnome-feb9464bcefd3b2a6813a0474e47bdf40c5cdb26.zip
Trollop is a commandline option parser for Ruby that gets out of your way.
One line of code per option is all you need to write. For that, you get a nice automatically-generated help page (fit to your screen size!), robust option parsing, command subcompletion, and sensible defaults for everything you don't specify. WWW: http://trollop.rubyforge.org/ PR: ports/130240 Submitted by: Dennis Herrmann <adox at mcx2.org>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-trollop/Makefile28
-rw-r--r--devel/rubygem-trollop/distinfo3
-rw-r--r--devel/rubygem-trollop/pkg-descr7
4 files changed, 39 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 2164c5167364..980967c109bb 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2495,6 +2495,7 @@
SUBDIR += rubygem-sequel
SUBDIR += rubygem-stream
SUBDIR += rubygem-transactionsimple
+ SUBDIR += rubygem-trollop
SUBDIR += rubygem-tzinfo
SUBDIR += rubygem-uuid
SUBDIR += rubygem-validatable
diff --git a/devel/rubygem-trollop/Makefile b/devel/rubygem-trollop/Makefile
new file mode 100644
index 000000000000..dc9bf1f7b288
--- /dev/null
+++ b/devel/rubygem-trollop/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: rubygem-trollop
+# Date created: 06/01/2009
+# Whom: Dennis Herrmann <adox@mcx2.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= trollop
+PORTVERSION= 1.10.2
+CATEGORIES= devel rubygems
+MASTER_SITES= RF/trollop
+
+MAINTAINER= adox@mcx2.org
+COMMENT= A commandline option parser for Ruby that gets out of your way
+
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+USE_RAKE= yes
+
+post-install:
+ @${ECHO} ${GEM_CACHE} >> ${TMPPLIST}
+ @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST}
+ @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST}
+ @${ECHO} ${GEM_SPEC} >> ${TMPPLIST}
+ @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST}
+ @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST}
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-trollop/distinfo b/devel/rubygem-trollop/distinfo
new file mode 100644
index 000000000000..2000ad1d9cdf
--- /dev/null
+++ b/devel/rubygem-trollop/distinfo
@@ -0,0 +1,3 @@
+MD5 (rubygem/trollop-1.10.2.gem) = 02d53f41bd58f74047128be180455a65
+SHA256 (rubygem/trollop-1.10.2.gem) = 6bdd4b961f2ab74379aa6174221b110a479aa87d79f85ef2c3e09c48309f3d9b
+SIZE (rubygem/trollop-1.10.2.gem) = 18432
diff --git a/devel/rubygem-trollop/pkg-descr b/devel/rubygem-trollop/pkg-descr
new file mode 100644
index 000000000000..90f845dffa36
--- /dev/null
+++ b/devel/rubygem-trollop/pkg-descr
@@ -0,0 +1,7 @@
+Trollop is a commandline option parser for Ruby that gets out of your way.
+One line of code per option is all you need to write. For that, you get a
+nice automatically-generated help page (fit to your screen size!), robust
+option parsing, command subcompletion, and sensible defaults for everything
+you don't specify.
+
+WWW: http://trollop.rubyforge.org/