diff --git a/astro/Makefile b/astro/Makefile index 44139b635c3b..030c70e37c40 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -1,144 +1,145 @@ COMMENT = Astronomical ports SUBDIR += R-cran-maptools SUBDIR += accrete SUBDIR += astrometry SUBDIR += calcmysky SUBDIR += celestia SUBDIR += celestia-gtk SUBDIR += cfitsio SUBDIR += erfa SUBDIR += fowsr SUBDIR += foxtrotgps SUBDIR += geographiclib SUBDIR += gkrellmoon2 SUBDIR += gnuastro 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 += mymoon SUBDIR += nightfall SUBDIR += opencpn SUBDIR += openuniverse SUBDIR += oskar 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 += pp3 SUBDIR += ptiger SUBDIR += py-astlib SUBDIR += py-astral SUBDIR += py-astropy SUBDIR += py-astropy-helpers SUBDIR += py-ephem SUBDIR += py-extension-helpers 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-pywapi SUBDIR += py-ro SUBDIR += py-sgp4 SUBDIR += py-skyfield SUBDIR += py-skyfield-data SUBDIR += py-spacetrack SUBDIR += py-spktype01 SUBDIR += py-spktype21 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 += tclgeomap SUBDIR += tkgeomap SUBDIR += wcslib SUBDIR += weather SUBDIR += wmglobe SUBDIR += wmjupiter SUBDIR += wmmoonclock SUBDIR += wmsolar SUBDIR += wmspaceweather SUBDIR += wmsun SUBDIR += xearth SUBDIR += xeartk SUBDIR += xephem SUBDIR += xmoontool SUBDIR += xphoon SUBDIR += xplanet SUBDIR += xtide SUBDIR += xworld .include diff --git a/astro/starfetch/Makefile b/astro/starfetch/Makefile new file mode 100644 index 000000000000..a68e44bed04a --- /dev/null +++ b/astro/starfetch/Makefile @@ -0,0 +1,29 @@ +PORTNAME= starfetch +DISTVERSION= 0.0.3 +CATEGORIES= astro +MASTER_SITES= https://github.com/Haruno19/${PORTNAME}/releases/download/${DISTVERSION}/ + +MAINTAINER= DtxdF@disroot.org +COMMENT= Command line tool that displays constellations +WWW= https://github.com/Haruno19/starfetch/ + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +CXXFLAGS+= -std=c++17 + +post-patch: + @${REINPLACE_CMD} -e '/^string path = /s#=.*#= "${DATADIR}/";#' ${WRKSRC}/src/${PORTNAME}.cpp + +do-build: + ${CXX} ${CXXFLAGS} ${WRKSRC}/src/${PORTNAME}.cpp -o ${WRKSRC}/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +post-install: + ${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}/res && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/astro/starfetch/distinfo b/astro/starfetch/distinfo new file mode 100644 index 000000000000..de99ddcb44c0 --- /dev/null +++ b/astro/starfetch/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1666478439 +SHA256 (starfetch-0.0.3.tar.gz) = 4afb6e37c72464feb1813a574fe5a60c285e08ebfbf1f3e8f2b9318573c7497a +SIZE (starfetch-0.0.3.tar.gz) = 399822 diff --git a/astro/starfetch/pkg-descr b/astro/starfetch/pkg-descr new file mode 100644 index 000000000000..da1e90397943 --- /dev/null +++ b/astro/starfetch/pkg-descr @@ -0,0 +1,3 @@ +starfetch is a tool that prints out a scheme of a given constellation +and some information about it: its quadrant, its right ascension, +its declination, its area and its main stars number. diff --git a/astro/starfetch/pkg-plist b/astro/starfetch/pkg-plist new file mode 100644 index 000000000000..397c72cd19b4 --- /dev/null +++ b/astro/starfetch/pkg-plist @@ -0,0 +1,31 @@ +bin/starfetch +%%DATADIR%%/constellations/antlia.json +%%DATADIR%%/constellations/apus.json +%%DATADIR%%/constellations/aquarius.json +%%DATADIR%%/constellations/ara.json +%%DATADIR%%/constellations/aries.json +%%DATADIR%%/constellations/bootes.json +%%DATADIR%%/constellations/cancer.json +%%DATADIR%%/constellations/capricorn.json +%%DATADIR%%/constellations/cassiopeia.json +%%DATADIR%%/constellations/corona_borealis.json +%%DATADIR%%/constellations/crux.json +%%DATADIR%%/constellations/cygnus.json +%%DATADIR%%/constellations/gemini.json +%%DATADIR%%/constellations/leo.json +%%DATADIR%%/constellations/libra.json +%%DATADIR%%/constellations/lupus.json +%%DATADIR%%/constellations/ophiuchus.json +%%DATADIR%%/constellations/orion.json +%%DATADIR%%/constellations/pisces.json +%%DATADIR%%/constellations/sagittarius.json +%%DATADIR%%/constellations/scorpio.json +%%DATADIR%%/constellations/taurus.json +%%DATADIR%%/constellations/ursa_major.json +%%DATADIR%%/constellations/ursa_minor.json +%%DATADIR%%/constellations/virgo.json +%%DATADIR%%/constellations/canes_venatici.json +%%DATADIR%%/constellations/lyra.json +%%DATADIR%%/constellations/monoceros.json +%%DATADIR%%/help_message.txt +%%DATADIR%%/template