1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00

devel/getoptions: NEW Port

Elegant option parser for shell scripts

An elegant option parser for shell scripts (full support for all POSIX
shells)

getoptions is a new option parser and generator written in
POSIX-compliant shell
script and released in august 2020. It is for those who want to support
the
POSIX / GNU style option syntax in your shell scripts. Most easy,
simple, fast,
small, extensible and portable. No more any loops and templates needed!

WWW: https://github.com/ko1nksm/getoptions/
This commit is contained in:
Muhammad Moinur Rahman 2021-12-05 19:58:35 -06:00
parent b5cba031b1
commit fb06e9576d
4 changed files with 57 additions and 0 deletions

View File

@ -812,6 +812,7 @@
SUBDIR += generate
SUBDIR += gengetopt
SUBDIR += genie
SUBDIR += getoptions
SUBDIR += gettext
SUBDIR += gettext-lint
SUBDIR += gettext-msghack

45
devel/getoptions/Makefile Normal file
View File

@ -0,0 +1,45 @@
PORTNAME= getoptions
PORTVERSION= 3.3.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= bofh@FreeBSD.org
COMMENT= Elegant option parser for shell scripts
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= ko1nksm
PORTDOCS= *
PORTEXAMPLES= *
TESTS_EXAMPLES= advanced.sh basic.sh bench.sh example.sh \
parser_definition.sh prehook.sh subcmd.sh
PLIST_FILES= bin/getoptions \
bin/gengetoptions
OPTIONS_DEFINE= DOCS EXAMPLES
MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
NO_ARCH= yes
do-build:
cd ${WRKSRC} && ${MAKE} build
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} README.md CHANGELOG.md \
docs/References.md docs/Workarounds.md \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for e in ${TESTS_EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/examples/${e} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1638753808
SHA256 (ko1nksm-getoptions-v3.3.0_GH0.tar.gz) = b767c6886d3b3f1258463aca500f9f06ed58f1bc6b11eb6e3e33de66847d4123
SIZE (ko1nksm-getoptions-v3.3.0_GH0.tar.gz) = 30111

View File

@ -0,0 +1,8 @@
An elegant option parser for shell scripts (full support for all POSIX shells)
getoptions is a new option parser and generator written in POSIX-compliant shell
script and released in august 2020. It is for those who want to support the
POSIX / GNU style option syntax in your shell scripts. Most easy, simple, fast,
small, extensible and portable. No more any loops and templates needed!
WWW: https://github.com/ko1nksm/getoptions/