commit:     7b70282eeb3573f6956a26591110a987d46af88e
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue May  3 18:24:33 2022 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Tue May  3 20:21:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7b70282e

sci-mathematics/clasp: use system catch

Closes: https://bugs.gentoo.org/842327
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sci-mathematics/clasp/clasp-3.3.7.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/clasp/clasp-3.3.7.ebuild 
b/sci-mathematics/clasp/clasp-3.3.7.ebuild
index 7af818634..d4690201c 100644
--- a/sci-mathematics/clasp/clasp-3.3.7.ebuild
+++ b/sci-mathematics/clasp/clasp-3.3.7.ebuild
@@ -18,7 +18,10 @@ KEYWORDS="~amd64"
 IUSE="examples test +threads +tools"
 
 RDEPEND="sci-libs/libpotassco:="
-DEPEND="${RDEPEND}"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-cpp/catch:0 )
+"
 
 RESTRICT="!test? ( test )"
 PATCHES=(
@@ -26,6 +29,11 @@ PATCHES=(
        "${FILESDIR}/${P}-libclasp_app.patch"
 )
 
+src_prepare() {
+       rm tests/catch.hpp || die
+       cmake_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                -DCLASP_BUILD_APP=$(usex tools)

Reply via email to