diff --git a/astro/Makefile b/astro/Makefile index 37064bcf5d57..a12b8a498fda 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -90,6 +90,7 @@ SUBDIR += py-metar SUBDIR += py-metpy SUBDIR += py-pymetar + SUBDIR += py-pysofa SUBDIR += py-pywapi SUBDIR += py-spacetrack SUBDIR += pyephem diff --git a/astro/py-pysofa/Makefile b/astro/py-pysofa/Makefile new file mode 100644 index 000000000000..31876788f8eb --- /dev/null +++ b/astro/py-pysofa/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= pysofa +DISTVERSION= 0.1.1 +CATEGORIES= astro devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python binding for SOFA, the fundamental astronomy library + +LICENSE= PD +LICENSE_FILE= ${WRKSRC}/COPYING + +RUN_DEPENDS= ${LOCALBASE}/lib/libsofa_c.so:astro/sofa \ + ${PYNUMPY} + +USES= python +NO_ARCH= yes +USE_PYTHON= distutils autoplist + +post-patch: + @${REINPLACE_CMD} -e "s|find_library('sofa_c')|\"${LOCALBASE}/lib/libsofa_c.so\"|" \ + ${WRKSRC}/pysofa/pysofa_ctypes.py + +.include diff --git a/astro/py-pysofa/distinfo b/astro/py-pysofa/distinfo new file mode 100644 index 000000000000..97f197ec57ea --- /dev/null +++ b/astro/py-pysofa/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1532573338 +SHA256 (pysofa-0.1.1.tar.gz) = 3bc309f5a43f44bd6d543ede054657dca9335b4e12726db0e929eb7f863a8f63 +SIZE (pysofa-0.1.1.tar.gz) = 44550 diff --git a/astro/py-pysofa/pkg-descr b/astro/py-pysofa/pkg-descr new file mode 100644 index 000000000000..53f2820e7698 --- /dev/null +++ b/astro/py-pysofa/pkg-descr @@ -0,0 +1,6 @@ +pysofa is a Python module for accessing International Astronomical Union's SOFA +library from python. SOFA (Standards of Fundamental Astronomy) is a set of +algorithms and procedures that implement standard models used in fundamental +astronomy. + +WWW: https://code.google.com/archive/p/pysofa/