diff options
-rw-r--r-- | astro/Makefile | 1 | ||||
-rw-r--r-- | astro/py-astropy-healpix/Makefile | 39 | ||||
-rw-r--r-- | astro/py-astropy-healpix/distinfo | 3 | ||||
-rw-r--r-- | astro/py-astropy-healpix/pkg-descr | 4 |
4 files changed, 47 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile index 1de7742a845a..089e5c5a75d6 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -85,6 +85,7 @@ SUBDIR += py-astral SUBDIR += py-astroML SUBDIR += py-astropy + SUBDIR += py-astropy-healpix SUBDIR += py-astropy-helpers SUBDIR += py-astropy-iers-data SUBDIR += py-astroquery diff --git a/astro/py-astropy-healpix/Makefile b/astro/py-astropy-healpix/Makefile new file mode 100644 index 000000000000..91423e66b92d --- /dev/null +++ b/astro/py-astropy-healpix/Makefile @@ -0,0 +1,39 @@ +PORTNAME= astropy-healpix +PORTVERSION= 1.1.2 +CATEGORIES= astro python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= HEALPix algorithm for Astropy +WWW= https://astropy-healpix.readthedocs.io/en/latest/ \ + https://github.com/astropy/astropy-healpix + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}extension-helpers>0:astro/py-extension-helpers@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astropy>=5:astro/py-astropy@${PY_FLAVOR} \ + ${PYNUMPY} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-astropy>0:astro/py-pytest-astropy@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/astropy_healpix/tests + +post-install: + @${STRIP_CMD} \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME:S/-/_/}/_core.*.so \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME:S/-/_/}/compiler_version.*.so + +# tests fail to run, see https://github.com/astropy/astropy-healpix/issues/272 + +.include <bsd.port.mk> diff --git a/astro/py-astropy-healpix/distinfo b/astro/py-astropy-healpix/distinfo new file mode 100644 index 000000000000..2ca256f3fb13 --- /dev/null +++ b/astro/py-astropy-healpix/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1757271621 +SHA256 (astropy_healpix-1.1.2.tar.gz) = 03671df12a36ec3b357c244d5154b6786362ff5d80770675c7b24815101066e4 +SIZE (astropy_healpix-1.1.2.tar.gz) = 109453 diff --git a/astro/py-astropy-healpix/pkg-descr b/astro/py-astropy-healpix/pkg-descr new file mode 100644 index 000000000000..5cd97f174c36 --- /dev/null +++ b/astro/py-astropy-healpix/pkg-descr @@ -0,0 +1,4 @@ +HEALPix (Hierarchical Equal Area isoLatitude Pixelisation) is an algorithm for +pixellizing a sphere that is sometimes used in Astronomy to store data from +all-sky surveys, but the general algorithm can apply to any field that has to +deal with representing data on a sphere. |