commit: 2c0336c65f14029ae9fe0f1108d744eed3ebd4b7
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 28 17:55:47 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Dec 28 17:56:04 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c0336c6
dev-cpp/tlfloat: new package, add 1.5.0_p20250711
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-cpp/tlfloat/Manifest | 1 +
.../files/tlfloat-1.5.0_p20250711-fPIC.patch | 11 +++++++++
dev-cpp/tlfloat/metadata.xml | 11 +++++++++
dev-cpp/tlfloat/tlfloat-1.5.0_p20250711.ebuild | 28 ++++++++++++++++++++++
4 files changed, 51 insertions(+)
diff --git a/dev-cpp/tlfloat/Manifest b/dev-cpp/tlfloat/Manifest
new file mode 100644
index 000000000000..22870093980b
--- /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 000000000000..0de2ca482dd5
--- /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 000000000000..071372a3eb19
--- /dev/null
+++ b/dev-cpp/tlfloat/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">shibatch/tlfloat</remote-id>
+ </upstream>
+</pkgmetadata>
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 000000000000..baa81f106762
--- /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
+}