git: d987bbace83c - main - astro/erfa: New port: Essential Routines for Fundamental Astronomy

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 25 Aug 2022 20:47:19 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d987bbace83c8a06e2f48e4c83e4289fa827e93c

commit d987bbace83c8a06e2f48e4c83e4289fa827e93c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-25 20:46:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-25 20:47:17 +0000

    astro/erfa: New port: Essential Routines for Fundamental Astronomy
---
 astro/Makefile       |  1 +
 astro/erfa/Makefile  | 19 +++++++++++++++++++
 astro/erfa/distinfo  |  3 +++
 astro/erfa/pkg-descr | 10 ++++++++++
 astro/erfa/pkg-plist |  9 +++++++++
 5 files changed, 42 insertions(+)

diff --git a/astro/Makefile b/astro/Makefile
index 025ed9005cd7..c75416f2e648 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -6,6 +6,7 @@
     SUBDIR += celestia
     SUBDIR += celestia-gtk
     SUBDIR += cfitsio
+    SUBDIR += erfa
     SUBDIR += fowsr
     SUBDIR += foxtrotgps
     SUBDIR += geographiclib
diff --git a/astro/erfa/Makefile b/astro/erfa/Makefile
new file mode 100644
index 000000000000..41167f30ea35
--- /dev/null
+++ b/astro/erfa/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	erfa
+DISTVERSION=	2.0.0
+CATEGORIES=	astro geography
+MASTER_SITES=	https://github.com/liberfa/erfa/releases/download/v${DISTVERSION}/
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Essential Routines for Fundamental Astronomy
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		autoreconf gmake libtool
+USE_LDCONFIG=	yes
+
+GNU_CONFIGURE=	yes
+
+INSTALL_TARGET=	install-strip
+
+.include <bsd.port.mk>
diff --git a/astro/erfa/distinfo b/astro/erfa/distinfo
new file mode 100644
index 000000000000..bb95c04ef7aa
--- /dev/null
+++ b/astro/erfa/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661460075
+SHA256 (erfa-2.0.0.tar.gz) = 75cb0a2cc1561d24203d9d0e67c21f105e45a70181d57f158e64a46a50ccd515
+SIZE (erfa-2.0.0.tar.gz) = 729292
diff --git a/astro/erfa/pkg-descr b/astro/erfa/pkg-descr
new file mode 100644
index 000000000000..968459fb94ce
--- /dev/null
+++ b/astro/erfa/pkg-descr
@@ -0,0 +1,10 @@
+ERFA (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).
+
+ERFA is intended to replicate the functionality of SOFA (aside from possible
+bugfixes in ERFA that have not yet been included in SOFA), but is licensed under
+a three-clause BSD license to enable its compatibility with a wide range of open
+source licenses.
+
+WWW: https://github.com/liberfa/erfa
diff --git a/astro/erfa/pkg-plist b/astro/erfa/pkg-plist
new file mode 100644
index 000000000000..ca016eb232ee
--- /dev/null
+++ b/astro/erfa/pkg-plist
@@ -0,0 +1,9 @@
+include/erfa.h
+include/erfadatextra.h
+include/erfaextra.h
+include/erfam.h
+lib/liberfa.a
+lib/liberfa.so
+lib/liberfa.so.1
+lib/liberfa.so.1.8.0
+libdata/pkgconfig/erfa.pc