diff --git a/sysutils/neofetch/Portfile b/sysutils/neofetch/Portfile index e4c5dd9e6e258..bfe8f052aabac 100644 --- a/sysutils/neofetch/Portfile +++ b/sysutils/neofetch/Portfile @@ -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 @@ -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} diff --git a/sysutils/neofetch/files/0001-Support-MacPorts-on-non-Darwin-systems.patch b/sysutils/neofetch/files/0001-Support-MacPorts-on-non-Darwin-systems.patch new file mode 100644 index 0000000000000..51573d76a6174 --- /dev/null +++ b/sysutils/neofetch/files/0001-Support-MacPorts-on-non-Darwin-systems.patch @@ -0,0 +1,21 @@ +From 6cb9041c463cea4df03fd52f736cadee959d3bef Mon Sep 17 00:00:00 2001 +From: Sergey Fedorov +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.