mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-libs/FP16: add 2024.06.20
Closes: https://bugs.gentoo.org/947038 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
37
dev-libs/FP16/FP16-2024.06.20.ebuild
Normal file
37
dev-libs/FP16/FP16-2024.06.20.ebuild
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 2022-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit cmake
|
||||
|
||||
CommitId=98b0a46bce017382a6351a19577ec43a715b6835
|
||||
|
||||
DESCRIPTION="conversion to/from half-precision floating point formats"
|
||||
HOMEPAGE="https://github.com/Maratyszcza/FP16/"
|
||||
SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}"/${PN}-${CommitId}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
BDEPEND="test? ( dev-cpp/gtest )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s|CXX_STANDARD 11|CXX_STANDARD 14|" CMakeLists.txt || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DFP16_BUILD_BENCHMARKS=OFF
|
||||
-DFP16_BUILD_TESTS=$(usex test ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST FP16-2021.03.20.tar.gz 71228 BLAKE2B e598225032324ffe38db9002e8397e67a713b6323ac57408e7e39e146826b2bb1dab60cd75181a25b1b07958463e3913bbf0e53b23803e53d472fda66b8ba6d5 SHA512 3f094f242425ea37de274eb8539dc5f8ab0c13fd5325d14180ef12e9c04e6002a110d086c4c667f7c8054af337deab096d59482eb95cc8a632c3c412b48e89d1
|
||||
DIST FP16-2024.06.20.tar.gz 64704 BLAKE2B cd086ca7419aa004c0c4c840227e61612348efb98bdddbf68ef92959267f5f4b0aef55751c5b8a6f50a1f0e7f386e4df5fac273c3849961168e0a5c03faf81e2 SHA512 d3ae46b5b0c944f1d8dcfbb90689266f4abaff3e0b5ef338d5d79193367f06d1bfbb9ad85a5a7685a894daeee6dc73fc5d73631718be1379cc6918655a0289aa
|
||||
|
||||
21
dev-libs/FP16/files/FP16-2024.06.20-gentoo.patch
Normal file
21
dev-libs/FP16/files/FP16-2024.06.20-gentoo.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
--- a/CMakeLists.txt 2022-05-10 09:11:41.286417033 +0200
|
||||
+++ b/CMakeLists.txt 2022-05-10 09:12:48.647398387 +0200
|
||||
@@ -19,7 +19,7 @@
|
||||
ENDIF()
|
||||
|
||||
# ---[ Download deps
|
||||
-IF(FP16_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR)
|
||||
+IF(FALSE)
|
||||
MESSAGE(STATUS "Downloading Google Test to ${CMAKE_BINARY_DIR}/googletest-source (define GOOGLETEST_SOURCE_DIR to avoid it)")
|
||||
CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake "${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt")
|
||||
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
|
||||
@@ -60,9 +60,6 @@
|
||||
# ---[ Build google test
|
||||
IF(NOT TARGET gtest)
|
||||
SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||
- ADD_SUBDIRECTORY(
|
||||
- "${GOOGLETEST_SOURCE_DIR}"
|
||||
- "${CMAKE_BINARY_DIR}/googletest")
|
||||
ENDIF()
|
||||
|
||||
# ---[ Build FP16 unit tests
|
||||
Reference in New Issue
Block a user