Skip to content

Commit

Permalink
media-sound/amarok: Add IUSE X
Browse files Browse the repository at this point in the history
Upstream commit 5dbe997dd4376c6e4f9a369aaff5a2c3ddbf1a6b

Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Feb 21, 2025
1 parent e338bb8 commit d81ad24
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions media-sound/amarok/amarok-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
EAPI=8

ECM_HANDBOOK="forceoptional"
KFMIN=6.5.0
KFMIN=6.9.0
QTMIN=6.7.2
PYTHON_COMPAT=( python3_{10..13} )
inherit ecm kde.org optfeature python-any-r1
inherit ecm kde.org optfeature python-any-r1 xdg

DESCRIPTION="Advanced audio player based on KDE Frameworks"
HOMEPAGE="https://amarok.kde.org/"

LICENSE="GPL-2"
SLOT="0"
IUSE="ipod mariadb mtp wikipedia" # lastfm podcast
IUSE="ipod mariadb mtp wikipedia X" # lastfm podcast

# ipod requires gdk enabled and also gtk compiled in libgpod
DEPEND="
Expand Down Expand Up @@ -51,7 +51,7 @@ DEPEND="
>=kde-frameworks/ktexteditor-${KFMIN}:6
>=kde-frameworks/ktextwidgets-${KFMIN}:6
>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
>=kde-frameworks/kwindowsystem-${KFMIN}:6
>=kde-frameworks/kwindowsystem-${KFMIN}:6[X?]
>=kde-frameworks/kxmlgui-${KFMIN}:6
>=kde-frameworks/solid-${KFMIN}:6
>=kde-frameworks/threadweaver-${KFMIN}:6
Expand Down Expand Up @@ -80,11 +80,6 @@ BDEPEND="${PYTHON_DEPS}
virtual/pkgconfig
"

pkg_setup() {
python-any-r1_pkg_setup
ecm_pkg_setup
}

src_configure() {
local mycmakeargs=(
-DBUILD_WITH_QT6=ON
Expand All @@ -101,14 +96,15 @@ src_configure() {
$(cmake_use_find_package mtp Mtp)
# $(cmake_use_find_package podcast Mygpo-qt5)
$(cmake_use_find_package wikipedia Qt6WebEngineWidgets)
-DWITH_X11=$(usex X)
)
use ipod && mycmakeargs+=( -DWITH_GDKPixBuf=ON )

ecm_src_configure
}

pkg_postinst() {
ecm_pkg_postinst
xdg_pkg_postinst

pkg_is_installed() {
echo "${1} ($(has_version ${1} || echo "not ")installed)"
Expand Down

0 comments on commit d81ad24

Please sign in to comment.