On Wed, Apr 12, 2023 at 10:30:16AM +0000, Klemens Nanni wrote:
> So update-workspaces.sh passes through arguments for premake5, which can
> disable tests properly.
>
> To ensure we only used bundled versions where needed, zap the rest;
> this also eliminates grep noise.
>
> Feedback? OK?
correct diff.
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/0ad/base/Makefile,v
retrieving revision 1.41
diff -u -p -r1.41 Makefile
--- Makefile 12 Apr 2023 08:41:59 -0000 1.41
+++ Makefile 12 Apr 2023 10:36:46 -0000
@@ -2,7 +2,7 @@ COMMENT = historical real-time strategy
DISTNAME = 0ad-${V}-alpha-unix-build
PKGNAME = 0ad-${V}
-REVISION = 0
+REVISION = 1
USE_WXNEEDED = Yes
@@ -34,13 +34,11 @@ LIB_DEPENDS = audio/libvorbis \
RUN_DEPENDS = devel/desktop-file-utils \
games/0ad/data=${V}
MODULES = lang/python
+MODPY_RUNDEP = No
# gnu++17
COMPILER = base-clang ports-gcc
-MODPY_RUNDEP = No
-MODPY_ADJ_FILES = ../../../libraries/source/cxxtest-4.4/bin/cxxtestgen
-
MAKE_FLAGS = SILENT=
MAKE_ENV = CC="${CC}" \
CXX="${CXX}" \
@@ -98,13 +96,10 @@ do-install:
${PREFIX}/share/pixmaps/
# most tests fail without nvtt
-NO_TEST = Yes
-# avoid building unused tests in ${WRKSRC}/Makefile
-MAKE_FLAGS += cxxtestroot_config='' \
- mocks_test_config='' \
- test_config=''
+CONFIGURE_ARGS += --without-tests
-#do-test:
-# cd ${WRKDIST}/binaries/system && ./test
+post-extract:
+ # remove unused bundled sources
+ rm -rf
${WRKSRC}/libraries/source/{cxxtest-4.4,enet,miniupnpc,nvtt,valgrind}
.include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/0ad/base/pkg/PLIST,v
retrieving revision 1.13
diff -u -p -r1.13 PLIST
--- pkg/PLIST 9 Oct 2022 07:43:08 -0000 1.13
+++ pkg/PLIST 12 Apr 2023 10:36:33 -0000
@@ -10,7 +10,6 @@ bin/0ad
@static-lib lib/liblobby.a
@static-lib lib/liblowlevel.a
@static-lib lib/libmocks_real.a
-@static-lib lib/libmocks_test.a
@static-lib lib/libmongoose.a
@lib lib/libmozjs78-ps-release.so.${LIBmozjs78-ps-release_VERSION}
@static-lib lib/libnetwork.a