Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 2021 08:58:12 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e011fe87582b - main - x11-toolkits/gtk-layer-shell: convert TEST option into build cookie
Message-ID:  <202108280858.17S8wCNg078062@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

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

commit e011fe87582bcb59f7a2f51e3bd86e99f862d039
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-08-28 08:43:54 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-08-28 08:57:31 +0000

    x11-toolkits/gtk-layer-shell: convert TEST option into build cookie
---
 x11-toolkits/gtk-layer-shell/Makefile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/x11-toolkits/gtk-layer-shell/Makefile b/x11-toolkits/gtk-layer-shell/Makefile
index 6a6d770f39e0..d93ce52c5d65 100644
--- a/x11-toolkits/gtk-layer-shell/Makefile
+++ b/x11-toolkits/gtk-layer-shell/Makefile
@@ -13,6 +13,7 @@ LICENSE_FILE_MIT=	${WRKSRC}/LICENSE_MIT.txt
 
 BUILD_DEPENDS=	wayland-protocols>=1.16:graphics/wayland-protocols
 LIB_DEPENDS=	libwayland-client.so:graphics/wayland
+TEST_DEPENDS=	evdev-proto>0:devel/evdev-proto
 
 USES=		compiler:c11 gnome meson pkgconfig
 USE_GNOME=	gtk30 introspection:build
@@ -20,16 +21,18 @@ USE_GITHUB=	yes
 USE_LDCONFIG=	yes
 GH_ACCOUNT=	wmww
 
-OPTIONS_DEFINE=	DOCS EXAMPLES TEST
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 DOCS_BUILD_DEPENDS=	gtk-doc>0:textproc/gtk-doc
 DOCS_MESON_TRUE=	docs
 
 EXAMPLES_MESON_TRUE=	examples
 
-TEST_BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto
-TEST_MESON_TRUE=	tests
-
-pre-install-TEST-on:	do-test
+pre-test:
+	@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
+		${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
+		${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dtests=true"; \
+		${TOUCH} ${WRKDIR}/.meson_build_tests; \
+	fi
 
 .include <bsd.port.mk>



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