git: 180c65af41a3 - main - astro/starfetch: New port: Command line tool that displays constellations
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Oct 2022 19:30:33 UTC
The branch main has been updated by eduardo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=180c65af41a33abd17046187d74c2e5f6cb77624
commit 180c65af41a33abd17046187d74c2e5f6cb77624
Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2022-10-23 19:25:53 +0000
Commit: Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-10-23 19:25:53 +0000
astro/starfetch: New port: Command line tool that displays constellations
- submitter becomes maintainer
Description:
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.
WWW: https://github.com/Haruno19/starfetch/
PR: 267183
---
astro/Makefile | 1 +
astro/starfetch/Makefile | 29 +++++++++++++++++++++++++++++
astro/starfetch/distinfo | 3 +++
astro/starfetch/pkg-descr | 3 +++
astro/starfetch/pkg-plist | 31 +++++++++++++++++++++++++++++++
5 files changed, 67 insertions(+)
diff --git a/astro/Makefile b/astro/Makefile
index 44139b635c3b..030c70e37c40 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -115,6 +115,7 @@
SUBDIR += sofa
SUBDIR += sscalc
SUBDIR += stardates
+ SUBDIR += starfetch
SUBDIR += starplot
SUBDIR += stars
SUBDIR += stellarium
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 <bsd.port.mk>
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