Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neofetch: support MacPorts on non-Darwin systems #25458

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sysutils/neofetch/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PortSystem 1.0
PortGroup github 1.0

github.setup dylanaraps neofetch 7.1.0
revision 1
platforms any
supported_archs noarch
license MIT
Expand All @@ -20,5 +21,7 @@ checksums rmd160 c9db23b6959aa7d0b8b6de68c05994f80d1e846a \
sha256 c99d704d2f321d24a4655ce3fc052fd79539493dc75c025237ad78e93f9749bf \
size 95403

patchfiles-append 0001-Support-MacPorts-on-non-Darwin-systems.patch

use_configure no
destroot.post_args ${destroot.destdir} PREFIX=${prefix}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 6cb9041c463cea4df03fd52f736cadee959d3bef Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <[email protected]>
Date: Sun, 25 Aug 2024 08:33:46 +0800
Subject: [PATCH] Support MacPorts on non-Darwin systems

---
neofetch | 1 +
1 file changed, 1 insertion(+)

diff --git neofetch neofetch
index 48b96d21..b00bae27 100755
--- neofetch
+++ neofetch
@@ -1504,6 +1504,7 @@
has alps && tot alps showinstalled
has butch && tot butch list
has mine && tot mine -q
+ has port && pkgs_h=1 tot port installed && ((packages-=1))

# Counting files/dirs.
# Variables need to be unquoted here. Only Bedrock Linux is affected.