summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-06-18 18:21:58 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-06-18 18:21:58 +0000
commit61de334eeb41268d1f6f34cdc2c7c59e5fadff3d (patch)
tree4b01f2bd78750a3e93140738d2c1c74f37918f34 /dev-cpp
parent1ec170ec4a58b796bf79c47901ce87771bea01f2 (diff)
downloadbaldeagleos-repo-61de334eeb41268d1f6f34cdc2c7c59e5fadff3d.tar.gz
baldeagleos-repo-61de334eeb41268d1f6f34cdc2c7c59e5fadff3d.tar.xz
baldeagleos-repo-61de334eeb41268d1f6f34cdc2c7c59e5fadff3d.zip
Adding metadata
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/gtest/gtest-1.14.0-r1.ebuild81
-rw-r--r--dev-cpp/gtest/gtest-9999.ebuild15
-rw-r--r--dev-cpp/scnlib/Manifest3
-rw-r--r--dev-cpp/scnlib/scnlib-2.0.3.ebuild39
-rw-r--r--dev-cpp/scnlib/scnlib-3.0.1.ebuild (renamed from dev-cpp/scnlib/scnlib-3.0.0.ebuild)0
5 files changed, 94 insertions, 44 deletions
diff --git a/dev-cpp/gtest/gtest-1.14.0-r1.ebuild b/dev-cpp/gtest/gtest-1.14.0-r1.ebuild
new file mode 100644
index 000000000000..52ca14b02874
--- /dev/null
+++ b/dev-cpp/gtest/gtest-1.14.0-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Python is required for tests and some build tasks.
+PYTHON_COMPAT=( python3_{8,9,10,11,12} )
+
+inherit cmake-multilib flag-o-matic python-any-r1 toolchain-funcs
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/google/googletest"
+else
+ if [[ -z ${GOOGLETEST_COMMIT} ]]; then
+ SRC_URI="https://github.com/google/googletest/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}"/googletest-${PV}
+ else
+ SRC_URI="https://github.com/google/googletest/archive/${GOOGLETEST_COMMIT}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}"/googletest-${GOOGLETEST_COMMIT}
+ fi
+ KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+fi
+
+DESCRIPTION="Google C++ Testing Framework"
+HOMEPAGE="https://github.com/google/googletest"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc examples test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( ${PYTHON_DEPS} )"
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+multilib_src_configure() {
+ if use arm && [[ $(tc-is-softfloat) =~ (softfp)|(no) ]]; then
+ replace-flags -O* -O1 # bug #925093
+ fi
+
+ local mycmakeargs=(
+ -DBUILD_GMOCK=ON
+ -DINSTALL_GTEST=ON
+
+ # tests
+ -Dgmock_build_tests=$(usex test)
+ -Dgtest_build_tests=$(usex test)
+ )
+ if use test; then
+ if use x86 || use x86-linux; then
+ append-cxxflags -ffloat-store # bug #905007
+ fi
+ mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" )
+ fi
+
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Exclude tests that fail with FEATURES="usersandbox"
+ cmake_src_test -E "googletest-(death-test|port)-test"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ newdoc googletest/README.md README.googletest.md
+ newdoc googlemock/README.md README.googlemock.md
+
+ use doc && dodoc -r docs/.
+
+ if use examples; then
+ docinto examples
+ dodoc googletest/samples/*.{cc,h}
+ fi
+}
diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild
index ee91188d8cb5..f58c629675c9 100644
--- a/dev-cpp/gtest/gtest-9999.ebuild
+++ b/dev-cpp/gtest/gtest-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
# Python is required for tests and some build tasks.
PYTHON_COMPAT=( python3_{8,9,10,11,12} )
-inherit cmake-multilib python-any-r1
+inherit cmake-multilib flag-o-matic python-any-r1 toolchain-funcs
if [[ ${PV} == "9999" ]]; then
inherit git-r3
@@ -39,6 +39,10 @@ pkg_setup() {
}
multilib_src_configure() {
+ if use arm && [[ $(tc-is-softfloat) =~ (softfp)|(no) ]]; then
+ replace-flags -O* -O1 # bug #925093
+ fi
+
local mycmakeargs=(
-DBUILD_GMOCK=ON
-DINSTALL_GTEST=ON
@@ -47,7 +51,12 @@ multilib_src_configure() {
-Dgmock_build_tests=$(usex test)
-Dgtest_build_tests=$(usex test)
)
- use test && mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" )
+ if use test; then
+ if use x86 || use x86-linux; then
+ append-cxxflags -ffloat-store # bug #905007
+ fi
+ mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" )
+ fi
cmake_src_configure
}
diff --git a/dev-cpp/scnlib/Manifest b/dev-cpp/scnlib/Manifest
index 91f695300901..16ed6b2b398a 100644
--- a/dev-cpp/scnlib/Manifest
+++ b/dev-cpp/scnlib/Manifest
@@ -1,2 +1 @@
-DIST scnlib-2.0.3.tar.gz 520197 BLAKE2B 6e0a88985e8113d85d5c511fe9ec857af12a5d34224fee7a41d8347e1e1e9fe7bb78b15bbdafd9c06006112de747c9c3cd6b101d1076b619e33ac7e745668cc4 SHA512 888f60d5a60b2e348001a56a59e123f496f89b09668f0b05791e878528c1c46930963f22e3b64130c875896ace56dffc0d9310edabb4804abf79cc125dfd5ff4
-DIST scnlib-3.0.0.tar.gz 410057 BLAKE2B f5e6336b08063eacfd3c1c53e22559ea808482fba80d190c1c7a40d17e9c31fc776e7b672ca0943781346de99e115e0a3bf60b910f715d90235bef9934465bb4 SHA512 bf768ce47d4717ddbd563f0fa9472ea001d632a42921737d1ac858c63c664fd834247e192f053927f880ce5b6774d47fb684088f5ac5dbc1033a10df22916df1
+DIST scnlib-3.0.1.tar.gz 410264 BLAKE2B 15b71f514f9ee7ee1c2a029592ec541e52c36e27cc28b4eac58d51a49bfa04869d9b02c291356a3f7a1d3e9af82ac78c5fdadcfe87575da2ca08a9395fc49935 SHA512 76f3196d6bd01a349c69bf1863cc0dc521a95b84ef25b841198acbef99e295b53c1c82c745a7498b9a86a6fd4cc0c395abcb02fdf18b1d7c9152321ab195945b
diff --git a/dev-cpp/scnlib/scnlib-2.0.3.ebuild b/dev-cpp/scnlib/scnlib-2.0.3.ebuild
deleted file mode 100644
index a3b430189517..000000000000
--- a/dev-cpp/scnlib/scnlib-2.0.3.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="scanf for modern C++ "
-HOMEPAGE="https://www.scnlib.dev/"
-SRC_URI="https://github.com/eliaskosunen/scnlib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-
-RDEPEND=">=dev-cpp/simdutf-5.2.0:="
-DEPEND="${RDEPEND}"
-BDEPEND="
- dev-cpp/fast_float
- test? ( dev-cpp/gtest )
-"
-
-RESTRICT="!test? ( test )"
-
-src_configure() {
- local mycmakeargs=(
- -DSCN_BENCHMARKS=OFF
- -DSCN_BENCHMARKS_BINARYSIZE=OFF
- -DSCN_BENCHMARKS_BUILDTIME=OFF
- -DSCN_DOCS=OFF
- -DSCN_EXAMPLES=$(usex test ON OFF)
- -DSCN_TESTS=$(usex test ON OFF)
- -DSCN_USE_EXTERNAL_FAST_FLOAT=ON
- -DSCN_USE_EXTERNAL_GTEST=ON
- -DSCN_USE_EXTERNAL_SIMDUTF=ON
- )
- cmake_src_configure
-}
diff --git a/dev-cpp/scnlib/scnlib-3.0.0.ebuild b/dev-cpp/scnlib/scnlib-3.0.1.ebuild
index bcbb76b3741e..bcbb76b3741e 100644
--- a/dev-cpp/scnlib/scnlib-3.0.0.ebuild
+++ b/dev-cpp/scnlib/scnlib-3.0.1.ebuild