media-sound/kid3: Add USE mpris
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 16 Jul 2019 19:37:51 +0000 (21:37 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 16 Jul 2019 21:04:09 +0000 (23:04 +0200)
Thanks-to: Martin Cihlář <martin.cibule@seznam.cz>
Closes: https://bugs.gentoo.org/687622
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-sound/kid3/kid3-3.7.1.ebuild
media-sound/kid3/metadata.xml

index e6b2937cb43757b1aaef34d749a7f9715e9f1d79..87343373f369f1213de0f22cbe0f2e8bebf6d901 100644 (file)
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 LICENSE="GPL-2+"
 SLOT="5"
 KEYWORDS="amd64 x86"
-IUSE="acoustid flac kde mp3 mp4 +taglib vorbis"
+IUSE="acoustid flac kde mp3 mp4 +mpris +taglib vorbis"
 
 REQUIRED_USE="flac? ( vorbis )"
 
@@ -21,7 +21,6 @@ BDEPEND="
 "
 DEPEND="
        dev-qt/qtcore:5
-       dev-qt/qtdbus:5
        dev-qt/qtdeclarative:5
        dev-qt/qtgui:5
        dev-qt/qtmultimedia:5
@@ -46,6 +45,7 @@ DEPEND="
        )
        mp3? ( media-libs/id3lib )
        mp4? ( media-libs/libmp4v2:0 )
+       mpris? ( dev-qt/qtdbus:5 )
        taglib? ( >=media-libs/taglib-1.9.1 )
        vorbis? (
                media-libs/libogg
@@ -66,6 +66,7 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DWITH_CHROMAPRINT=$(usex acoustid)
+               -DWITH_DBUS=$(usex mpris)
                -DWITH_FLAC=$(usex flac)
                -DWITH_ID3LIB=$(usex mp3)
                -DWITH_MP4V2=$(usex mp4)
index 8db1b09337d80be3696a5f031e7b885521501124..17adb5fc18bd80e4cb7d69362287fea124f4efd1 100644 (file)
@@ -10,8 +10,8 @@
     <name>Gentoo Sound project</name>
   </maintainer>
   <use>
-    <flag name="acoustid">Enable support for acoustic fingerprinting plugin using
-      (<pkg>media-libs/chromaprint</pkg>)</flag>
+    <flag name="acoustid">Build acoustic fingerprinting plugin using <pkg>media-libs/chromaprint</pkg></flag>
+    <flag name="mpris">Enable support for MPRIS2 interface using <pkg>dev-qt/qtdbus</pkg></flag>
   </use>
   <upstream>
     <bugs-to>https://sourceforge.net/p/kid3/bugs/</bugs-to>