diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-libs/FP16 | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-libs/FP16')
-rw-r--r-- | dev-libs/FP16/FP16-2021.03.20-r2.ebuild (renamed from dev-libs/FP16/FP16-2021.03.20.ebuild) | 27 | ||||
-rw-r--r-- | dev-libs/FP16/Manifest | 2 |
2 files changed, 26 insertions, 3 deletions
diff --git a/dev-libs/FP16/FP16-2021.03.20.ebuild b/dev-libs/FP16/FP16-2021.03.20-r2.ebuild index 160c3c91f429..1673b468cb71 100644 --- a/dev-libs/FP16/FP16-2021.03.20.ebuild +++ b/dev-libs/FP16/FP16-2021.03.20-r2.ebuild @@ -2,9 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit python-r1 cmake CommitId=0a92994d729ff76a58f692d3028ca1b64b145d91 + 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 @@ -14,9 +16,14 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" DEPEND="dev-libs/psimd" -RDEPEND="${DEPEND}" +RDEPEND=" + ${DEPEND} + ${PYTHON_DEPS} + dev-python/PeachPy[${PYTHON_USEDEP}] +" BDEPEND="test? ( dev-cpp/gtest )" RESTRICT="!test? ( test )" @@ -26,6 +33,12 @@ PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) +src_prepare() { + cmake_src_prepare + mkdir -p module/fp16 || die + cp include/fp16/*py module/fp16 || die +} + src_configure() { local mycmakeargs=( -DFP16_BUILD_BENCHMARKS=OFF @@ -33,3 +46,13 @@ src_configure() { ) cmake_src_configure } + +python_install() { + python_domodule module/fp16 +} + +src_install() { + cmake_src_install + rm "${D}"/usr/include/fp16/*.py || die + python_foreach_impl python_install +} diff --git a/dev-libs/FP16/Manifest b/dev-libs/FP16/Manifest index becc524ed9f8..209ce6a8af79 100644 --- a/dev-libs/FP16/Manifest +++ b/dev-libs/FP16/Manifest @@ -1,4 +1,4 @@ AUX FP16-2021.03.20-gentoo.patch 1876 BLAKE2B 56863806f1040c5a92e04f7cf120e2ae4e4e6c59b336bf8734d0b0945e29d17afb5c244e94fab6023567227878b72e73d3c8d669e4af311bfc703f545b82d847 SHA512 0ac6379a5d92a70df72c4a0bce0d437ebb7733fa6f61b0006cedd007f9c071c2b7c9727cd559c39c08a8528f29c2d96397b566512eca6fa4c5a5d812085125cf DIST FP16-2021.03.20.tar.gz 71228 BLAKE2B e598225032324ffe38db9002e8397e67a713b6323ac57408e7e39e146826b2bb1dab60cd75181a25b1b07958463e3913bbf0e53b23803e53d472fda66b8ba6d5 SHA512 3f094f242425ea37de274eb8539dc5f8ab0c13fd5325d14180ef12e9c04e6002a110d086c4c667f7c8054af337deab096d59482eb95cc8a632c3c412b48e89d1 -EBUILD FP16-2021.03.20.ebuild 758 BLAKE2B fed1e1cf258d2a7ca4b34c60299d7c2321e3d9cccc1f70fe60865b12829c4c1bcf73572381add3deab5fe74d9834fdfac842f58b416b289a061436070c5d2677 SHA512 777e183f57ebcdb12e8db740ef3c63a875b327c832fce16d6461f76b282454125a343878f213991e43b9d5089e37828e4aa26c9b43ac6cd40a8ca178958dbf52 +EBUILD FP16-2021.03.20-r2.ebuild 1171 BLAKE2B f82b80a79d58643d5cbad2474a5c1e892514d14f80cbd6e7a75c0f4bbbc13d9b5f3c2c7da6bc79d0495918d8617bad35cad82bfeeacb07b7189ca093d327812c SHA512 5e9a8ef2a727c437ef5266508b09b78e845265197e188200f84ed312cb76bd7364b1ca1b945ae15cfd0926242aaa8ab0aa97cb057fffea3ace7e7b77e406a6cf MISC metadata.xml 329 BLAKE2B eda810b21ca05e2e16f2eafac194cdca189d27449bc9322488aeca215a9b2c10ce68145abab1abb984e290ab6ca8ce21c3beaf06ecd76d7574fd8b82388f4e63 SHA512 27ca59c0862f75f24dc64f9af5eee96cf63ef4bd468e17f5d04cc23289dbb5c44af9b230707ad13d1ff85e75db4d5485d7226c9e6d80e8bc80d9e6f3b2e18acd |