commit:     a71cef6c9c1394a512e39e01cec215c08251244d
Author:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
AuthorDate: Mon Jan 26 03:55:35 2026 +0000
Commit:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
CommitDate: Mon Jan 26 03:55:35 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a71cef6c

gui-apps/sway-audio-idle-inhibit: fix QA

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

 .../sway-audio-idle-inhibit-0.2.0.ebuild           | 23 +++++++++++---------
 .../sway-audio-idle-inhibit-9999.ebuild            | 25 ++++++++++++++--------
 2 files changed, 29 insertions(+), 19 deletions(-)

diff --git 
a/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-0.2.0.ebuild 
b/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-0.2.0.ebuild
index e504cec688..0f2ca85046 100644
--- a/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-0.2.0.ebuild
+++ b/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-0.2.0.ebuild
@@ -1,19 +1,27 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 inherit meson
 
+MY_PN="SwayAudioIdleInhibit"
+MY_P="${MY_PN}-${PV}"
+
 DESCRIPTION="Prevents swayidle from idle when an application is outputting or 
receiving audio"
 HOMEPAGE="https://github.com/ErikReider/SwayAudioIdleInhibit";
 
-SRC_URI="https://github.com/ErikReider/SwayAudioIdleInhibit/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
-S="${WORKDIR}/SwayAudioIdleInhibit-${PV}"
-LICENSE="GPL-3"
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/ErikReider/SwayAudioIdleInhibit.git";
+else
+       
SRC_URI="https://github.com/ErikReider/SwayAudioIdleInhibit/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/${MY_P}"
+fi
 
+LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
 
 IUSE="systemd"
 
@@ -37,8 +45,3 @@ src_configure() {
 
        meson_src_configure
 }
-
-src_install() {
-       meson_src_install
-       dodoc README.md
-}

diff --git 
a/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-9999.ebuild 
b/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-9999.ebuild
index a2dd861b0d..0f2ca85046 100644
--- a/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-9999.ebuild
+++ b/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-9999.ebuild
@@ -1,16 +1,28 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit git-r3 meson
+inherit meson
+
+MY_PN="SwayAudioIdleInhibit"
+MY_P="${MY_PN}-${PV}"
 
 DESCRIPTION="Prevents swayidle from idle when an application is outputting or 
receiving audio"
 HOMEPAGE="https://github.com/ErikReider/SwayAudioIdleInhibit";
-EGIT_REPO_URI="https://github.com/ErikReider/SwayAudioIdleInhibit.git";
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/ErikReider/SwayAudioIdleInhibit.git";
+else
+       
SRC_URI="https://github.com/ErikReider/SwayAudioIdleInhibit/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/${MY_P}"
+fi
 
 LICENSE="GPL-3"
-SLOT="0/9999"
+SLOT="0"
+
 IUSE="systemd"
 
 DEPEND="
@@ -33,8 +45,3 @@ src_configure() {
 
        meson_src_configure
 }
-
-src_install() {
-       meson_src_install
-       dodoc README.md
-}

Reply via email to