diff --git a/python/hyfetch/Portfile b/python/hyfetch/Portfile index 9954a1c451497..b09cb87370ebe 100644 --- a/python/hyfetch/Portfile +++ b/python/hyfetch/Portfile @@ -5,8 +5,8 @@ PortGroup python 1.0 python.rootname HyFetch name [string tolower ${python.rootname}] -version 1.4.11 -revision 3 +version 1.99.0 +revision 0 categories-append sysutils platforms {darwin any} supported_archs noarch @@ -18,18 +18,15 @@ long_description {*}${description}. homepage https://github.com/hykilpikonna/hyfetch -checksums rmd160 2239681635a7608f2f99d466247f852756d74607 \ - sha256 9fa2c9c049ebaf0ad6d4e8e076ce90e64a4b9276946a1d2ffb6912bb1a4aa327 \ - size 278449 +checksums rmd160 8e652106a8ca71d3a2a35d62510972db747daefe \ + sha256 ddeb422fd797c710f0ad37d584fac466df89e39feddeef765492b2c0b529616e \ + size 440751 # This should stay consistent with the python PG default python.default_version 312 -depends_run-append port:py${python.version}-setuptools \ - port:py${python.version}-typing_extensions +variant fastfetch description {Use fastfetch backend} { + depends_run-append path:bin/fastfetch:fastfetch +} -# https://github.com/hykilpikonna/hyfetch/pull/340 -# https://github.com/hykilpikonna/hyfetch/pull/341 -patchfiles-append 0001-neofetch-add-info-for-PowerMac-iMac-models.patch \ - 0002-neofetch-add-info-for-PowerBook-iBook-models.patch \ - 0003-neofetch-support-MacPorts-on-Linux-BSD.patch +depends_run-append port:py${python.version}-typing_extensions diff --git a/python/hyfetch/files/0001-neofetch-add-info-for-PowerMac-iMac-models.patch b/python/hyfetch/files/0001-neofetch-add-info-for-PowerMac-iMac-models.patch deleted file mode 100644 index 4052bed67657f..0000000000000 --- a/python/hyfetch/files/0001-neofetch-add-info-for-PowerMac-iMac-models.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 753d35b56edff7b7450675378b70a31f6eed0577 Mon Sep 17 00:00:00 2001 -From: Sergey Fedorov -Date: Wed, 28 Aug 2024 18:56:46 +0800 -Subject: [PATCH] neofetch: add info for PowerMac/iMac models - ---- - neofetch | 17 +++++++++++++++++ - 1 file changed, 17 insertions(+) - -diff --git neofetch neofetch -index 927c03f5..4f38b69d 100755 ---- hyfetch/scripts/neowofetch -+++ hyfetch/scripts/neowofetch -@@ -1698,6 +1698,23 @@ get_model() { - iMac11,2): "iMac (21.5-inch, Mid 2010)" ;; - iMac10,1): "iMac (27/21.5-inch, Late 2009)" ;; - iMac9,1): "iMac (24/20-inch, Early 2009)" ;; -+ PowerMac12,1): "iMac G5 (20/17-inch, iSight)" ;; -+ PowerMac11,2): "Power Macintosh G5" ;; -+ PowerMac8,2): "iMac G5 (20/17-inch, ALS)" ;; -+ PowerMac8,1): "iMac G5 (20/17-inch)" ;; -+ PowerMac7,[2-3]): "Power Macintosh G5 (PCI/PCI-X)" ;; -+ PowerMac6,4): "eMac G4" ;; -+ PowerMac6,3): "iMac G4 (20/17/15-inch, USB 2.0)" ;; -+ PowerMac6,1): "iMac G4 (17-inch, Flat Panel)" ;; -+ PowerMac5,1): "Power Macintosh G4 Cube" ;; -+ PowerMac4,5): "iMac G4 (17-inch, Flat Panel)" ;; -+ PowerMac4,4): "eMac G4" ;; -+ PowerMac4,1): "iMac G3" ;; -+ PowerMac3,6): "Power Macintosh G4 (MDD/FW800)" ;; -+ PowerMac3,5): "Power Macintosh G4 (Quicksilver)" ;; -+ PowerMac3,4): "Power Macintosh G4 (Digital Audio)" ;; -+ PowerMac3,3): "Power Macintosh G4 (Gigabit)" ;; -+ PowerMac3,1): "Power Macintosh G4 (AGP)" ;; - *): "$model" ;; - esac - diff --git a/python/hyfetch/files/0002-neofetch-add-info-for-PowerBook-iBook-models.patch b/python/hyfetch/files/0002-neofetch-add-info-for-PowerBook-iBook-models.patch deleted file mode 100644 index 9135af93d7df1..0000000000000 --- a/python/hyfetch/files/0002-neofetch-add-info-for-PowerBook-iBook-models.patch +++ /dev/null @@ -1,31 +0,0 @@ -From a609edc5050a9ca5641cb4f3f30948e5dc2e0bbd Mon Sep 17 00:00:00 2001 -From: Sergey Fedorov -Date: Wed, 28 Aug 2024 19:25:22 +0800 -Subject: [PATCH] neofetch: add info for PowerBook/iBook models - ---- - neofetch | 11 +++++++++++ - 1 file changed, 11 insertions(+) - -diff --git neofetch neofetch -index 4f38b69d..1ee4d785 100755 ---- hyfetch/scripts/neowofetch -+++ hyfetch/scripts/neowofetch -@@ -1715,6 +1715,17 @@ get_model() { - PowerMac3,4): "Power Macintosh G4 (Digital Audio)" ;; - PowerMac3,3): "Power Macintosh G4 (Gigabit)" ;; - PowerMac3,1): "Power Macintosh G4 (AGP)" ;; -+ PowerBook6,8 | PowerBook6,4 | PowerBook6,1): "PowerBook G4 (17/15/12-inch, Al)" ;; -+ PowerBook6,7 | PowerBook6,5 | PowerBook6,3): "iBook G4 (14/12-inch)" ;; -+ PowerBook6,2): "PowerBook G4 (12-inch, DVI - Al)" ;; -+ PowerBook5,[8-9]): "PowerBook G4 (17/15-inch, DLSD/HR - Al)" ;; -+ PowerBook5,[3-7] | PowerBook5,1): "PowerBook G4 (17/15/12-inch, Al)" ;; -+ PowerBook5,2): "PowerBook G4 (15-inch, FW800 - Al)" ;; -+ PowerBook4,[1-3]): "iBook G3" ;; -+ PowerBook3,5): "PowerBook G4 (Ti)" ;; -+ PowerBook3,4): "PowerBook G4 (DVI - Ti)" ;; -+ PowerBook3,3): "PowerBook G4 (Gigabit - Ti)" ;; -+ PowerBook3,2): "PowerBook G4 (Original - Ti)" ;; - *): "$model" ;; - esac - diff --git a/python/hyfetch/files/0003-neofetch-support-MacPorts-on-Linux-BSD.patch b/python/hyfetch/files/0003-neofetch-support-MacPorts-on-Linux-BSD.patch deleted file mode 100644 index 1de19c7ba53e7..0000000000000 --- a/python/hyfetch/files/0003-neofetch-support-MacPorts-on-Linux-BSD.patch +++ /dev/null @@ -1,21 +0,0 @@ -From d309f2d8a8f7bd490bfe29754882a5f3c923d174 Mon Sep 17 00:00:00 2001 -From: Sergey Fedorov -Date: Wed, 28 Aug 2024 18:35:38 +0800 -Subject: [PATCH] neofetch: support MacPorts on Linux & BSD - ---- - neofetch | 1 + - 1 file changed, 1 insertion(+) - -diff --git neofetch neofetch -index 927c03f5..6a50c196 100755 ---- hyfetch/scripts/neowofetch -+++ hyfetch/scripts/neowofetch -@@ -2098,6 +2098,7 @@ - has evox && tot cat /var/evox/packages/DB - has squirrel && tot ls /var/packages - has tea && tot find "$HOME/.tea" -maxdepth 2 -mindepth 2 -type d -+ has port && pkgs_h=1 tot port installed && ((packages-=1)) - - # Using the dnf package cache is much faster than rpm. - if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then