commit:     fe314585b4fc98364d477309b4648927fcf63cf3
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 20 10:35:31 2021 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Wed Jan 20 16:11:24 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=fe314585

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 <AT> gmail.com>
Suggested-by: Wilfried Holzke <gentoo <AT> holzke.net>
Package-Manager: Portage-3.0.12, Repoman-3.0.1
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 dev-libs/half/half-2.1.0.ebuild | 24 ++++++++++++++++++++++++
 dev-libs/half/metadata.xml      | 11 +++++++++++
 2 files changed, 35 insertions(+)

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>[email protected]</email>
+  </maintainer>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Wilfried Holzke</name>
+  </maintainer>
+</pkgmetadata>

Reply via email to