summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2022-05-09 20:31:26 +0200
committerAlfredo Tupone <tupone@gentoo.org>2022-05-09 20:31:26 +0200
commit18c60a12ce067d7e4f5b326dc84704edac9faa72 (patch)
tree753d1cedd5b721424143b2d0bf9078da23750d9b /dev-libs/FXdiv
parentnet-im/rocketchat-desktop-bin: drop 3.8.5 (diff)
downloadgentoo-18c60a12ce067d7e4f5b326dc84704edac9faa72.tar.gz
gentoo-18c60a12ce067d7e4f5b326dc84704edac9faa72.tar.bz2
gentoo-18c60a12ce067d7e4f5b326dc84704edac9faa72.zip
dev-libs/FXdiv: division via fixed-point multiplication
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-libs/FXdiv')
-rw-r--r--dev-libs/FXdiv/FXdiv-2020.12.09.ebuild32
-rw-r--r--dev-libs/FXdiv/Manifest1
-rw-r--r--dev-libs/FXdiv/files/FXdiv-2020.12.09-gentoo.patch25
-rw-r--r--dev-libs/FXdiv/metadata.xml11
4 files changed, 69 insertions, 0 deletions
diff --git a/dev-libs/FXdiv/FXdiv-2020.12.09.ebuild b/dev-libs/FXdiv/FXdiv-2020.12.09.ebuild
new file mode 100644
index 000000000000..440b321e2813
--- /dev/null
+++ b/dev-libs/FXdiv/FXdiv-2020.12.09.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake
+
+CommitId=63058eff77e11aa15bf531df5dd34395ec3017c8
+DESCRIPTION="Division via fixed-point multiplication by inverse"
+HOMEPAGE="https://github.com/Maratyszcza/FXdiv/"
+SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}"/${PN}-${CommitId}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DFXDIV_BUILD_BENCHMARKS=OFF
+ )
+ cmake_src_configure
+}
diff --git a/dev-libs/FXdiv/Manifest b/dev-libs/FXdiv/Manifest
new file mode 100644
index 000000000000..98b048d00af4
--- /dev/null
+++ b/dev-libs/FXdiv/Manifest
@@ -0,0 +1 @@
+DIST FXdiv-2020.12.09.tar.gz 9667 BLAKE2B 373717a3271b36f052e70f58c644aa83aa1a1cfdccc648d8830dd034fa9d799c04d908eedea7d064ce35b0bc50d521e842fb92c36ccaf2da1bc19ea478de4301 SHA512 da33eab4d006645f383a1f24fc3e747db3aeb0613219297ec0ae69aa2617f07ba050ebd6a64a8cbde6d25481f176d0ec3b9753a95d1fbcead2136595f3e50e97
diff --git a/dev-libs/FXdiv/files/FXdiv-2020.12.09-gentoo.patch b/dev-libs/FXdiv/files/FXdiv-2020.12.09-gentoo.patch
new file mode 100644
index 000000000000..0e1cbfd2ebf6
--- /dev/null
+++ b/dev-libs/FXdiv/files/FXdiv-2020.12.09-gentoo.patch
@@ -0,0 +1,25 @@
+--- a/CMakeLists.txt 2022-05-09 20:14:30.379955259 +0200
++++ b/CMakeLists.txt 2022-05-09 20:15:03.362459969 +0200
+@@ -22,12 +22,6 @@
+
+ # ---[ Download deps
+ IF(FXDIV_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR)
+- 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}" .
+- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download")
+- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
+- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download")
+ SET(GOOGLETEST_SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" CACHE STRING "Google Test source directory")
+ ENDIF()
+
+@@ -52,9 +52,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()
+
+ ADD_EXECUTABLE(multiply-high-test test/multiply-high.cc)
diff --git a/dev-libs/FXdiv/metadata.xml b/dev-libs/FXdiv/metadata.xml
new file mode 100644
index 000000000000..7f2fcf402ae4
--- /dev/null
+++ b/dev-libs/FXdiv/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>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Maratyszcza/FXdiv</remote-id>
+ </upstream>
+</pkgmetadata>