git: ff0234fe6f97 - main - devel/argparse: Port improvements
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Sep 2022 19:03:48 UTC
The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=ff0234fe6f97790f595f156cdeae97a998fe90a9 commit ff0234fe6f97790f595f156cdeae97a998fe90a9 Author: Nuno Teixeira <eduardo@FreeBSD.org> AuthorDate: 2022-09-26 18:56:05 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2022-09-26 19:03:34 +0000 devel/argparse: Port improvements - Add a test target that does not cause "make test" to fail if the TEST option was not used - Remove ARGPARSE_BUILD_SAMPLES added by mistake and because there is no intention to install samples - Bump PORTREVISION Reported by: se --- devel/argparse/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devel/argparse/Makefile b/devel/argparse/Makefile index ae7b42051c65..6a0e4fc962e7 100644 --- a/devel/argparse/Makefile +++ b/devel/argparse/Makefile @@ -1,6 +1,7 @@ PORTNAME= argparse DISTVERSIONPREFIX= v DISTVERSION= 2.9 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= eduardo@FreeBSD.org @@ -22,6 +23,11 @@ PLIST_FILES= include/argparse/argparse.hpp \ libdata/pkgconfig/argparse.pc OPTIONS_DEFINE= TEST -TEST_CMAKE_BOOL= ARGPARSE_BUILD_SAMPLES ARGPARSE_BUILD_TESTS +TEST_CMAKE_BOOL= ARGPARSE_BUILD_TESTS + +test: + @if [ -x ${WRKDIR}/.build/test/tests ]; then \ + ${WRKDIR}/.build/test/tests; \ + fi .include <bsd.port.mk>