commit:     07c1e07de1d95f15bcbf554e8648686e62a00098
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 13 18:49:50 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Jan 13 18:58:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07c1e07d

sci-mathematics/opensmt: prevent fetching googletest

Closes: https://bugs.gentoo.org/890722
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 .../opensmt/{opensmt-2.4.3.ebuild => opensmt-2.4.3-r1.ebuild}      | 6 ++++++
 sci-mathematics/opensmt/opensmt-2.4.3.ebuild                       | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/sci-mathematics/opensmt/opensmt-2.4.3.ebuild 
b/sci-mathematics/opensmt/opensmt-2.4.3-r1.ebuild
similarity index 92%
copy from sci-mathematics/opensmt/opensmt-2.4.3.ebuild
copy to sci-mathematics/opensmt/opensmt-2.4.3-r1.ebuild
index 6fa8666a57f1..b1e67e45cbad 100644
--- a/sci-mathematics/opensmt/opensmt-2.4.3.ebuild
+++ b/sci-mathematics/opensmt/opensmt-2.4.3-r1.ebuild
@@ -36,6 +36,12 @@ BDEPEND="
        test? ( dev-cpp/gtest )
 "
 
+src_prepare() {
+       cmake_src_prepare
+
+       echo "add_subdirectory(unit)" > "${S}"/test/CMakeLists.txt || die
+}
+
 src_configure() {
        local CMAKE_BUILD_TYPE
        if use debug ; then

diff --git a/sci-mathematics/opensmt/opensmt-2.4.3.ebuild 
b/sci-mathematics/opensmt/opensmt-2.4.3.ebuild
index 6fa8666a57f1..089f834988bc 100644
--- a/sci-mathematics/opensmt/opensmt-2.4.3.ebuild
+++ b/sci-mathematics/opensmt/opensmt-2.4.3.ebuild
@@ -36,6 +36,13 @@ BDEPEND="
        test? ( dev-cpp/gtest )
 "
 
+src_prepare() {
+       cmake_src_prepare
+
+       echo "add_subdirectory(unit)" > "${S}"/test/CMakeLists.txt || die
+       echo "add_subdirectory(unit)" > "${S}"/parallel-test/CMakeLists.txt || 
die
+}
+
 src_configure() {
        local CMAKE_BUILD_TYPE
        if use debug ; then

Reply via email to