Bug 267183 - [NEW PORT] astro/starfetch: Command line tool that displays constellations
Summary: [NEW PORT] astro/starfetch: Command line tool that displays constellations
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nuno Teixeira
URL: https://github.com/Haruno19/starfetch/
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-18 19:26 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2022-10-23 19:37 UTC (History)
2 users (show)

See Also:


Attachments
starfetch-0.0.2 (4.58 KB, patch)
2022-10-18 19:26 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff
starfetch-0.0.3 (3.98 KB, patch)
2022-10-22 23:02 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff
starfetch-0.0.3 (3.98 KB, patch)
2022-10-23 10:40 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo 2022-10-18 19:26:05 UTC
Created attachment 237440 [details]
starfetch-0.0.2

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/

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2022-10-22 20:35:03 UTC
====> Running Q/A tests (stage-qa)
Warning: Possible REINPLACE_CMD issues:
- - REINPLACE_CMD ran, but did not modify file contents: src/starfetch.cpp
Comment 2 Jesús Daniel Colmenares Oviedo 2022-10-22 21:09:58 UTC
(In reply to Nuno Teixeira from comment #1)

Hi!

> REINPLACE_CMD ran, but did not modify file contents: src/starfetch.cpp

This warning is because by default, the value of that variable is /usr/local/share/starfetch/. Therefore, when sed_checked.sh modifies the contents of src/starfetch.cpp, it warns because there is no change. But this warning should disappear when DATADIR is a different path:

With the same DATADIR:
  # make patch
  $ cat work/reinplace_warnings.txt
  - - REINPLACE_CMD ran, but did not modify file contents: src/starfetch.cpp
  $ rg --pcre2 '^string path' work/starfetch-0.0.2/src/starfetch.cpp
  26:string path = "/usr/local/share/starfetch/";

With a different DATADIR:
  # make DATADIR=/tmp/starfetch patch
  $ test -f 'work/reinplace_warnings.txt'; echo $?
  1
  $ rg --pcre2 '^string path' work/starfetch-0.0.2/src/starfetch.cpp
  26:string path = "/tmp/starfetch/";
Comment 3 Nuno Teixeira freebsd_committer freebsd_triage 2022-10-22 21:34:26 UTC
(In reply to Jesús Daniel Colmenares Oviedo from comment #2)

Ok, I did understand.
Comment 4 Nuno Teixeira freebsd_committer freebsd_triage 2022-10-22 22:01:51 UTC
0.0.3 is out

Sugestions:

- switch to MASTER_SITES, since upstream provides static tarball now
- switch to DISTVERSION as recomended in Porter's Handook

Cheers
Comment 5 Jesús Daniel Colmenares Oviedo 2022-10-22 23:02:02 UTC
Created attachment 237543 [details]
starfetch-0.0.3

Description:

* Update to 0.0.3
* Switch to DISTVERSION
* Switch to MASTER_SITES
* Remove patch to res/constellations/crux.json (see pr #19 [1])
* Add new constellations in pkg-plist

[1] https://github.com/Haruno19/starfetch/pull/19

ChangeLog: https://github.com/Haruno19/starfetch/releases/tag/0.0.3

* Adding new constellations to starfetch:
  - Monoceros
  - Lyra
  - Canes Venatici

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2022-10-23 09:18:54 UTC
This should be in astro not in games?
Comment 7 Jesús Daniel Colmenares Oviedo 2022-10-23 10:40:00 UTC
Created attachment 237554 [details]
starfetch-0.0.3

> This should be in astro not in games?

That makes more sense, thank you!
Comment 8 commit-hook freebsd_committer freebsd_triage 2022-10-23 19:31:09 UTC
A commit in branch main references this bug:

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 (new)  | 29 +++++++++++++++++++++++++++++
 astro/starfetch/distinfo (new)  |  3 +++
 astro/starfetch/pkg-descr (new) |  3 +++
 astro/starfetch/pkg-plist (new) | 31 +++++++++++++++++++++++++++++++
 5 files changed, 67 insertions(+)
Comment 9 Nuno Teixeira freebsd_committer freebsd_triage 2022-10-23 19:37:13 UTC
Committed, thanks!