commit:     85c3d49319c1ca68d1012133c3b0dbd944b79734
Author:     Brayan M. Salazar <this.brayan <AT> proton <DOT> me>
AuthorDate: Mon Jun  9 12:05:21 2025 +0000
Commit:     Brayan <this.brayan <AT> proton <DOT> me>
CommitDate: Mon Jun  9 12:06:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=85c3d493

media-sound/qbitmplayer: add 3.2.0, drop 2.9.5

Signed-off-by: Brayan M. Salazar <this.brayan <AT> proton.me>

 media-sound/qbitmplayer/Manifest                      |  2 +-
 media-sound/qbitmplayer/metadata.xml                  | 18 ++++++++++++++++--
 ...tmplayer-2.9.5.ebuild => qbitmplayer-3.2.0.ebuild} | 19 ++++++++++++++++---
 3 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/media-sound/qbitmplayer/Manifest b/media-sound/qbitmplayer/Manifest
index 971ba29fea..fec30d9b48 100644
--- a/media-sound/qbitmplayer/Manifest
+++ b/media-sound/qbitmplayer/Manifest
@@ -1,3 +1,3 @@
-DIST QBitMPlayer-2.9.5.tar.gz 36459 BLAKE2B 
d46bd4201417d076fb2f10d9275c40ae32ef631acf76cc62db5495916ba17479ad96bedfc205fadbf06f8c15ca5499c0210246621f0a886e38d607933fc5e783
 SHA512 
24cbff9460f1621c8805150b11cf307e20e67349c67df40a0c5ee8afdf29c463892bfbef0a28ac4a473e3ebc3903d2be766362064c2c4302d65cea21ad29d0be
 DIST QBitMPlayer-3.0.2.tar.gz 39512 BLAKE2B 
ae6a11b16a135c4e61bd0d8f65a5bec1d28d2fd9ab2cc46895ec8d28fca7ff6fea90b1da360b6e9e33bf907d22f7b7ad5e92a2fca5e756921e3d66bd187c9083
 SHA512 
6d0077741131eac3bbb28ce27b9e02af011c621635d218e0861f45a0872a57c063b29f1e133b58db433807c664ceaabf6f718e07944e22ffc8fec59d59e77f9e
 DIST QBitMPlayer-3.1.2.tar.gz 41072 BLAKE2B 
f71ba623aa1bdfa11f978c52e80c76a404bdbc2410911f5b32987bfcf6319d419286a33ff918de40ea8b089d02f10dfd561b927f4a394918256247de5bc4249b
 SHA512 
95bc0573bde9e7b01157e9cfe0f38f5cb57f6e5a698f5419d3c4177fb05572cbc52801104b76777ee70141c094caa63db5bfa967f24dc2626be6ae1988a3876c
+DIST QBitMPlayer-3.2.0.tar.gz 42869 BLAKE2B 
bc8e881af6e9e1cd85006c7075c2c1f78e5343ca0d94346d8ece84d36e382c2bfafcc9109ae0fd8186f2af803d48bef392bff5a9662b646b2d9bd0ccd3899977
 SHA512 
170fa6d81e84dc59e9004f900fe787ecdf677922dd740829d547f409408c767828815b82a3543b0b6807ba018e40fb4e5c5ccebae437d73429d170b6b2de3587

diff --git a/media-sound/qbitmplayer/metadata.xml 
b/media-sound/qbitmplayer/metadata.xml
index 854e75717b..4a27b7bdce 100644
--- a/media-sound/qbitmplayer/metadata.xml
+++ b/media-sound/qbitmplayer/metadata.xml
@@ -5,10 +5,24 @@
     <email>[email protected]</email>
     <name>Brayan M. Salazar</name>
   </maintainer>
+  <longdescription>
+  Media Player written in C++ and Qt.
+  Network can optionally be enabled to autodetect other running instances,
+  in order to tell that one to show itself instead of opening a new one.
+  Although it's called network, <pkg>media-sound/qbitmplayer</pkg> doesn't
+  actually do any network related stuff, it just opens a local server for
+  subsequent calls to <pkg>media-sound/qbitmplayer</pkg> to connect to it.
+  That's the mechanism it uses to detect running instances.
+  </longdescription>
   <use>
+   <flag name="network">
+    Allow a single instance of itself, thus subsequent calls to
+    <pkg>media-sound/qbitmplayer</pkg> will just open the already
+    opened instance of it.
+    </flag>
     <flag name="video">
-      Make <pkg>media-sound/qbitmplayer</pkg> not just a Music Player,
-      but a Media Player by enabling its ability to play video files as well.
+    Make <pkg>media-sound/qbitmplayer</pkg> not just a Music Player,
+    but a Media Player by enabling its ability to play video files as well.
     </flag>
   </use>
   <upstream>

diff --git a/media-sound/qbitmplayer/qbitmplayer-2.9.5.ebuild 
b/media-sound/qbitmplayer/qbitmplayer-3.2.0.ebuild
similarity index 77%
rename from media-sound/qbitmplayer/qbitmplayer-2.9.5.ebuild
rename to media-sound/qbitmplayer/qbitmplayer-3.2.0.ebuild
index bab70d1614..c0c0988946 100644
--- a/media-sound/qbitmplayer/qbitmplayer-2.9.5.ebuild
+++ b/media-sound/qbitmplayer/qbitmplayer-3.2.0.ebuild
@@ -13,13 +13,14 @@ S="${WORKDIR}/QBitMPlayer-${PV}"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="dbus +libnotify"
+IUSE="dbus libnotify network video"
 
 DEPEND="
        dev-qt/qtmultimedia:6
        dev-qt/qtbase:6[widgets]
        dbus? ( dev-qt/qtbase:6[dbus] )
        libnotify? ( x11-libs/libnotify )
+       network? ( dev-qt/qtbase:6[network] )
 "
 RDEPEND="${DEPEND}"
 BDEPEND="
@@ -39,13 +40,25 @@ src_configure() {
 
        if use dbus; then
                mycmakeargs+=(
-                       -DUSE_IPC=1
+                       -DENABLE_IPC=1
                )
        fi
 
        if use libnotify; then
                mycmakeargs+=(
-                       -DUSE_NOTIFICATIONS=1
+                       -DENABLE_NOTIFICATIONS=1
+               )
+       fi
+
+       if use network; then
+               mycmakeargs+=(
+                       -DSINGLE_INSTANCE=1
+               )
+       fi
+
+       if use video; then
+               mycmakeargs+=(
+                       -DENABLE_VIDEO_PLAYER=1
                )
        fi
 

Reply via email to