From nobody Sun Oct 23 19:30:33 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MwSwT3Xzrz4g4kx; Sun, 23 Oct 2022 19:30:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MwSwT36FJz4550; Sun, 23 Oct 2022 19:30:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666553433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iU0vzqWp8vCXmiEYEK9MgWkuiY6GE4BnyHG4m9C9CC0=; b=A20R1aAUbwii1vOLIOgZiICjdPtGUlVWygi4wjTnKVb+dGfBVVrYKeuaDcPk4q+lHdfnzL 0awKER9jnIDmGi9HECFrv0EA/Ill+ur9PO6njn7CW6dmsGuBWG4X1aI79bHmFuQ2nqU2fv bI6ShzzSFS4dLtrVZ7wqkFpffsGNVKPEAZIWg8mThgdZK3WizS0NL9SCmu8n7J8uvdIpVt XRLO65YqMM8gqSday7KekF+M9OyjN+RzIBoa9Dzp7m787gLgpkrO3NibnT7LEzhTQsQzOQ pXXTWmTKW/1xHKO3c423uW5qkpwkd7ED2LZY6R7FP6NdtyRzsPxRfTIGG6edgQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MwSwT1rMwz10Vw; Sun, 23 Oct 2022 19:30:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29NJUXHn095355; Sun, 23 Oct 2022 19:30:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29NJUX4p095354; Sun, 23 Oct 2022 19:30:33 GMT (envelope-from git) Date: Sun, 23 Oct 2022 19:30:33 GMT Message-Id: <202210231930.29NJUX4p095354@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: 180c65af41a3 - main - astro/starfetch: New port: Command line tool that displays constellations List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 180c65af41a33abd17046187d74c2e5f6cb77624 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666553433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iU0vzqWp8vCXmiEYEK9MgWkuiY6GE4BnyHG4m9C9CC0=; b=v0bf+E8rg/1MwRdx6mVsUNbgvoyB2vR1GCnhkdXEaHlgHRwlQpTfT7s8dhSXIFIjHUki4l nU+EKcDxEvHPh7xhbJipkkD97IrRtfYwV1ggFIGk1tdchewZkU2zB2k1vxYlkazM0ryexI AL+YYdzVWCAzphF+ZN9+mQ8GPjnc29F+3D8PcSQ5St+Z6dQVmXpJbS+vnlnHz1FtWX+UXP cwlsOh1QKYT58ukqlDk9EEKR1otre0iK9gC1GWfvTf02ToPzvm0EKJ2oVfnrjMZDymq9yj HKzA0OXCW0xfK9jF+mHkkmt5VK5kf+hHC4fMMSC8Kz+qptS5RWeEDOJzgzq2Xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666553433; a=rsa-sha256; cv=none; b=ZN7KoVN1z8Nu5w8yCIX7kTuyLbI1phZWiz3Pgwx2Gy1KYYyq+xEea+U/K3jhOED/dkIC4h RJbSxUV8Kz+FQc+cApymoA8QDb65/J50xYHz0iqvj+SaNrWo4FGSXGQUYHu6wGP6Mq+ClI if3xrcXSgOvy3OpPL4cNV58q0DGxQXkzBZtpAMfj1uJbWClIRXgpuGvbrFhimX2ne1QGTQ KKWznoycqvb8sbQXa8Z4MMeiFHKjr1ktSxjy3IsjGVWUV+PWoqh/tWYjdISfhUuavvuzpH fJpheVNIxck+xMWzBikDTbEIya+rfMknWuWCtYUk5OfCCWRwoxim1xHEVEM+Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2022-10-23 19:25:53 +0000 Commit: Nuno Teixeira 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 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