commit:     9b9b42ea25b255948d5fc9026a23eb2f5630e005
Author:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
AuthorDate: Tue Dec  9 00:18:00 2025 +0000
Commit:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
CommitDate: Tue Dec  9 00:18:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9b9b42ea

app-misc/pfetch: add 9999

Signed-off-by: dsaf <ghostyn678+git <AT> gmail.com>

 app-misc/pfetch/pfetch-1.9.4.ebuild                         | 10 ++++++++--
 app-misc/pfetch/{pfetch-1.9.4.ebuild => pfetch-9999.ebuild} | 10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/app-misc/pfetch/pfetch-1.9.4.ebuild 
b/app-misc/pfetch/pfetch-1.9.4.ebuild
index 308725d217..7bda6aef61 100644
--- a/app-misc/pfetch/pfetch-1.9.4.ebuild
+++ b/app-misc/pfetch/pfetch-1.9.4.ebuild
@@ -5,11 +5,17 @@ EAPI=8
 
 DESCRIPTION="A pretty system information tool written in POSIX sh"
 HOMEPAGE="https://github.com/Un1q32/pfetch";
-SRC_URI="https://github.com/Un1q32/pfetch/archive/${PV}/${P}.tar.gz";
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/Un1q32/pfetch.git";
+else
+       SRC_URI="https://github.com/Un1q32/pfetch/archive/${PV}/${P}.tar.gz";
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64"
 
 src_install() {
        emake PREFIX=/usr DESTDIR="${D}" install

diff --git a/app-misc/pfetch/pfetch-1.9.4.ebuild 
b/app-misc/pfetch/pfetch-9999.ebuild
similarity index 61%
copy from app-misc/pfetch/pfetch-1.9.4.ebuild
copy to app-misc/pfetch/pfetch-9999.ebuild
index 308725d217..7bda6aef61 100644
--- a/app-misc/pfetch/pfetch-1.9.4.ebuild
+++ b/app-misc/pfetch/pfetch-9999.ebuild
@@ -5,11 +5,17 @@ EAPI=8
 
 DESCRIPTION="A pretty system information tool written in POSIX sh"
 HOMEPAGE="https://github.com/Un1q32/pfetch";
-SRC_URI="https://github.com/Un1q32/pfetch/archive/${PV}/${P}.tar.gz";
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/Un1q32/pfetch.git";
+else
+       SRC_URI="https://github.com/Un1q32/pfetch/archive/${PV}/${P}.tar.gz";
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64"
 
 src_install() {
        emake PREFIX=/usr DESTDIR="${D}" install

Reply via email to