commit:     9e17c06c89e968c45fe8f4042145aecf65897039
Author:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
AuthorDate: Mon Nov  3 15:48:25 2025 +0000
Commit:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
CommitDate: Mon Nov  3 15:48:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9e17c06c

app-portage/carnage: fix style, add 9999

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

 app-portage/carnage/carnage-1.0.ebuild                 | 18 +++++++++---------
 .../{carnage-1.0.ebuild => carnage-9999.ebuild}        | 18 +++++++++---------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/app-portage/carnage/carnage-1.0.ebuild 
b/app-portage/carnage/carnage-1.0.ebuild
index ff4a5f0e32..8d7fb12506 100644
--- a/app-portage/carnage/carnage-1.0.ebuild
+++ b/app-portage/carnage/carnage-1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -10,11 +10,17 @@ inherit distutils-r1 optfeature desktop xdg
 
 DESCRIPTION="TUI front-end for Portage and eix"
 HOMEPAGE="https://github.com/dsafxP/carnage";
-SRC_URI="https://github.com/dsafxP/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/dsafxP/carnage.git";
+else
+       SRC_URI="https://github.com/dsafxP/carnage/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64"
 
 RDEPEND="
        >=dev-python/lxml-6.0.2[${PYTHON_USEDEP}]
@@ -35,10 +41,4 @@ src_install() {
 
 pkg_postinst() {
        optfeature "package & use flag browsing" app-portage/eix
-
-       xdg_pkg_postinst
-}
-
-pkg_postrm() {
-       xdg_pkg_postrm
 }

diff --git a/app-portage/carnage/carnage-1.0.ebuild 
b/app-portage/carnage/carnage-9999.ebuild
similarity index 74%
copy from app-portage/carnage/carnage-1.0.ebuild
copy to app-portage/carnage/carnage-9999.ebuild
index ff4a5f0e32..8d7fb12506 100644
--- a/app-portage/carnage/carnage-1.0.ebuild
+++ b/app-portage/carnage/carnage-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -10,11 +10,17 @@ inherit distutils-r1 optfeature desktop xdg
 
 DESCRIPTION="TUI front-end for Portage and eix"
 HOMEPAGE="https://github.com/dsafxP/carnage";
-SRC_URI="https://github.com/dsafxP/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/dsafxP/carnage.git";
+else
+       SRC_URI="https://github.com/dsafxP/carnage/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64"
 
 RDEPEND="
        >=dev-python/lxml-6.0.2[${PYTHON_USEDEP}]
@@ -35,10 +41,4 @@ src_install() {
 
 pkg_postinst() {
        optfeature "package & use flag browsing" app-portage/eix
-
-       xdg_pkg_postinst
-}
-
-pkg_postrm() {
-       xdg_pkg_postrm
 }

Reply via email to