diff --git a/devel/Makefile b/devel/Makefile index fe252a9c481d..68708d9bab3d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6023,6 +6023,7 @@ SUBDIR += rubygem-georuby SUBDIR += rubygem-get_process_mem SUBDIR += rubygem-getopt + SUBDIR += rubygem-getoptlong SUBDIR += rubygem-gettext SUBDIR += rubygem-gettext-setup SUBDIR += rubygem-gettext32 diff --git a/devel/rubygem-getoptlong/Makefile b/devel/rubygem-getoptlong/Makefile new file mode 100644 index 000000000000..ae7b5c491918 --- /dev/null +++ b/devel/rubygem-getoptlong/Makefile @@ -0,0 +1,20 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= getoptlong +PORTVERSION= 0.1.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= GetoptLong for Ruby + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= gem +USE_RUBY= yes + +NO_ARCH= yes + +.include diff --git a/devel/rubygem-getoptlong/distinfo b/devel/rubygem-getoptlong/distinfo new file mode 100644 index 000000000000..859ea2017323 --- /dev/null +++ b/devel/rubygem-getoptlong/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1588335942 +SHA256 (rubygem/getoptlong-0.1.0.gem) = 6f7d9769f124976b09fce7841b4332e216a708dd5548d30bb535974d7223ed78 +SIZE (rubygem/getoptlong-0.1.0.gem) = 11264 diff --git a/devel/rubygem-getoptlong/pkg-descr b/devel/rubygem-getoptlong/pkg-descr new file mode 100644 index 000000000000..ace72a099f03 --- /dev/null +++ b/devel/rubygem-getoptlong/pkg-descr @@ -0,0 +1,11 @@ +The GetoptLong class allows you to parse command line options similarly to the +GNU getopt_long() C library call. Note, however, that GetoptLong is a pure Ruby +implementation. + +GetoptLong allows for POSIX-style options like --file as well as single letter +options like -f + +The empty option -- (two minus symbols) is used to end option processing. This +can be particularly important if options have optional arguments. + +WWW: https://github.com/ruby/getoptlong