git: 86b8a26766c7 - main - www/pacparser: Minor improvements

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Sun, 20 Aug 2023 09:29:48 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=86b8a26766c713d8ac9c818dc7c9dfd627b5260d

commit 86b8a26766c713d8ac9c818dc7c9dfd627b5260d
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-08-20 09:28:15 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-08-20 09:28:20 +0000

    www/pacparser: Minor improvements
    
    Add a test target for python and use NO_INTERNET the way it is intended.
---
 www/pacparser/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/pacparser/Makefile b/www/pacparser/Makefile
index aaacfc8feaa8..56b7604de9f8 100644
--- a/www/pacparser/Makefile
+++ b/www/pacparser/Makefile
@@ -18,7 +18,7 @@ GH_ACCOUNT=	manugarg
 GH_TAGNAME=	e29c1a3
 USE_LDCONFIG=	yes
 
-MAKE_ENV+=	NO_INTERNET=\#
+MAKE_ENV+=	NO_INTERNET=1
 MAKE_JOBS_UNSAFE=	yes
 
 WRKSRC_SUBDIR=	src
@@ -51,4 +51,7 @@ post-install:
 post-install-PYTHON-on:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pacparser/_pacparser.cpython-*.so
 
+do-test-PYTHON-on:
+	${PYTHON_CMD} ${WRKSRC}/../tests/runtests.py
+
 .include <bsd.port.mk>