diff options
-rw-r--r-- | media-sound/kid3/kid3-3.4.3.ebuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/media-sound/kid3/kid3-3.4.3.ebuild b/media-sound/kid3/kid3-3.4.3.ebuild index cb3505f93e06..1cabf44f58ce 100644 --- a/media-sound/kid3/kid3-3.4.3.ebuild +++ b/media-sound/kid3/kid3-3.4.3.ebuild @@ -14,11 +14,12 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2+" SLOT="5" KEYWORDS="~amd64 ~x86" -IUSE="acoustid flac mp3 mp4 +taglib vorbis" +IUSE="acoustid flac kde mp3 mp4 +taglib vorbis" REQUIRED_USE="flac? ( vorbis )" DEPEND=" + $(add_qt_dep qtcore) $(add_qt_dep qtdbus) $(add_qt_dep qtdeclarative) $(add_qt_dep qtgui) @@ -35,6 +36,13 @@ DEPEND=" media-libs/flac[cxx] media-libs/libvorbis ) + kde? ( + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kxmlgui) + ) mp3? ( media-libs/id3lib ) mp4? ( media-libs/libmp4v2:0 ) taglib? ( >=media-libs/taglib-1.9.1 ) @@ -63,17 +71,22 @@ src_prepare() { src_configure() { local mycmakeargs=( - -DWITH_QT5=ON - -DWITH_QT4=OFF -DWITH_PHONON=OFF + -DWITH_QT4=OFF + -DWITH_QT5=ON -DWITH_CHROMAPRINT=$(usex acoustid) -DWITH_FLAC=$(usex flac) -DWITH_ID3LIB=$(usex mp3) -DWITH_MP4V2=$(usex mp4) -DWITH_TAGLIB=$(usex taglib) -DWITH_VORBIS=$(usex vorbis) - "-DWITH_APPS=Qt;CLI" ) + if use kde ; then + mycmakeargs+=( "-DWITH_APPS=KDE;CLI" ) + else + mycmakeargs+=( "-DWITH_APPS=Qt;CLI" ) + fi + kde5_src_configure } |