From nobody Mon Dec 6 01:59:28 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9837718D2687; Mon, 6 Dec 2021 01:59:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J6mnr2GJqz4rMN; Mon, 6 Dec 2021 01:59:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2DA0B22C4E; Mon, 6 Dec 2021 01:59:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B61xSOE006361; Mon, 6 Dec 2021 01:59:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B61xS0c006360; Mon, 6 Dec 2021 01:59:28 GMT (envelope-from git) Date: Mon, 6 Dec 2021 01:59:28 GMT Message-Id: <202112060159.1B61xS0c006360@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: fb06e9576d8b - main - devel/getoptions: NEW Port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fb06e9576d8b2222a8e23368caf06a75db89b0d7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638755968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Yej1GsFPhxtTxABoMj/ku6+pnirhC/VFRA/mRMoi8bg=; b=NqIgETz14/TwDnqt42ctkUBxI3DQVd9IioRC1+FQeCmtTW7V0k1ER9WQPhM3z7fvirPH03 toxgKCnn/TXymn9mTtXHgzNabWwnwOx8mgA6r0zpsVARtiBvpa3TEpdwyausGXD8fY/jyw iDIS/i2gMiahVEWh4QRppxemhXcWZTdT2+56HztCEZL2Kxe7gKkq563XgboFWfuPYhvzGX cnljicy3wypOz9i8SUn3GZ7VqmhDSkQnFI6YD+fRO0YHvk28+3OyrdSZ5Xtzzp1uMGR8KH vUkeaAg8/sKixvQgX/ZSd2kP7r3gpJUxRHiK4ZRKyTpkVZzD3DYurm5LHP5dQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638755968; a=rsa-sha256; cv=none; b=COhWWnvGAUZh6vOwaSNDbaDGU4+UBJPfMByHrK0Evid6rdbYSVErFTxKpDCUvfDEAub8kp ecXmGWOLTwuxNvCbdCM3/bLXz+Ld34WRFrFnqsv9Mz/VSJCsX2LHCQ6qO+78R1Q1UpyqZN 0rvkOdxpdzR+Sbx455/D6iao7AhEN5NMdIJjBeJdBDaU/ey/iLpdoKXaZU2TNFXrQKj6dj lgMbIU5LzLKGTrufLYRRlQWBt+g51d3NLieckLFFrteYs/e1IktJ5hrsHWzQxGt8Hkctn1 QAb/dN8uEycdQv84aSoMW+4IqO94SWK4c/PCsAxwBPSP2axrK/j0qRfPLh2pkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=fb06e9576d8b2222a8e23368caf06a75db89b0d7 commit fb06e9576d8b2222a8e23368caf06a75db89b0d7 Author: Muhammad Moinur Rahman AuthorDate: 2021-12-06 01:58:35 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2021-12-06 01:58:35 +0000 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/ --- devel/Makefile | 1 + devel/getoptions/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ devel/getoptions/distinfo | 3 +++ devel/getoptions/pkg-descr | 8 ++++++++ 4 files changed, 57 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 105651910846..1a45d5b40161 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -812,6 +812,7 @@ SUBDIR += generate SUBDIR += gengetopt SUBDIR += genie + SUBDIR += getoptions SUBDIR += gettext SUBDIR += gettext-lint SUBDIR += gettext-msghack diff --git a/devel/getoptions/Makefile b/devel/getoptions/Makefile new file mode 100644 index 000000000000..f073950b1f7d --- /dev/null +++ b/devel/getoptions/Makefile @@ -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 diff --git a/devel/getoptions/distinfo b/devel/getoptions/distinfo new file mode 100644 index 000000000000..f65869310e09 --- /dev/null +++ b/devel/getoptions/distinfo @@ -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 diff --git a/devel/getoptions/pkg-descr b/devel/getoptions/pkg-descr new file mode 100644 index 000000000000..7802cef2c2de --- /dev/null +++ b/devel/getoptions/pkg-descr @@ -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/