commit: 707c081dc1c2346b7b87f8073d000b531590b84d
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 00:44:25 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 01:39:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=707c081d
dev-cpp/string-theory: run tests
We now conditionally build tests too.
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-cpp/string-theory/string-theory-3.3.ebuild | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/dev-cpp/string-theory/string-theory-3.3.ebuild
b/dev-cpp/string-theory/string-theory-3.3.ebuild
index a8bb093a351..82fb3efef9d 100644
--- a/dev-cpp/string-theory/string-theory-3.3.ebuild
+++ b/dev-cpp/string-theory/string-theory-3.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -13,3 +13,18 @@ S="${WORKDIR}/string_theory-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DST_BUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ cd "${BUILD_DIR}/test" || die
+ ./st_gtests || die
+}