summaryrefslogtreecommitdiff
path: root/media-sound/kid3
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/kid3
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/kid3')
-rw-r--r--media-sound/kid3/Manifest9
-rw-r--r--media-sound/kid3/files/kid3-3.3.2-libdir.patch44
-rw-r--r--media-sound/kid3/files/kid3-3.4.4-deps.patch40
-rw-r--r--media-sound/kid3/kid3-3.4.5.ebuild96
-rw-r--r--media-sound/kid3/kid3-3.5.0.ebuild96
-rw-r--r--media-sound/kid3/metadata.xml20
6 files changed, 305 insertions, 0 deletions
diff --git a/media-sound/kid3/Manifest b/media-sound/kid3/Manifest
new file mode 100644
index 000000000000..5ddbfe59c6dd
--- /dev/null
+++ b/media-sound/kid3/Manifest
@@ -0,0 +1,9 @@
+AUX kid3-3.3.2-libdir.patch 1506 SHA256 e3fab2ca350c40dcd11ce89a790da3675a254ddc62ababbc1965f4d4dc73a577 SHA512 b987463eb82b499af757ba2865bfe57f9f9d405eb005822d08521f89700bfcfbb1bd46f9caa8c436b6d73d0b12284db08299d5425299f5803612e7b75b6c12ec WHIRLPOOL 24d0c8954e68212bac4392957399a79296f0579715a046f76690e30fcbc26fb3642afcf053b5d0a07a8984835b02e5211f20b6f8167465b5639ad317392ea71e
+AUX kid3-3.4.4-deps.patch 1485 SHA256 3d39bf660c3a2bcdbeb4f81c864617c733388af86df347409bafbe49a84285f2 SHA512 af386071836e542e178cda38297091817943a3f754e4d14b3cca2ec628bd7c13980932e77b1f9e3c578b095d88ea2b24e89e58b6f726c6f656989fc08bc8a808 WHIRLPOOL 0892773c97bb47ec6cbb35f21daeed6fd51dc81097c4a9acd2aedbcd316cd48d25a5fd6f66721a50aaaee8c039b2bd0093b565d2474030b0ebdcb45902a94347
+DIST kid3-3.4.5.tar.gz 1376570 SHA256 0d703b0b8c2538eba1f8f540a87e13a4bf61f715ef9cd1253f18417ebb096404 SHA512 36ffb45dd6689f252021cb9cda667f28810fb1d7da77179ef6abc80031b7a0dfaa445776c8e3586000d774bc608395fff0854d867c9e1e52676409f78a515ae3 WHIRLPOOL eeb0d29b9a30685ca6bdb4064216efbea48cb35de8056c7cf60956801129455e2145842e9cd52d8a4e99a099752d70e31e09307454ac25ce2c8d4d1bbc122199
+DIST kid3-3.5.0.tar.gz 1414288 SHA256 0f1a3a003de180e58ef53c3db6f5caf07f5415cfd22ec2c57cbd9791d5a54fd6 SHA512 a70aef4c775ec8a2d760856fdda38394384d71fbfb5847ba4da2d6396a1167c740a57a5609ef99a06ca99c090de974e91a87b13344f2e123b33842c51860cf34 WHIRLPOOL ae9a2c73d5127a5d44bb32b1fac99ecc096f850004228995ff67d4528a975a463386d1906f2146d1c6683011ae57513f83623bb770acc9441a51c8733fb76c68
+EBUILD kid3-3.4.5.ebuild 2012 SHA256 5920b9445ee9d6f400e15935a044affcad60566badf38be10f54b4c89c382c39 SHA512 fd1dbbff570248c636426324150d9792caff8cbe29a2f098604ce09f810cc6c6c1b3d7fedc695f6a5a450680002333cebf37aeb814b81cdae438c24137dcb971 WHIRLPOOL 12f33ac02a17749e1bb9ee9b5437aae09b1654703b2aac6043f298c694619e4e78b9929f19d4f3b654d3e0e377c007cc7ee65124d339ed0a992cbae656622298
+EBUILD kid3-3.5.0.ebuild 2012 SHA256 3a943ea8dc44c88008ae8ebf114061ad82f2c4ad0a68c536e01ffa0f3eaad38b SHA512 c2a9f141724d8073240a76a1c9e9a7c3352bb91f62c05298de81ecc085772dcccd9b0a90fff3c7ac39992dc7ba481c60f3f633e56e5e18cbcc573b275f7a3df6 WHIRLPOOL 2f6b2740e9c0870c2dc36d7b8e51dca436124d6192afb6f83190fef2e91754d3a139514321405fbb07674b68a565289cce960c4ba9d891d4bbd1e9d6eb8c4d13
+MISC ChangeLog 7232 SHA256 a3c22ac7d7c38f1040e1ccb3f7aefde8033c530b8b6b2a36763062ddf87a9be4 SHA512 0aa84c70113e4681820c672dc03b3e2edd1c87618090366d146082603648b811ebabb0ca138c6568bc8ed26abe2e0279e71f2e9acd38c939269765ada95b7c68 WHIRLPOOL 9d86f330e1d443181fba85ba11d49cfd68e98ba6303316ddd0771dfe19365def9d13d1f1f7cf1527dc65a814d80f963c30f117f15c7039fec952dd5a686d7205
+MISC ChangeLog-2015 12280 SHA256 50bbd374682b1dbc356308a5a2882611fa32c2b0800d76030847121653fe1730 SHA512 7a8b2a9109e8ab7150217282331ffa7cee1aed4f6b7dd968d8151aa8dedf1fbff5ac5b4d6c369936104d3126369ecad410a6258c12be2f45af7abb3d6dfe4b27 WHIRLPOOL 6be2657cc843bf49bfa7ddaca41d0078844de89abffef2e6ac71de679a9a1c2bc9f3213d6ba465bce384ac663d6f475fec9d86841411ad9bfdbe2896bb48c8ab
+MISC metadata.xml 672 SHA256 6a1640a28cd926507a19d1b9119e7d6c7d51bfc5f5507c297500cb479d24bee6 SHA512 b76d1d9b77eab5a42ebb2bae4a039a0a9abc5227e37fbe3066ca04aacfaebfdbcd99b3901eba79bb8ee46a64fa58a3aaf6370eeb3706d1773e137b02de1202ed WHIRLPOOL 3ea8ab8df8c39b1c18cd216f2077d387ca7b1f4c25f9173aab1dbb87a3b5264889008843e290e08075749019e65d3afe7d25a8fc9483c1abfcc5c3db1d5cfea8
diff --git a/media-sound/kid3/files/kid3-3.3.2-libdir.patch b/media-sound/kid3/files/kid3-3.3.2-libdir.patch
new file mode 100644
index 000000000000..b54bf129693c
--- /dev/null
+++ b/media-sound/kid3/files/kid3-3.3.2-libdir.patch
@@ -0,0 +1,44 @@
+Install libraries to the correct directory.
+
+Gentoo-bug: 562624
+Gentoo-bug: 570976
+Gentoo-bug: 576946
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -159,7 +159,7 @@
+ endif (BUILD_KDE_APP OR BUILD_SHARED_LIBS)
+ set(WITH_QMLDIR_DEFAULT "share/kid3/qml")
+ set(WITH_BINDIR_DEFAULT "bin")
+- set(WITH_LIBDIR_DEFAULT "lib${LIB_SUFFIX}/kid3")
++ set(WITH_LIBDIR_DEFAULT "lib${LIB_SUFFIX}")
+ set(WITH_PLUGINSDIR_DEFAULT "${WITH_LIBDIR_DEFAULT}/plugins")
+ endif (APPLE)
+
+@@ -189,6 +189,10 @@
+ set(CMAKE_INSTALL_PREFIX_SLASH "")
+ endif (CMAKE_INSTALL_PREFIX)
+
++if (NOT APPLE AND NOT WIN32)
++ set(WITH_PLUGINSDIR "${WITH_LIBDIR_DEFAULT}/${QTVER}/plugins/kid3")
++endif ()
++
+ if (APPLE)
+ file(RELATIVE_PATH CFG_DATAROOTDIR "/kid3.app/Contents/MacOS" /${WITH_DATAROOTDIR})
+ file(RELATIVE_PATH CFG_DOCDIR "/kid3.app/Contents/MacOS" /${WITH_DOCDIR})
+@@ -241,6 +245,7 @@
+ find_package(Qt4 COMPONENTS ${_QT4_COMPONENTS})
+ if (Qt4_FOUND OR QT4_FOUND)
+ include (${QT_USE_FILE})
++ set(QTVER "qt4")
+ if (NOT WITH_QT4)
+ message(STATUS "Qt4 found, explicitly set WITH_QT5 or QT_QMAKE_EXECUTABLE to use a different version.")
+ endif (NOT WITH_QT4)
+@@ -276,6 +281,7 @@
+ endif (_qt5Dir)
+ if (Qt5Core_FOUND)
+ set(HAVE_QT5 1)
++ set(QTVER "qt5")
+ set(WITH_PHONON OFF)
+ set(QT_INCLUDES)
+ set(QT_DEFINITIONS)
diff --git a/media-sound/kid3/files/kid3-3.4.4-deps.patch b/media-sound/kid3/files/kid3-3.4.4-deps.patch
new file mode 100644
index 000000000000..333645d11b39
--- /dev/null
+++ b/media-sound/kid3/files/kid3-3.4.4-deps.patch
@@ -0,0 +1,40 @@
+From 2f66191a82e60a2b46ead8aa2195346084817e91 Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Sun, 27 Nov 2016 20:00:37 +1100
+Subject: [PATCH] Improve KF5 dependencies.
+
+This list was compiled from a cusory include and NEEDED inspection.
+---
+ src/app/CMakeLists.txt | 2 +-
+ src/app/kde/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
+index 516e3f9..7790fde 100644
+--- a/src/app/CMakeLists.txt
++++ b/src/app/CMakeLists.txt
+@@ -33,7 +33,7 @@ if (BUILD_KDE_APP)
+ include(KDECMakeSettings)
+ include(FeatureSummary)
+
+- find_package(KF5 REQUIRED COMPONENTS KIO)
++ find_package(KF5 REQUIRED COMPONENTS Config ConfigWidgets CoreAddons WidgetsAddons XmlGui)
+
+ if (BUILD_SHARED_LIBS)
+ # KDECMakeSettings.cmake will overwrite our RPATH if LIB_INSTALL_DIR is
+diff --git a/src/app/kde/CMakeLists.txt b/src/app/kde/CMakeLists.txt
+index 2f2867a..8a25b43 100644
+--- a/src/app/kde/CMakeLists.txt
++++ b/src/app/kde/CMakeLists.txt
+@@ -13,7 +13,7 @@ if (HAVE_QT5)
+
+ add_executable(kid3 ${kde_SRCS})
+
+- target_link_libraries(kid3 kid3-gui KF5::KIOFileWidgets -lstdc++)
++ target_link_libraries(kid3 kid3-gui KF5::ConfigCore KF5::ConfigGui KF5::ConfigWidgets KF5::CoreAddons KF5::WidgetsAddons KF5::XmlGui -lstdc++)
+
+ install(TARGETS kid3 DESTINATION ${BIN_INSTALL_DIR})
+ install(FILES ../kid3.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+--
+2.10.2
+
diff --git a/media-sound/kid3/kid3-3.4.5.ebuild b/media-sound/kid3/kid3-3.4.5.ebuild
new file mode 100644
index 000000000000..5766131f8ebc
--- /dev/null
+++ b/media-sound/kid3/kid3-3.4.5.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="false" # buildsystem applies broken python hacks, bug #614950
+inherit kde5
+
+DESCRIPTION="Simple tag editor based on Qt"
+HOMEPAGE="http://kid3.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="5"
+KEYWORDS="amd64 x86"
+IUSE="acoustid flac kde mp3 mp4 +taglib vorbis"
+
+REQUIRED_USE="flac? ( vorbis )"
+
+COMMON_DEPEND="
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtdeclarative)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtmultimedia)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ sys-libs/readline:0=
+ acoustid? (
+ media-libs/chromaprint
+ virtual/ffmpeg
+ )
+ flac? (
+ 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 )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+"
+RDEPEND="${COMMON_DEPEND}
+ !media-sound/kid3:4
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_qt_dep linguist-tools)
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.3.2-libdir.patch"
+ "${FILESDIR}/${PN}-3.4.4-deps.patch"
+)
+
+src_prepare() {
+ # overengineered upstream build system
+ # kde5 eclass src_prepare leads to compile failure
+
+ # only enable handbook when required
+ if ! use_if_iuse handbook ; then
+ cmake_comment_add_subdirectory ${KDE_DOC_DIR}
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -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)
+ )
+
+ if use kde ; then
+ mycmakeargs+=( "-DWITH_APPS=KDE;CLI" )
+ else
+ mycmakeargs+=( "-DWITH_APPS=Qt;CLI" )
+ fi
+
+ kde5_src_configure
+}
diff --git a/media-sound/kid3/kid3-3.5.0.ebuild b/media-sound/kid3/kid3-3.5.0.ebuild
new file mode 100644
index 000000000000..64def7acd3df
--- /dev/null
+++ b/media-sound/kid3/kid3-3.5.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="false" # buildsystem applies broken python hacks, bug #614950
+inherit kde5
+
+DESCRIPTION="Simple tag editor based on Qt"
+HOMEPAGE="https://kid3.sourceforge.io/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="5"
+KEYWORDS="amd64 x86"
+IUSE="acoustid flac kde mp3 mp4 +taglib vorbis"
+
+REQUIRED_USE="flac? ( vorbis )"
+
+COMMON_DEPEND="
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtdeclarative)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtmultimedia)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ sys-libs/readline:0=
+ acoustid? (
+ media-libs/chromaprint
+ virtual/ffmpeg
+ )
+ flac? (
+ 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 )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+"
+RDEPEND="${COMMON_DEPEND}
+ !media-sound/kid3:4
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_qt_dep linguist-tools)
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.3.2-libdir.patch"
+ "${FILESDIR}/${PN}-3.4.4-deps.patch"
+)
+
+src_prepare() {
+ # overengineered upstream build system
+ # kde5 eclass src_prepare leads to compile failure
+
+ # only enable handbook when required
+ if ! use_if_iuse handbook ; then
+ cmake_comment_add_subdirectory ${KDE_DOC_DIR}
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -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)
+ )
+
+ if use kde ; then
+ mycmakeargs+=( "-DWITH_APPS=KDE;CLI" )
+ else
+ mycmakeargs+=( "-DWITH_APPS=Qt;CLI" )
+ fi
+
+ kde5_src_configure
+}
diff --git a/media-sound/kid3/metadata.xml b/media-sound/kid3/metadata.xml
new file mode 100644
index 000000000000..e7aa364bd79c
--- /dev/null
+++ b/media-sound/kid3/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <use>
+ <flag name="acoustid">Enable support for acoustic fingerprinting plugin using
+ (<pkg>media-libs/chromaprint</pkg>)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://sourceforge.net/tracker/?group_id=70849</bugs-to>
+ <remote-id type="sourceforge">kid3</remote-id>
+ </upstream>
+</pkgmetadata>