commit: 9197795c31736b353465cf5ccd0d14d6adecc5e2
Author: Brayan M. Salazar <this.brayan <AT> proton <DOT> me>
AuthorDate: Tue Jun 10 19:51:51 2025 +0000
Commit: Brayan <this.brayan <AT> proton <DOT> me>
CommitDate: Tue Jun 10 19:56:39 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9197795c
media-sound/qbitmplayer: Simplify USE validation.
Fixed bug:
The 'network' USE flag requires that 'dbus' is enabled as well.
Signed-off-by: Brayan M. Salazar <this.brayan <AT> proton.me>
...er-3.2.0.ebuild => qbitmplayer-3.2.0-r1.ebuild} | 32 ++++++----------------
1 file changed, 8 insertions(+), 24 deletions(-)
diff --git a/media-sound/qbitmplayer/qbitmplayer-3.2.0.ebuild
b/media-sound/qbitmplayer/qbitmplayer-3.2.0-r1.ebuild
similarity index 75%
rename from media-sound/qbitmplayer/qbitmplayer-3.2.0.ebuild
rename to media-sound/qbitmplayer/qbitmplayer-3.2.0-r1.ebuild
index c0c0988946..30fbb87d01 100644
--- a/media-sound/qbitmplayer/qbitmplayer-3.2.0.ebuild
+++ b/media-sound/qbitmplayer/qbitmplayer-3.2.0-r1.ebuild
@@ -29,6 +29,10 @@ BDEPEND="
virtual/pkgconfig
"
+REQUIRED_USE="
+ network? ( dbus )
+"
+
src_prepare() {
cmake_src_prepare
}
@@ -36,31 +40,11 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DQT_VERSION_MAJOR=6
+ -DENABLE_IPC="$(usex dbus)"
+ -DENABLE_NOTIFICATIONS="$(usex libnotify)"
+ -DENABLE_VIDEO_PLAYER="$(usex video)"
+ -DSINGLE_INSTANCE="$(usex network)"
)
- if use dbus; then
- mycmakeargs+=(
- -DENABLE_IPC=1
- )
- fi
-
- if use libnotify; then
- mycmakeargs+=(
- -DENABLE_NOTIFICATIONS=1
- )
- fi
-
- if use network; then
- mycmakeargs+=(
- -DSINGLE_INSTANCE=1
- )
- fi
-
- if use video; then
- mycmakeargs+=(
- -DENABLE_VIDEO_PLAYER=1
- )
- fi
-
cmake_src_configure
}