From owner-dev-commits-ports-all@freebsd.org Sat Aug 28 08:58:12 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 53142670C4B; Sat, 28 Aug 2021 08:58:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GxVq81mKqz3Qb2; Sat, 28 Aug 2021 08:58:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 23F3D14218; Sat, 28 Aug 2021 08:58:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17S8wCkD078063; Sat, 28 Aug 2021 08:58:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17S8wCNg078062; Sat, 28 Aug 2021 08:58:12 GMT (envelope-from git) Date: Sat, 28 Aug 2021 08:58:12 GMT Message-Id: <202108280858.17S8wCNg078062@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: e011fe87582b - main - x11-toolkits/gtk-layer-shell: convert TEST option into build cookie MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e011fe87582bcb59f7a2f51e3bd86e99f862d039 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2021 08:58:12 -0000 The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=e011fe87582bcb59f7a2f51e3bd86e99f862d039 commit e011fe87582bcb59f7a2f51e3bd86e99f862d039 Author: Jan Beich AuthorDate: 2021-08-28 08:43:54 +0000 Commit: Jan Beich 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