From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5218313835A for ; Fri, 22 Jan 2021 01:41:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1E84E08AD; Fri, 22 Jan 2021 01:41:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B96ECE08AD for ; Fri, 22 Jan 2021 01:41:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AF340340DE7 for ; Fri, 22 Jan 2021 01:41:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 236584A4 for ; Fri, 22 Jan 2021 01:41:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1611279596.707c081dc1c2346b7b87f8073d000b531590b84d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/string-theory/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/string-theory/string-theory-3.3.ebuild X-VCS-Directories: dev-cpp/string-theory/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 707c081dc1c2346b7b87f8073d000b531590b84d X-VCS-Branch: master Date: Fri, 22 Jan 2021 01:41:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 39d6f6b2-e6bd-487e-96bb-043eb9264466 X-Archives-Hash: 6ef4d8b2aa73f282766d9b27944122e3 commit: 707c081dc1c2346b7b87f8073d000b531590b84d Author: Sam James gentoo org> AuthorDate: Fri Jan 22 00:44:25 2021 +0000 Commit: Sam James gentoo 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 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 +}