summaryrefslogtreecommitdiff
path: root/dev-cpp/catch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/catch')
-rw-r--r--dev-cpp/catch/Manifest1
-rw-r--r--dev-cpp/catch/catch-3.15.3.ebuild46
-rw-r--r--dev-cpp/catch/catch-9999.ebuild4
3 files changed, 49 insertions, 2 deletions
diff --git a/dev-cpp/catch/Manifest b/dev-cpp/catch/Manifest
index 3656d87481e0..b0d0f40d988a 100644
--- a/dev-cpp/catch/Manifest
+++ b/dev-cpp/catch/Manifest
@@ -3,3 +3,4 @@ DIST Catch2-2.13.10.tar.gz 662225 BLAKE2B d8a2fb0e6f6a6f1ea25a860975ab596404ed41
DIST Catch2-3.12.0.tar.gz 1416567 BLAKE2B bb210f8dd242fc7cedbbec3f7dcb79e6ec75d2f01a877dfafb148ab44eda10878a929961e87cc26662feda713d3dc5b77ef8ced81dd619f5217e19ac8dd91b7f SHA512 acb3f463a7404d6a3bce52e474075cdadf9bb241d93feaf147c182d756e5a2f8bd412f4658ca186d15ab8fed36fc587d79ec311f55642d8e4ded16df9e213656
DIST Catch2-3.13.0.tar.gz 1184015 BLAKE2B 291f7ac76964c9a85a00f76a58595c38f090adecd5217ee58604412158bafc8306d8eb7738c1de4fa48648f8e6a4546f5cd0eba636574cac0ac836b0eee7b986 SHA512 7eea385d79d88a5690cde131fe7ccda97d5c54ea09d6f515000d7bf07c828809d61c1ac99912c1ee507cf933f61c1c47ecdcc45df7850ffa82714034b0fccf35
DIST Catch2-3.15.0.tar.gz 1191813 BLAKE2B 4e44ad6824c029281cfc2e46c3a1822e36cd2877715936e1d21e1f2a033821bafea37a3a7c4bfeea8e82c983a5b1c2530a908058b237653e7ad185d30850eb50 SHA512 09df8b291d0c756c492871ce0a4fb5c703162d1364a9864470b227d4d19d9865a0ba5293a5f38d0117cbc7c230f42be35db9f6e0ca5d889dff02f1745807f380
+DIST Catch2-3.15.3.tar.gz 1208344 BLAKE2B e444f0f1e01cd628d1b130ccb32da59baba75ce19e7741f4de2f04c5326c5f725d939de356a56f2b40dedb0e1deca6c936797bb43b069b187e84e4118b6aac13 SHA512 313d413fe2daa070a60abe17641d112da72320a917cd96bcbda3931d4c47bbca81f669bd7724387bc63a3614112fc12ae8228043bf58a676d0191ee5b16bc7a1
diff --git a/dev-cpp/catch/catch-3.15.3.ebuild b/dev-cpp/catch/catch-3.15.3.ebuild
new file mode 100644
index 000000000000..4c30cee3ec26
--- /dev/null
+++ b/dev-cpp/catch/catch-3.15.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit cmake-multilib python-any-r1
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/catchorg/Catch2.git"
+else
+ MY_P=${PN^}2-${PV}
+ SRC_URI="https://github.com/catchorg/Catch2/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+ S="${WORKDIR}/${MY_P}"
+
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+
+DESCRIPTION="Modern C++ header-only framework for unit-tests"
+HOMEPAGE="https://github.com/catchorg/Catch2"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( ${PYTHON_DEPS} )"
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DCATCH_DEVELOPMENT_BUILD=ON
+ -DCATCH_ENABLE_WERROR=OFF
+ -DCATCH_BUILD_TESTING=$(usex test)
+ )
+ use test && mycmakeargs+=(
+ -DPython3_EXECUTABLE="${PYTHON}"
+ )
+
+ cmake_src_configure
+}
diff --git a/dev-cpp/catch/catch-9999.ebuild b/dev-cpp/catch/catch-9999.ebuild
index 12d83a0a6dd4..4c30cee3ec26 100644
--- a/dev-cpp/catch/catch-9999.ebuild
+++ b/dev-cpp/catch/catch-9999.ebuild
@@ -15,7 +15,7 @@ else
SRC_URI="https://github.com/catchorg/Catch2/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
DESCRIPTION="Modern C++ header-only framework for unit-tests"
@@ -39,7 +39,7 @@ multilib_src_configure() {
-DCATCH_BUILD_TESTING=$(usex test)
)
use test && mycmakeargs+=(
- -DPYTHON_EXECUTABLE="${PYTHON}"
+ -DPython3_EXECUTABLE="${PYTHON}"
)
cmake_src_configure