<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/beed168da0c34044d5bb49c7375d6e5c2e2cea20">https://github.com/macports/macports-ports/commit/beed168da0c34044d5bb49c7375d6e5c2e2cea20</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit beed168da0c34044d5bb49c7375d6e5c2e2cea20
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Wed Aug 28 19:38:52 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> hyfetch: support host info for PowerPC Macs and MacPorts on Linux/BSD
</span>---
python/hyfetch/Portfile | 8 ++++-
...eofetch-add-info-for-PowerMac-iMac-models.patch | 37 ++++++++++++++++++++++
...fetch-add-info-for-PowerBook-iBook-models.patch | 31 ++++++++++++++++++
...03-neofetch-support-MacPorts-on-Linux-BSD.patch | 21 ++++++++++++
4 files changed, 96 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/hyfetch/Portfile b/python/hyfetch/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3227b0dbdaa..05297dafcd2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/hyfetch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/hyfetch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup python 1.0
</span> python.rootname HyFetch
name [string tolower ${python.rootname}]
version 1.4.11
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 3
</span> categories-append sysutils
platforms {darwin any}
supported_archs noarch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,3 +27,9 @@ python.default_version 312
</span>
depends_run-append port:py${python.version}-setuptools \
port:py${python.version}-typing_extensions
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/hykilpikonna/hyfetch/pull/340
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/hykilpikonna/hyfetch/pull/341
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append 0001-neofetch-add-info-for-PowerMac-iMac-models.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0002-neofetch-add-info-for-PowerBook-iBook-models.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0003-neofetch-support-MacPorts-on-Linux-BSD.patch
</span><span style='display:block; white-space:pre;color:#808080;'>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
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4052bed6765
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/hyfetch/files/0001-neofetch-add-info-for-PowerMac-iMac-models.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,37 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 753d35b56edff7b7450675378b70a31f6eed0577 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <barracuda@macos-powerpc.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 28 Aug 2024 18:56:46 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] neofetch: add info for PowerMac/iMac models
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ neofetch | 17 +++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 17 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git neofetch neofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 927c03f5..4f38b69d 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- hyfetch/scripts/neowofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ hyfetch/scripts/neowofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1698,6 +1698,23 @@ get_model() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iMac11,2): "iMac (21.5-inch, Mid 2010)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iMac10,1): "iMac (27/21.5-inch, Late 2009)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iMac9,1): "iMac (24/20-inch, Early 2009)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac12,1): "iMac G5 (20/17-inch, iSight)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac11,2): "Power Macintosh G5" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac8,2): "iMac G5 (20/17-inch, ALS)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac8,1): "iMac G5 (20/17-inch)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac7,[2-3]): "Power Macintosh G5 (PCI/PCI-X)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac6,4): "eMac G4" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac6,3): "iMac G4 (20/17/15-inch, USB 2.0)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac6,1): "iMac G4 (17-inch, Flat Panel)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac5,1): "Power Macintosh G4 Cube" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac4,5): "iMac G4 (17-inch, Flat Panel)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac4,4): "eMac G4" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac4,1): "iMac G3" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac3,6): "Power Macintosh G4 (MDD/FW800)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac3,5): "Power Macintosh G4 (Quicksilver)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac3,4): "Power Macintosh G4 (Digital Audio)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac3,3): "Power Macintosh G4 (Gigabit)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerMac3,1): "Power Macintosh G4 (AGP)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *): "$model" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>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
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9135af93d7d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/hyfetch/files/0002-neofetch-add-info-for-PowerBook-iBook-models.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From a609edc5050a9ca5641cb4f3f30948e5dc2e0bbd Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <barracuda@macos-powerpc.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 28 Aug 2024 19:25:22 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] neofetch: add info for PowerBook/iBook models
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ neofetch | 11 +++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 11 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git neofetch neofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 4f38b69d..1ee4d785 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- hyfetch/scripts/neowofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ hyfetch/scripts/neowofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1715,6 +1715,17 @@ get_model() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PowerMac3,4): "Power Macintosh G4 (Digital Audio)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PowerMac3,3): "Power Macintosh G4 (Gigabit)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PowerMac3,1): "Power Macintosh G4 (AGP)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook6,8 | PowerBook6,4 | PowerBook6,1): "PowerBook G4 (17/15/12-inch, Al)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook6,7 | PowerBook6,5 | PowerBook6,3): "iBook G4 (14/12-inch)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook6,2): "PowerBook G4 (12-inch, DVI - Al)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook5,[8-9]): "PowerBook G4 (17/15-inch, DLSD/HR - Al)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook5,[3-7] | PowerBook5,1): "PowerBook G4 (17/15/12-inch, Al)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook5,2): "PowerBook G4 (15-inch, FW800 - Al)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook4,[1-3]): "iBook G3" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook3,5): "PowerBook G4 (Ti)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook3,4): "PowerBook G4 (DVI - Ti)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook3,3): "PowerBook G4 (Gigabit - Ti)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PowerBook3,2): "PowerBook G4 (Original - Ti)" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *): "$model" ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>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
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1de19c7ba53
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/hyfetch/files/0003-neofetch-support-MacPorts-on-Linux-BSD.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,21 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From d309f2d8a8f7bd490bfe29754882a5f3c923d174 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <barracuda@macos-powerpc.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 28 Aug 2024 18:35:38 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] neofetch: support MacPorts on Linux & BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ neofetch | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git neofetch neofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 927c03f5..6a50c196 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- hyfetch/scripts/neowofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ hyfetch/scripts/neowofetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2098,6 +2098,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ has evox && tot cat /var/evox/packages/DB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ has squirrel && tot ls /var/packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ has tea && tot find "$HOME/.tea" -maxdepth 2 -mindepth 2 -type d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ has port && pkgs_h=1 tot port installed && ((packages-=1))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Using the dnf package cache is much faster than rpm.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
</span></pre><pre style='margin:0'>
</pre>