From 184f2b4f942dd1f99a7c3dbb523400c6b743802a Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 21 Sep 2024 14:32:28 +0200 Subject: media-sound/kid3: add 3.9.6 Signed-off-by: Andreas Sturmlechner --- media-sound/kid3/Manifest | 1 + media-sound/kid3/kid3-3.9.6.ebuild | 94 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 media-sound/kid3/kid3-3.9.6.ebuild (limited to 'media-sound/kid3') diff --git a/media-sound/kid3/Manifest b/media-sound/kid3/Manifest index ba2bf1bd75c0..84fcf1ac248d 100644 --- a/media-sound/kid3/Manifest +++ b/media-sound/kid3/Manifest @@ -1 +1,2 @@ DIST kid3-3.9.5.tar.xz 1843528 BLAKE2B 6bd7cf85eb6da91e1fb2dad40f63cdd443b1f75f3fab685f7af3caa5727f49afbf9b53a8d304f5e127743c4e0f8e3672b62fca33cf6de0a02ef091e758b2335a SHA512 a5b21ebabeddb49a2755fd1b5c563a822419d2a82184182bda85e5be9932ccd9626e969f944fb55cfa4c85f7c7c9821adba75375f966ee90272c2cf2283acdd8 +DIST kid3-3.9.6.tar.xz 1872012 BLAKE2B 3945ca19f08baf84373ba34bcb9917f58d20f9208479a3a2d1319bdf50aae5cc56b906f5ac2caee5eb3d5c5f042a0ecdeff3e3ac0ecb499e6e3a32db436f2b1d SHA512 1667b3f5d458f9cc54e5b9af839c849e990a333eab3cfaa8d310b4d46b925ca5b57ea0ac9365a023fecc1ac2429f761dd2bfc0b3a3df48f5d4dd351c8741455f diff --git a/media-sound/kid3/kid3-3.9.6.ebuild b/media-sound/kid3/kid3-3.9.6.ebuild new file mode 100644 index 000000000000..2f6d21932bed --- /dev/null +++ b/media-sound/kid3/kid3-3.9.6.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake kde.org python-any-r1 xdg + +DESCRIPTION="Simple tag editor based on Qt" +HOMEPAGE="https://kid3.kde.org/" + +if [[ ${KDE_BUILD_TYPE} != live ]]; then + SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="acoustid flac kde mp3 mp4 +mpris +taglib test vorbis" + +REQUIRED_USE="flac? ( vorbis )" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-qt/qtbase:6[gui,network,widgets,xml] + dev-qt/qtdeclarative:6 + dev-qt/qtmultimedia:6 + sys-libs/readline:= + acoustid? ( + media-libs/chromaprint:= + media-video/ffmpeg:= + ) + flac? ( + media-libs/flac:=[cxx] + media-libs/libvorbis + ) + kde? ( + kde-frameworks/kconfig:6 + kde-frameworks/kconfigwidgets:6 + kde-frameworks/kcoreaddons:6 + kde-frameworks/kio:6 + kde-frameworks/kwidgetsaddons:6 + kde-frameworks/kxmlgui:6 + ) + mp3? ( media-libs/id3lib ) + mp4? ( media-libs/libmp4v2 ) + mpris? ( dev-qt/qttools:6[qdbus] ) + taglib? ( >=media-libs/taglib-1.9.1:= ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) +" +RDEPEND="${DEPEND} + !media-sound/kid3:5 +" +BDEPEND="${PYTHON_DEPS} + dev-qt/qttools:6[linguist] + kde? ( kde-frameworks/extra-cmake-modules:0 ) +" + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + # overengineered upstream build system + cmake_src_prepare + # applies broken python hacks, bug #614950 + cmake_comment_add_subdirectory doc +} + +src_configure() { + local mycmakeargs=( + -DBUILD_WITH_QT6=ON + -DWITH_QAUDIODECODER=ON # bug 855281 + -DWITH_CHROMAPRINT=$(usex acoustid) + -DWITH_DBUS=$(usex mpris) + -DWITH_FLAC=$(usex flac) + -DWITH_ID3LIB=$(usex mp3) + -DWITH_MP4V2=$(usex mp4) + -DWITH_TAGLIB=$(usex taglib) + -DBUILD_TESTING=$(usex test) + -DWITH_VORBIS=$(usex vorbis) + ) + + if use kde ; then + mycmakeargs+=( "-DWITH_APPS=KDE;CLI" ) + else + mycmakeargs+=( "-DWITH_APPS=Qt;CLI" ) + fi + + cmake_src_configure +} -- cgit v1.2.3-65-gdbad