From 2c0336c65f14029ae9fe0f1108d744eed3ebd4b7 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Sun, 28 Dec 2025 18:55:47 +0100 Subject: [PATCH] dev-cpp/tlfloat: new package, add 1.5.0_p20250711 Signed-off-by: Alfredo Tupone --- dev-cpp/tlfloat/Manifest | 1 + .../files/tlfloat-1.5.0_p20250711-fPIC.patch | 11 ++++++++ dev-cpp/tlfloat/metadata.xml | 11 ++++++++ .../tlfloat/tlfloat-1.5.0_p20250711.ebuild | 28 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 dev-cpp/tlfloat/Manifest create mode 100644 dev-cpp/tlfloat/files/tlfloat-1.5.0_p20250711-fPIC.patch create mode 100644 dev-cpp/tlfloat/metadata.xml create mode 100644 dev-cpp/tlfloat/tlfloat-1.5.0_p20250711.ebuild diff --git a/dev-cpp/tlfloat/Manifest b/dev-cpp/tlfloat/Manifest new file mode 100644 index 0000000000000..22870093980ba --- /dev/null +++ b/dev-cpp/tlfloat/Manifest @@ -0,0 +1 @@ +DIST tlfloat-1.5.0_p20250711.tar.gz 269342 BLAKE2B 6619a8f6a74a12dee64782c904ba0d250dd030ccfb728d179dd366380403a6ce60d15c3c2785cb2f5a8baa95211c57315ed4b818b64902b8cfe74596f5e4c8dc SHA512 cea86de671f58e3481bc9f411e48ceb2788f20fa96c835d17a57599e5abe6312016746016fcc30a4e83089214e9d6cef72d262eaeee01e9ac634da9b6efada31 diff --git a/dev-cpp/tlfloat/files/tlfloat-1.5.0_p20250711-fPIC.patch b/dev-cpp/tlfloat/files/tlfloat-1.5.0_p20250711-fPIC.patch new file mode 100644 index 0000000000000..0de2ca482dd57 --- /dev/null +++ b/dev-cpp/tlfloat/files/tlfloat-1.5.0_p20250711-fPIC.patch @@ -0,0 +1,11 @@ +--- a/src/tlfloat/CMakeLists.txt 2025-12-28 17:16:56.947900808 +0100 ++++ b/src/tlfloat/CMakeLists.txt 2025-12-28 17:28:35.570496939 +0100 +@@ -1,5 +1,8 @@ + if (BUILD_LIBS) + add_library(tlfloat_inline OBJECT arith.cpp misc.cpp trig.cpp logexp.cpp invtrig.cpp hyp.cpp erfgamma.cpp) ++ set_target_properties(tlfloat_inline PROPERTIES ++ POSITION_INDEPENDENT_CODE ON ++ ) + target_compile_options(tlfloat_inline PRIVATE ${NOEXCEPT_CXX_FLAGS}) + if (ENABLE_INLINING AND "${LC_CMAKE_BUILD_TYPE}" STREQUAL "release") + target_compile_options(tlfloat_inline PRIVATE ${INLINE_CXX_FLAGS}) diff --git a/dev-cpp/tlfloat/metadata.xml b/dev-cpp/tlfloat/metadata.xml new file mode 100644 index 0000000000000..071372a3eb197 --- /dev/null +++ b/dev-cpp/tlfloat/metadata.xml @@ -0,0 +1,11 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + shibatch/tlfloat + + diff --git a/dev-cpp/tlfloat/tlfloat-1.5.0_p20250711.ebuild b/dev-cpp/tlfloat/tlfloat-1.5.0_p20250711.ebuild new file mode 100644 index 0000000000000..baa81f106762d --- /dev/null +++ b/dev-cpp/tlfloat/tlfloat-1.5.0_p20250711.ebuild @@ -0,0 +1,28 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +CommitId=38f525b838b05dd5c266d34b16cb554cf1fe37c5 + +DESCRIPTION="C++ template library for floating point operations" +HOMEPAGE="https://shibatch.github.io/tlfloat-doxygen/" +SRC_URI="https://github.com/shibatch/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${CommitId} + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}"/${P}-fPIC.patch ) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + ) + cmake_src_configure +}