commit:     330bca4677991aeccf73998cf29b7b088e5f2d41
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Mar  9 14:13:08 2020 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Mar 23 01:30:45 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=330bca46

sci-astronomy/erfa: new package

Closes: https://github.com/gentoo/sci/pull/948
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 sci-astronomy/erfa/erfa-1.7.0.ebuild | 30 ++++++++++++++++++++++++++++++
 sci-astronomy/erfa/metadata.xml      | 21 +++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/sci-astronomy/erfa/erfa-1.7.0.ebuild 
b/sci-astronomy/erfa/erfa-1.7.0.ebuild
new file mode 100644
index 000000000..ba7c72781
--- /dev/null
+++ b/sci-astronomy/erfa/erfa-1.7.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools eutils
+
+DESCRIPTION="Essential Routines for Fundamental Astronomy"
+HOMEPAGE="https://github.com/liberfa/erfa";
+SRC_URI="https://github.com/liberfa/erfa/releases/download/v${PV}/${P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="static-libs"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
+}

diff --git a/sci-astronomy/erfa/metadata.xml b/sci-astronomy/erfa/metadata.xml
new file mode 100644
index 000000000..3d7ebf32a
--- /dev/null
+++ b/sci-astronomy/erfa/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>David Roman</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo Astronomy Project</name>
+  </maintainer>
+  <longdescription lang="en">
+  Essential Routines for Fundamental Astronomy is a C
+  library containing key algorithms for astronomy, and is based on
+  the SOFA library published by the International Astronomical Union
+  (IAU).
+</longdescription>
+  <upstream>
+    <remote-id type="github">liberfa/erfa</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to