dev-cpp/tlfloat: new package, add 1.5.0_p20250711

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-12-28 18:55:47 +01:00
parent d9ff49343c
commit 2c0336c65f
4 changed files with 51 additions and 0 deletions

1
dev-cpp/tlfloat/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST tlfloat-1.5.0_p20250711.tar.gz 269342 BLAKE2B 6619a8f6a74a12dee64782c904ba0d250dd030ccfb728d179dd366380403a6ce60d15c3c2785cb2f5a8baa95211c57315ed4b818b64902b8cfe74596f5e4c8dc SHA512 cea86de671f58e3481bc9f411e48ceb2788f20fa96c835d17a57599e5abe6312016746016fcc30a4e83089214e9d6cef72d262eaeee01e9ac634da9b6efada31

View File

@@ -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})

View File

@@ -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>tupone@gentoo.org</email>
<name>Tupone Alfredo</name>
</maintainer>
<upstream>
<remote-id type="github">shibatch/tlfloat</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}