diff options
| author | Z. Liu <zhixu.liu@gmail.com> | 2025-01-12 23:37:00 +0800 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-01-14 07:01:50 +0000 |
| commit | 08bcbb8fa872ebfe830f17b8c89bdbaa01d1bc21 (patch) | |
| tree | 3b2c45b26d386efeb599fdad577e513f9406aee3 /dev-util/cpputest/cpputest-4.0-r1.ebuild | |
| parent | 11455cb3e18d922ef248d1965b4090897431012d (diff) | |
| download | gentoo-08bcbb8fa872ebfe830f17b8c89bdbaa01d1bc21.tar.gz gentoo-08bcbb8fa872ebfe830f17b8c89bdbaa01d1bc21.tar.bz2 gentoo-08bcbb8fa872ebfe830f17b8c89bdbaa01d1bc21.zip | |
dev-util/cpputest: fix configure & test
1. fix unexpected errors during configuration, patch submitted to upstream at
https://github.com/cpputest/cpputest/pull/1837
2. adopt patch from https://github.com/cpputest/cpputest/pull/1679, fix
tests hangs w/ clang
Closes: https://bugs.gentoo.org/879681
Closes: https://bugs.gentoo.org/924958
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40105
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/cpputest/cpputest-4.0-r1.ebuild')
| -rw-r--r-- | dev-util/cpputest/cpputest-4.0-r1.ebuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-util/cpputest/cpputest-4.0-r1.ebuild b/dev-util/cpputest/cpputest-4.0-r1.ebuild new file mode 100644 index 000000000000..4d8d165e77c2 --- /dev/null +++ b/dev-util/cpputest/cpputest-4.0-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Unit testing and mocking framework for C/C++" +HOMEPAGE="https://cpputest.github.io/ https://github.com/cpputest/cpputest" +SRC_URI="https://github.com/cpputest/cpputest/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( >=dev-cpp/gtest-1.8.0 )" + +DOCS=( AUTHORS README.md README_CppUTest_for_C.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-4.0-autoconf.patch + "${FILESDIR}"/${P}-replace-UB-by-abort.patch +) + +src_prepare() { + default + eautoreconf +} |
