Date: Sun, 18 Feb 2024 21:47:59 +0100 From: Daniel Engberg <daniel.engberg.lists@pyret.net> To: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: ae019109714d - main - devel/argtable3: New port: ANSI C library that parses GNU-style command-line options Message-ID: <4ae1d9b2fe665902d28c06a9e9aa9f15@mail.infomaniak.com> In-Reply-To: <202402181927.41IJRpC9032914@gitrepo.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 2024-02-18T20:27:51.000+01:00, Jose Alonso Cardenas Marquez <acm@FreeBSD.org> wrote: > The branch main has been updated by acm: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=ae019109714da1f499ea9c73be29c74dab44377f > > commit ae019109714da1f499ea9c73be29c74dab44377f > > Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> > > AuthorDate: 2024-02-18 19:26:43 +0000 > > Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> > > CommitDate: 2024-02-18 19:26:43 +0000 > > devel/argtable3: New port: ANSI C library that parses GNU-style command-line options > > > > Argtable3 is an open source ANSI C library that parses GNU-style command-line > > options with the getopt library. It simplifies command-line parsing by defining > > a declarative-style API that you can use to specify what your command-line > > syntax looks like. Argtable3 will automatically generate consistent error > > handling logic and textual descriptions of the command line syntax, which are > > essential but tedious to implement for a robust CLI program. > > --- > > devel/Makefile | 1 + > > devel/argtable3/Makefile | 24 ++++++++++++++++++++++++ > > devel/argtable3/distinfo | 3 +++ > > devel/argtable3/pkg-descr | 6 ++++++ > > devel/argtable3/pkg-plist | 5 +++++ > > 5 files changed, 39 insertions(+) > > diff --git a/devel/Makefile b/devel/Makefile > > index 00b47b2f905c..ad7af082168d 100644 > > --- a/devel/Makefile > > +++ b/devel/Makefile > > @@ -210,6 +210,7 @@ > > SUBDIR += argparse > > SUBDIR += args > > SUBDIR += argtable > > + SUBDIR += argtable3 > > SUBDIR += arm-elf-binutils > > SUBDIR += arm-none-eabi-gcc > > SUBDIR += arm-none-eabi-newlib > > diff --git a/devel/argtable3/Makefile b/devel/argtable3/Makefile > > new file mode 100644 > > index 000000000000..40c226aefab2 > > --- /dev/null > > +++ b/devel/argtable3/Makefile > > @@ -0,0 +1,24 @@ > > +PORTNAME= argtable3 > > +DISTVERSION= 3.2.2 > > +CATEGORIES= devel > > + > > +MAINTAINER= acm@FreeBSD.org > > +COMMENT= ANSI C library that parses GNU-style command-line options > > +WWW= https://www.argtable.org > > + > > +LICENSE= BSD3CLAUSE > > +LICENSE_FILE= ${WRKSRC}/LICENSE > > + > > +BUILD_DEPENDS= bash>0:shells/bash > > + > > +USES= cmake compiler:c++11-lang shebangfix > > +USE_GITHUB= yes > > +GH_ACCOUNT= argtable > > +GH_TAGNAME= f319bb66252c6d32a0657c774534ba409567aa62 > > + > > +SHEBANG_FILES= ${WRKSRC}/tools/build > > + > > +post-patch: > > + ${REINPLACE_CMD} '66d' ${WRKSRC}/tools/build > > + > > +.include <bsd.port.mk> [http://bsd.port.mk>]; > > diff --git a/devel/argtable3/distinfo b/devel/argtable3/distinfo > > new file mode 100644 > > index 000000000000..fdee15f017e7 > > --- /dev/null > > +++ b/devel/argtable3/distinfo > > @@ -0,0 +1,3 @@ > > +TIMESTAMP = 1708211192 > > +SHA256 (argtable-argtable3-3.2.2-f319bb66252c6d32a0657c774534ba409567aa62_GH0.tar.gz) = caa17d2e992a4ba0e5ea8fb3a4c5cf4e4192d040e572ae583547c6886a4f12d1 > > +SIZE (argtable-argtable3-3.2.2-f319bb66252c6d32a0657c774534ba409567aa62_GH0.tar.gz) = 510632 > > diff --git a/devel/argtable3/pkg-descr b/devel/argtable3/pkg-descr > > new file mode 100644 > > index 000000000000..c6e96b60e1a3 > > --- /dev/null > > +++ b/devel/argtable3/pkg-descr > > @@ -0,0 +1,6 @@ > > +Argtable3 is an open source ANSI C library that parses GNU-style command-line > > +options with the getopt library. It simplifies command-line parsing by defining > > +a declarative-style API that you can use to specify what your command-line > > +syntax looks like. Argtable3 will automatically generate consistent error > > +handling logic and textual descriptions of the command line syntax, which are > > +essential but tedious to implement for a robust CLI program. > > diff --git a/devel/argtable3/pkg-plist b/devel/argtable3/pkg-plist > > new file mode 100644 > > index 000000000000..5acc3b510f53 > > --- /dev/null > > +++ b/devel/argtable3/pkg-plist > > @@ -0,0 +1,5 @@ > > +include/argtable3.h > > +lib/cmake/argtable3/Argtable3Config-release.cmake > > +lib/cmake/argtable3/Argtable3Config.cmake > > +lib/cmake/argtable3/Argtable3ConfigVersion.cmake > > +lib/libargtable3_static.a Hi, Same here, be more careful... Why are we building tests and examples? Why is bash a dependency? You most likely wanted a shared library? Why reason why GH_TAGNAME isn't the release tag? You likely want something along the lines of the following: CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= ARGTABLE3_ENABLE_TESTS \ ARGTABLE3_ENABLE_EXAMPLES Best regards, Daniel [-- Attachment #2 --] <div>On 2024-02-18T20:27:51.000+01:00, Jose Alonso Cardenas Marquez <acm@FreeBSD.org> wrote:<br></div><div class="ik_mail_quote answerContentMessage"><blockquote class="ws-ng-quote"><pre style="white-space: normal;"><div>The branch main has been updated by acm:<br></div><div><br></div><div>URL: <a href="https://cgit.FreeBSD.org/ports/commit/?id=ae019109714da1f499ea9c73be29c74dab44377f" class="defaultMailLink" target="_blank" rel="noopener noreferrer" data-ik="ik-secure">https://cgit.FreeBSD.org/ports/commit/?id=ae019109714da1f499ea9c73be29c74dab44377f</a><br></div><div><br></div><div>commit ae019109714da1f499ea9c73be29c74dab44377f<br></div><div>Author: Jose Alonso Cardenas Marquez <<a href="mailto:acm@FreeBSD.org" class="defaultMailLink">acm@FreeBSD.org</a>><br></div><div>AuthorDate: 2024-02-18 19:26:43 +0000<br></div><div>Commit: Jose Alonso Cardenas Marquez <<a href="mailto:acm@FreeBSD.org" class="defaultMailLink">acm@FreeBSD.org</a>><br></div><div>CommitDate: 2024-02-18 19:26:43 +0000<br></div><div><br></div><div> devel/argtable3: New port: ANSI C library that parses GNU-style command-line options<br></div><div> <br></div><div> Argtable3 is an open source ANSI C library that parses GNU-style command-line<br></div><div> options with the getopt library. It simplifies command-line parsing by defining<br></div><div> a declarative-style API that you can use to specify what your command-line<br></div><div> syntax looks like. Argtable3 will automatically generate consistent error<br></div><div> handling logic and textual descriptions of the command line syntax, which are<br></div><div> essential but tedious to implement for a robust CLI program.<br></div><div>---<br></div><div> devel/Makefile | 1 +<br></div><div> devel/argtable3/Makefile | 24 ++++++++++++++++++++++++<br></div><div> devel/argtable3/distinfo | 3 +++<br></div><div> devel/argtable3/pkg-descr | 6 ++++++<br></div><div> devel/argtable3/pkg-plist | 5 +++++<br></div><div> 5 files changed, 39 insertions(+)<br></div><div><br></div><div>diff --git a/devel/Makefile b/devel/Makefile<br></div><div>index 00b47b2f905c..ad7af082168d 100644<br></div><div>--- a/devel/Makefile<br></div><div>+++ b/devel/Makefile<br></div><div>@@ -210,6 +210,7 @@<br></div><div> SUBDIR += argparse<br></div><div> SUBDIR += args<br></div><div> SUBDIR += argtable<br></div><div>+ SUBDIR += argtable3<br></div><div> SUBDIR += arm-elf-binutils<br></div><div> SUBDIR += arm-none-eabi-gcc<br></div><div> SUBDIR += arm-none-eabi-newlib<br></div><div>diff --git a/devel/argtable3/Makefile b/devel/argtable3/Makefile<br></div><div>new file mode 100644<br></div><div>index 000000000000..40c226aefab2<br></div><div>--- /dev/null<br></div><div>+++ b/devel/argtable3/Makefile<br></div><div>@@ -0,0 +1,24 @@<br></div><div>+PORTNAME= argtable3<br></div><div>+DISTVERSION= 3.2.2<br></div><div>+CATEGORIES= devel<br></div><div>+<br></div><div>+MAINTAINER= <a href="mailto:acm@FreeBSD.org" class="defaultMailLink">acm@FreeBSD.org</a><br></div><div>+COMMENT= ANSI C library that parses GNU-style command-line options<br></div><div>+WWW= <a href="https://www.argtable.org" class="defaultMailLink" target="_blank" rel="noopener noreferrer" data-ik="ik-secure">https://www.argtable.org</a><br></div><div>+<br></div><div>+LICENSE= BSD3CLAUSE<br></div><div>+LICENSE_FILE= ${WRKSRC}/LICENSE<br></div><div>+<br></div><div>+BUILD_DEPENDS= bash>0:shells/bash<br></div><div>+<br></div><div>+USES= cmake compiler:c++11-lang shebangfix<br></div><div>+USE_GITHUB= yes<br></div><div>+GH_ACCOUNT= argtable<br></div><div>+GH_TAGNAME= f319bb66252c6d32a0657c774534ba409567aa62<br></div><div>+<br></div><div>+SHEBANG_FILES= ${WRKSRC}/tools/build<br></div><div>+<br></div><div>+post-patch:<br></div><div>+ ${REINPLACE_CMD} '66d' ${WRKSRC}/tools/build<br></div><div>+<br></div><div>+.include <<a href="http://bsd.port.mk>" class="defaultMailLink" target="_blank" rel="noopener noreferrer" data-ik="ik-secure">bsd.port.mk></a>;<br></div><div>diff --git a/devel/argtable3/distinfo b/devel/argtable3/distinfo<br></div><div>new file mode 100644<br></div><div>index 000000000000..fdee15f017e7<br></div><div>--- /dev/null<br></div><div>+++ b/devel/argtable3/distinfo<br></div><div>@@ -0,0 +1,3 @@<br></div><div>+TIMESTAMP = 1708211192<br></div><div>+SHA256 (argtable-argtable3-3.2.2-f319bb66252c6d32a0657c774534ba409567aa62_GH0.tar.gz) = caa17d2e992a4ba0e5ea8fb3a4c5cf4e4192d040e572ae583547c6886a4f12d1<br></div><div>+SIZE (argtable-argtable3-3.2.2-f319bb66252c6d32a0657c774534ba409567aa62_GH0.tar.gz) = 510632<br></div><div>diff --git a/devel/argtable3/pkg-descr b/devel/argtable3/pkg-descr<br></div><div>new file mode 100644<br></div><div>index 000000000000..c6e96b60e1a3<br></div><div>--- /dev/null<br></div><div>+++ b/devel/argtable3/pkg-descr<br></div><div>@@ -0,0 +1,6 @@<br></div><div>+Argtable3 is an open source ANSI C library that parses GNU-style command-line<br></div><div>+options with the getopt library. It simplifies command-line parsing by defining<br></div><div>+a declarative-style API that you can use to specify what your command-line<br></div><div>+syntax looks like. Argtable3 will automatically generate consistent error<br></div><div>+handling logic and textual descriptions of the command line syntax, which are<br></div><div>+essential but tedious to implement for a robust CLI program.<br></div><div>diff --git a/devel/argtable3/pkg-plist b/devel/argtable3/pkg-plist<br></div><div>new file mode 100644<br></div><div>index 000000000000..5acc3b510f53<br></div><div>--- /dev/null<br></div><div>+++ b/devel/argtable3/pkg-plist<br></div><div>@@ -0,0 +1,5 @@<br></div><div>+include/argtable3.h<br></div><div>+lib/cmake/argtable3/Argtable3Config-release.cmake<br></div><div>+lib/cmake/argtable3/Argtable3Config.cmake<br></div><div>+lib/cmake/argtable3/Argtable3ConfigVersion.cmake<br></div><div>+lib/libargtable3_static.a<br></div></pre></blockquote></div><div>Hi,<br></div><div><br></div><div>Same here, be more careful...<br></div><div><br></div><div>Why are we building tests and examples?<br></div><div>Why is bash a dependency?<br></div><div>You most likely wanted a shared library?<br></div><div>Why reason why GH_TAGNAME isn't the release tag?<br></div><div><br></div><div>You likely want something along the lines of the following:<br></div><div><br></div><div>CMAKE_ON= BUILD_SHARED_LIBS<br></div><div>CMAKE_OFF= ARGTABLE3_ENABLE_TESTS \<br></div><div> ARGTABLE3_ENABLE_EXAMPLES<br></div><div><br></div><div>Best regards,<br></div><div>Daniel<br></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ae1d9b2fe665902d28c06a9e9aa9f15>
