Install this version:
emerge -a =dev-cpp/catch-1.12.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-cpp/catch-1.12.2
Or alternatively:
emerge --autounmask-write -a =dev-cpp/catch-1.12.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.12.2 | 8 | ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 | 1 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/catchorg/Catch2.git"
EGIT_BRANCH="Catch1.x"
else
MY_P=${PN^}-${PV}
SRC_URI="https://github.com/catchorg/Catch2/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
S="${WORKDIR}/${PN^}2-${PV}"
fi
DESCRIPTION="Modern C++ header-only framework for unit-tests"
HOMEPAGE="https://github.com/catchorg/Catch2"
LICENSE="Boost-1.0"
SLOT="1"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-1.12.2-glibc-2.34-sigstksz.patch
)
multilib_src_configure() {
local mycmakeargs=(
-DNO_SELFTEST=$(usex !test)
)
cmake_src_configure
}
multilib_src_install() {
cmake_src_install
dodoc -r docs/.
}
Manage flags for this package:
euse -i <flag> -p dev-cpp/catch |
euse -E <flag> -p dev-cpp/catch |
euse -D <flag> -p dev-cpp/catch
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | Catch-1.12.2.tar.gz | 377265 bytes | https://github.com/catchorg/Catch2/archive/v1.12.2.tar.gz |