aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2021-01-20 18:35:31 +0800
committerBenda Xu <heroxbd@gentoo.org>2021-01-21 00:11:24 +0800
commitfe314585b4fc98364d477309b4648927fcf63cf3 (patch)
treeebd3a524009797c564022c15b35d115751c7b198 /dev-libs
parentsci-libs/rocBLAS: AMD library for BLAS on the ROCm platform. (diff)
downloadsci-fe314585b4fc98364d477309b4648927fcf63cf3.tar.gz
sci-fe314585b4fc98364d477309b4648927fcf63cf3.tar.bz2
sci-fe314585b4fc98364d477309b4648927fcf63cf3.zip
dev-libs/half: half precision library.
This is a dependency of MIOpen. Bug: https://github.com/gentoo/gentoo/pull/10724 Bug: https://bugs.gentoo.org/650804 Suggested-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Suggested-by: Wilfried Holzke <gentoo@holzke.net> Package-Manager: Portage-3.0.12, Repoman-3.0.1 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/half/Manifest1
-rw-r--r--dev-libs/half/half-2.1.0.ebuild24
-rw-r--r--dev-libs/half/metadata.xml11
3 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/half/Manifest b/dev-libs/half/Manifest
new file mode 100644
index 000000000..2da012a03
--- /dev/null
+++ b/dev-libs/half/Manifest
@@ -0,0 +1 @@
+DIST half-2.1.0.zip 47043 BLAKE2B 53d42c48b9a39bbbdace0442e876373cb8c76d395b7cdc04db2d7beca27c507a10c094ea705a94384fbaa0d2bdca6a82977738ec8bfbe47fc12f82c0ce74c6db SHA512 fc81a1b58862eb4570f18b5c82ca66eb9e6cf697801ef5686dc36950d149adaa8e6c2543a1b698e983e29253da5137e6b565a69991d4924598f0a10a8ba52142
diff --git a/dev-libs/half/half-2.1.0.ebuild b/dev-libs/half/half-2.1.0.ebuild
new file mode 100644
index 000000000..010866042
--- /dev/null
+++ b/dev-libs/half/half-2.1.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit unpacker
+
+DESCRIPTION="Half-precision floating-point library"
+HOMEPAGE="http://half.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/project/half/half/${PV}/half-${PV}.zip"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+SLOT="0"
+
+DEPEND="app-arch/unzip"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_install() {
+ insinto /usr/include
+ doins include/half.hpp
+}
diff --git a/dev-libs/half/metadata.xml b/dev-libs/half/metadata.xml
new file mode 100644
index 000000000..336bdb639
--- /dev/null
+++ b/dev-libs/half/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>gentoo@holzke.net</email>
+ <name>Wilfried Holzke</name>
+ </maintainer>
+</pkgmetadata>