mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-26 05:32:36 +00:00
update license to GPL-3+ (since a while) upstream allows external libs for karchive (replace qtiocompressor) and kitemviews use of fontawesome has been reworked, closing an old bug remove cdparanoia as a fallback for cdda, upstream prefers libcdio use optfeature instead of has_version, remove mpd Closes: https://bugs.gentoo.org/641880 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44893 Closes: https://github.com/gentoo/gentoo/pull/44893 Signed-off-by: Sam James <sam@gentoo.org>
99 lines
2.5 KiB
Bash
99 lines
2.5 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake optfeature xdg
|
|
|
|
DESCRIPTION="Featureful and configurable Qt client for the music player daemon (MPD)"
|
|
HOMEPAGE="https://github.com/nullobsi/cantata"
|
|
SRC_URI="https://github.com/nullobsi/cantata/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc64 ~x86"
|
|
IUSE="cdda cddb http-server mtp musicbrainz replaygain streaming +taglib udisks zeroconf"
|
|
REQUIRED_USE="
|
|
cdda? ( taglib udisks || ( cddb musicbrainz ) )
|
|
cddb? ( cdda taglib )
|
|
mtp? ( taglib udisks )
|
|
musicbrainz? ( cdda taglib )
|
|
replaygain? ( taglib )
|
|
udisks? ( taglib )
|
|
"
|
|
|
|
COMMON_DEPEND="
|
|
dev-qt/qtbase:6[dbus,gui,network,sql,sqlite,widgets,xml]
|
|
dev-qt/qtsvg:6
|
|
kde-frameworks/karchive:6
|
|
kde-frameworks/kitemviews:6
|
|
virtual/zlib:=
|
|
cdda? ( dev-libs/libcdio-paranoia:= )
|
|
cddb? ( media-libs/libcddb )
|
|
mtp? ( media-libs/libmtp:= )
|
|
musicbrainz? ( media-libs/musicbrainz:5= )
|
|
replaygain? (
|
|
media-libs/libebur128:=
|
|
media-sound/mpg123-base
|
|
media-video/ffmpeg:0=
|
|
)
|
|
streaming? ( dev-qt/qtmultimedia:6 )
|
|
taglib? ( >=media-libs/taglib-2:= )
|
|
udisks? ( kde-frameworks/solid:6 )
|
|
zeroconf? ( net-dns/avahi )
|
|
"
|
|
RDEPEND="${COMMON_DEPEND}
|
|
dev-lang/perl[perl_features_ithreads]
|
|
media-fonts/fontawesome:0/6
|
|
"
|
|
DEPEND="${COMMON_DEPEND}
|
|
dev-qt/qtbase:6[concurrent]
|
|
"
|
|
BDEPEND="
|
|
dev-qt/qttools:6[linguist]
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
PATCHES=(
|
|
# unbundle KF6Solid
|
|
"${FILESDIR}"/${PN}-3.4.0-unbundle_solid.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
cmake_src_prepare
|
|
|
|
# Unbundle 3rd party libs
|
|
# keep knotifications : https://github.com/nullobsi/cantata/commit/719adb5
|
|
rm -r 3rdparty/{karchive,kcategorizedview,qtsingleapplication,solid-lite} || die
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DBUNDLED_FONTAWESOME=OFF
|
|
-DBUNDLED_KARCHIVE=OFF
|
|
-DBUNDLED_KCATEGORIZEDVIEW=OFF
|
|
-DENABLE_CDPARANOIA=$(usex cdda)
|
|
-DENABLE_CDDB=$(usex cddb)
|
|
-DENABLE_CDIOPARANOIA=$(usex cdda)
|
|
-DENABLE_HTTP_SERVER=$(usex http-server)
|
|
-DENABLE_MTP=$(usex mtp)
|
|
-DENABLE_MUSICBRAINZ=$(usex musicbrainz)
|
|
-DENABLE_FFMPEG=$(usex replaygain)
|
|
-DENABLE_MPG123=$(usex replaygain)
|
|
-DENABLE_HTTP_STREAM_PLAYBACK=$(usex streaming)
|
|
-DENABLE_TAGLIB=$(usex taglib)
|
|
-DENABLE_DEVICES_SUPPORT=$(usex udisks)
|
|
-DENABLE_AVAHI=$(usex zeroconf)
|
|
-DENABLE_REMOTE_DEVICES=OFF
|
|
# use solid/udisks2 instead of udisks
|
|
-DENABLE_UDISKS2=ON
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_pkg_postinst
|
|
|
|
optfeature "identification and querying of portable media players" app-misc/media-player-info
|
|
}
|