diff --git a/devel/Makefile b/devel/Makefile --- a/devel/Makefile +++ b/devel/Makefile @@ -6327,6 +6327,7 @@ SUBDIR += rubygem-ditz SUBDIR += rubygem-diva SUBDIR += rubygem-docile + SUBDIR += rubygem-docopt SUBDIR += rubygem-drb SUBDIR += rubygem-dry-configurable SUBDIR += rubygem-dry-container diff --git a/devel/rubygem-docopt/Makefile b/devel/rubygem-docopt/Makefile new file mode 100644 --- /dev/null +++ b/devel/rubygem-docopt/Makefile @@ -0,0 +1,19 @@ +PORTNAME= docopt +DISTVERSION= 0.6.1 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= salvadore@FreeBSD.org +COMMENT= Parse command line arguments based on nothing more than a usage message + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gem python:env shebangfix +USE_RUBY= yes + +SHEBANG_FILES= test/language_agnostic_tester.py + +NO_ARCH= yes + +.include diff --git a/devel/rubygem-docopt/distinfo b/devel/rubygem-docopt/distinfo new file mode 100644 --- /dev/null +++ b/devel/rubygem-docopt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1650642167 +SHA256 (rubygem/docopt-0.6.1.gem) = 73f837ed376d015971712c17f7aafa021998b964b77d52997dcaff79d6727467 +SIZE (rubygem/docopt-0.6.1.gem) = 19456 diff --git a/devel/rubygem-docopt/pkg-descr b/devel/rubygem-docopt/pkg-descr new file mode 100644 --- /dev/null +++ b/devel/rubygem-docopt/pkg-descr @@ -0,0 +1,11 @@ +Rubygem implementation of docopt. + +Docopt helps you: +- define an interface for your command-line app, and +- automatically generate a parser for it. + +Docopt is based on conventions that have been used in help messages for decades +and man pages for describing a program's interface. An interface description in +docopt is such a help message, but formalized. + +WWW: https://github.com/docopt/docopt.rb