Bug 273039 - astro/starfetch: Update to 0.0.4
Summary: astro/starfetch: Update to 0.0.4
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: Robert Clausecker
URL: https://github.com/Haruno19/starfetch...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-10 08:48 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2023-08-13 09:48 UTC (History)
1 user (show)

See Also:


Attachments
starfetch-0.0.4.patch (2.87 KB, patch)
2023-08-10 08:48 UTC, Jesús Daniel Colmenares Oviedo
DtxdF: maintainer-approval+
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 2023-08-10 08:48:10 UTC
Created attachment 243998 [details]
starfetch-0.0.4.patch

Description:

* Use a hardcoded string instead of ${PORTNAME}
* Remove AppleDouble encoded Macintosh files
  (included in this release, cause `Abort (core dumped)`)

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

* Overall better and cleaner code
* Compatibility for Windows systems
* Full Qt5/6 GUI version for starfetch
* Lets the user choose between black, white, cyan, magenta, yellow,
  red and blue to color part of the output

QA:

* portlint: OK (looks fine.)
* testport: (poudriere: 13.2-RELEASE, amd64):
  - Warning: Possible REINPLACE_CMD issues:
    - - REINPLACE_CMD ran, but did not modify file contents: src/starfetch.cpp
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-08-10 14:29:56 UTC
Instead of ${FIND} ... -exec ${RM} {} \;, you can filter files during COPYTREE_SHARE.  I'll amend the patch to do this for you.

There is no need to strip the binary again.  ${INSTALL_PROGRAM} already strips programs it installs for you.

I'll also go ahead and merge post-install into do-install.  There does not seem to be a reason to have both.

Lastly, your compiler invocation should obey all of CPPFLAGS, CXXFLAGS, and LDFLAGS.  I'll go ahead and edit the missing ones in.
Comment 2 Jesús Daniel Colmenares Oviedo 2023-08-10 18:52:39 UTC
(In reply to Robert Clausecker from comment #1)

Thanks Robert, I'll keep that in mind!
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-08-13 09:42:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d0f288a5599116fc41163034ebd62a3d8c8e6277

commit d0f288a5599116fc41163034ebd62a3d8c8e6277
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-08-10 08:46:40 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-08-13 09:32:55 +0000

    astro/starfetch: Update to 0.0.4

    * Remove trailing slash in WWW
    * Use a hardcoded string instead of ${PORTNAME}
    * Remove AppleDouble encoded Macintosh files
      (included in this release, cause `Abort (core dumped)`)

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

    * Overall better and cleaner code
    * Compatibility for Windows systems
    * Full Qt5/6 GUI version for starfetch
    * Lets the user choose between black, white, cyan, magenta, yellow,
      red and blue to color part of the output

    PR:             273039

 astro/starfetch/Makefile | 18 +++++++-----------
 astro/starfetch/distinfo |  6 +++---
 2 files changed, 10 insertions(+), 14 deletions(-)
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2023-08-13 09:48:15 UTC
Thank you for your contribution.