diff --git a/astro/Makefile b/astro/Makefile index 058898608309..8cefddb478f3 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -1,158 +1,159 @@ COMMENT = Astronomical ports SUBDIR += accrete SUBDIR += astrometry SUBDIR += astroterm SUBDIR += calceph SUBDIR += calcmysky SUBDIR += celestia SUBDIR += celestia-gtk SUBDIR += cfitsio SUBDIR += cspice SUBDIR += erfa SUBDIR += fowsr SUBDIR += foxtrotgps SUBDIR += geographiclib SUBDIR += gkrellmoon2 SUBDIR += gnuastro SUBDIR += google-earth-pro SUBDIR += gpsbabel SUBDIR += gpsbabel14 SUBDIR += gpscorrelate SUBDIR += gpsd SUBDIR += gpsman SUBDIR += gpsprune SUBDIR += gpstk SUBDIR += gpxloggerd SUBDIR += indiwebmanagerapp SUBDIR += jday SUBDIR += josm SUBDIR += kosmindoormap SUBDIR += kosmorro SUBDIR += kstars SUBDIR += libgal SUBDIR += libnova SUBDIR += libosmium SUBDIR += libosmpbf SUBDIR += luna SUBDIR += marble SUBDIR += match SUBDIR += mepo SUBDIR += merkaartor SUBDIR += mkgmap SUBDIR += mkgmap-splitter SUBDIR += nightfall SUBDIR += opencpn SUBDIR += openuniverse SUBDIR += oskar SUBDIR += osmium-tool SUBDIR += osmosis SUBDIR += p5-Astro SUBDIR += p5-Astro-ADS SUBDIR += p5-Astro-App-Satpass2 SUBDIR += p5-Astro-Catalog SUBDIR += p5-Astro-Constants SUBDIR += p5-Astro-Coords SUBDIR += p5-Astro-DSS SUBDIR += p5-Astro-FITS-CFITSIO SUBDIR += p5-Astro-FITS-Header SUBDIR += p5-Astro-Flux SUBDIR += p5-Astro-Hipparcos SUBDIR += p5-Astro-MoonPhase SUBDIR += p5-Astro-PAL SUBDIR += p5-Astro-SIMBAD SUBDIR += p5-Astro-SIMBAD-Client SUBDIR += p5-Astro-SpaceTrack SUBDIR += p5-Astro-SunTime SUBDIR += p5-Astro-Sunrise SUBDIR += p5-Astro-Telescope SUBDIR += p5-Astro-WaveBand SUBDIR += p5-Astro-satpass SUBDIR += p5-GPS SUBDIR += p5-GPS-Babel SUBDIR += p5-GPS-OID SUBDIR += p5-GPS-Point SUBDIR += p5-Geo-METAR SUBDIR += p5-Misc-Quality SUBDIR += p5-Net-GPSD3 SUBDIR += p5-Starlink-AST SUBDIR += p5-Weather-Underground SUBDIR += pal SUBDIR += phd2 SUBDIR += phoon SUBDIR += pngphoon SUBDIR += pp3 SUBDIR += py-alerce SUBDIR += py-astlib 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 SUBDIR += py-ephem SUBDIR += py-extension-helpers SUBDIR += py-fitsio SUBDIR += py-horoscopegenerator SUBDIR += py-indiweb SUBDIR += py-jplephem SUBDIR += py-kosmorrolib SUBDIR += py-metar SUBDIR += py-metpy SUBDIR += py-pyerfa SUBDIR += py-pykep SUBDIR += py-pymeeus SUBDIR += py-pymetar SUBDIR += py-pysofa SUBDIR += py-pysolar SUBDIR += py-pytest-astropy SUBDIR += py-pytest-astropy-header SUBDIR += py-pyvo SUBDIR += py-pywapi SUBDIR += py-ro SUBDIR += py-sgp4 SUBDIR += py-skyfield SUBDIR += py-skyfield-data SUBDIR += py-spacetrack + SUBDIR += py-spiceypy SUBDIR += py-spktype01 SUBDIR += py-spktype21 SUBDIR += py-sunpy SUBDIR += pykep SUBDIR += pyweather SUBDIR += qmapshack SUBDIR += readosm SUBDIR += rmap SUBDIR += routino SUBDIR += sextractor SUBDIR += siril SUBDIR += sofa SUBDIR += sscalc SUBDIR += stardates SUBDIR += starfetch SUBDIR += starplot SUBDIR += stars SUBDIR += stellarium SUBDIR += stellarsolver SUBDIR += sunclock SUBDIR += sunwait SUBDIR += swe SUBDIR += traccar SUBDIR += viking SUBDIR += wcslib SUBDIR += weather SUBDIR += wmglobe SUBDIR += wmjupiter SUBDIR += wmmoonclock SUBDIR += wmsolar SUBDIR += wmspaceweather SUBDIR += wmsun SUBDIR += xearth SUBDIR += xephem SUBDIR += xmoontool SUBDIR += xphoon SUBDIR += xplanet SUBDIR += xtide SUBDIR += xworld .include diff --git a/astro/py-spiceypy/Makefile b/astro/py-spiceypy/Makefile new file mode 100644 index 000000000000..d0bcf905fde2 --- /dev/null +++ b/astro/py-spiceypy/Makefile @@ -0,0 +1,33 @@ +PORTNAME= spiceypy +DISTVERSIONPREFIX= v +DISTVERSION= 8.1.0 +CATEGORIES= astro python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python wrapper for the NAIF C SPICE Toolkit +WWW= https://github.com/AndrewAnnex/SpiceyPy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython>=3.1:lang/cython@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-build-core>0:devel/py-scikit-build-core@${PY_FLAVOR} +LIB_DEPENDS= libcspice.so:astro/cspice +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.23.5:math/py-numpy@${PY_FLAVOR} + +USES= cmake:indirect python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= AndrewAnnex +GH_PROJECT= SpiceyPy + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +# Tests as of 8.1.0: many tests fail because they require SPICE kernels downloaded at runtime +# The test infrastructure has issues running offline, only test import during build +# See https://github.com/AndrewAnnex/SpiceyPy for details + +.include diff --git a/astro/py-spiceypy/distinfo b/astro/py-spiceypy/distinfo new file mode 100644 index 000000000000..084464bd9a4d --- /dev/null +++ b/astro/py-spiceypy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1779691884 +SHA256 (AndrewAnnex-SpiceyPy-v8.1.0_GH0.tar.gz) = d7c79eb65e4c1400deea2a5d6a9f1e018ba13ed7f71d072a7b831dda2da971d9 +SIZE (AndrewAnnex-SpiceyPy-v8.1.0_GH0.tar.gz) = 648843 diff --git a/astro/py-spiceypy/pkg-descr b/astro/py-spiceypy/pkg-descr new file mode 100644 index 000000000000..ebe46d48b8de --- /dev/null +++ b/astro/py-spiceypy/pkg-descr @@ -0,0 +1,6 @@ +SpiceyPy is a Python wrapper for the NAIF C SPICE Toolkit (CSPICE). +It provides a Pythonic interface to the underlying CSPICE library, +enabling space geometry calculations, ephemeris computations, and +other astrodynamics operations from Python. + +This package is a dependency of pykep for SPICE kernel support.