Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Sep 2022 19:03:48 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ff0234fe6f97 - main - devel/argparse: Port improvements
Message-ID:  <202209261903.28QJ3mbM012958@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209261903.28QJ3mbM012958>