Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/cantata/
Date: Sun, 06 Jan 2019 20:53:42
Message-Id: 1546807992.bb9d5a161827c0c51c7b7e73b5209f1633556151.asturm@gentoo
1 commit: bb9d5a161827c0c51c7b7e73b5209f1633556151
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 6 20:34:59 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 6 20:53:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb9d5a16
7
8 media-sound/cantata: 2.3.3 version bump
9
10 Package-Manager: Portage-2.3.54, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-sound/cantata/Manifest | 1 +
14 media-sound/cantata/cantata-2.3.3.ebuild | 123 +++++++++++++++++++++++++++++++
15 2 files changed, 124 insertions(+)
16
17 diff --git a/media-sound/cantata/Manifest b/media-sound/cantata/Manifest
18 index 594c43ddce2..7fa872f1377 100644
19 --- a/media-sound/cantata/Manifest
20 +++ b/media-sound/cantata/Manifest
21 @@ -1 +1,2 @@
22 DIST cantata-2.3.2.tar.bz2 2440595 BLAKE2B d77a41752ff9660f27da11748497b394667f456edf52d785b3ebf31446045a4de2bcc9b22ac2d68dfd4e0f00d10a53ae9e79643e116783879eb68bab48b59589 SHA512 d55ee5f2194626db3465d8c499459bac82656e12bdb5f771581eef9d6a42ee25fc9b31e8bb5cea8913cbd47a967141f990efddb353797f81e722b7b99a73b1a4
23 +DIST cantata-2.3.3.tar.bz2 2445139 BLAKE2B 679ac68afa6219aa684aed1202bb2268552f6fe560db36e17748b9b220ae6ec4ef103ff68b3bcc7127835f8a2debd32895f5edf319a759ce78bc161c4e540a84 SHA512 8314930c9e16a5811f607f131ce7134daa0c6de81c5f87d45967c076895540b388b89b3f2cbd82950f6defb1087e61923c1719670f19b4ed3c074f05fe8577c6
24
25 diff --git a/media-sound/cantata/cantata-2.3.3.ebuild b/media-sound/cantata/cantata-2.3.3.ebuild
26 new file mode 100644
27 index 00000000000..0db70f0c745
28 --- /dev/null
29 +++ b/media-sound/cantata/cantata-2.3.3.ebuild
30 @@ -0,0 +1,123 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PLOCALES="cs da de en_GB es fr hu it ja ko pl pt_BR ru zh_CN"
37 +inherit cmake-utils gnome2-utils l10n qmake-utils xdg-utils
38 +
39 +DESCRIPTION="Featureful and configurable Qt client for the music player daemon (MPD)"
40 +HOMEPAGE="https://github.com/CDrummond/cantata"
41 +SRC_URI="https://github.com/CDrummond/${PN}/releases/download/v${PV}/${P}.tar.bz2"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="cdda cddb cdio http-server libav mtp musicbrainz replaygain streaming taglib udisks zeroconf"
47 +REQUIRED_USE="
48 + ?? ( cdda cdio )
49 + cdda? ( udisks || ( cddb musicbrainz ) )
50 + cddb? ( || ( cdio cdda ) taglib )
51 + cdio? ( udisks || ( cddb musicbrainz ) )
52 + mtp? ( taglib udisks )
53 + musicbrainz? ( || ( cdio cdda ) taglib )
54 + replaygain? ( taglib )
55 +"
56 +
57 +COMMON_DEPEND="
58 + dev-qt/qtcore:5
59 + dev-qt/qtdbus:5
60 + dev-qt/qtgui:5
61 + dev-qt/qtnetwork:5
62 + dev-qt/qtsql:5[sqlite]
63 + dev-qt/qtsvg:5
64 + dev-qt/qtwidgets:5
65 + dev-qt/qtxml:5
66 + sys-libs/zlib
67 + virtual/libudev:=
68 + cdda? ( media-sound/cdparanoia )
69 + cddb? ( media-libs/libcddb )
70 + cdio? ( dev-libs/libcdio-paranoia )
71 + mtp? ( media-libs/libmtp )
72 + musicbrainz? ( media-libs/musicbrainz:5= )
73 + replaygain? (
74 + media-libs/libebur128
75 + media-sound/mpg123
76 + libav? ( media-video/libav:= )
77 + !libav? ( media-video/ffmpeg:0= )
78 + )
79 + streaming? ( dev-qt/qtmultimedia:5 )
80 + taglib? (
81 + media-libs/taglib[asf(+),mp4(+)]
82 + udisks? ( sys-fs/udisks:2 )
83 + )
84 + zeroconf? ( net-dns/avahi )
85 +"
86 +RDEPEND="${COMMON_DEPEND}
87 + dev-lang/perl[ithreads]
88 + || ( kde-frameworks/breeze-icons:5 kde-frameworks/oxygen-icons:* )
89 +"
90 +DEPEND="${COMMON_DEPEND}
91 + dev-qt/qtconcurrent:5
92 + dev-qt/linguist-tools:5
93 +"
94 +
95 +# cantata has no tests
96 +RESTRICT="test"
97 +
98 +PATCHES=( "${FILESDIR}/${PN}-2.2.0-headers.patch" )
99 +
100 +src_prepare() {
101 + remove_locale() {
102 + rm "translations/${PN}_${1}".ts || die
103 + }
104 +
105 + cmake-utils_src_prepare
106 +
107 + # Unbundle 3rd party libs
108 + rm -r 3rdparty/{ebur128,qtsingleapplication} || die
109 +
110 + l10n_find_plocales_changes "translations" "${PN}_" ".ts"
111 + l10n_for_each_disabled_locale_do remove_locale
112 +}
113 +
114 +src_configure() {
115 + local mycmakeargs=(
116 + -DCANTATA_HELPERS_LIB_DIR="$(get_libdir)"
117 + -DENABLE_CDPARANOIA=$(usex cdda)
118 + -DENABLE_CDDB=$(usex cddb)
119 + -DENABLE_CDIOPARANOIA=$(usex cdio)
120 + -DENABLE_HTTP_SERVER=$(usex http-server)
121 + -DENABLE_MTP=$(usex mtp)
122 + -DENABLE_MUSICBRAINZ=$(usex musicbrainz)
123 + -DLRELEASE_EXECUTABLE="$(qt5_get_bindir)/lrelease"
124 + -DENABLE_FFMPEG=$(usex replaygain)
125 + -DENABLE_MPG123=$(usex replaygain)
126 + -DENABLE_HTTP_STREAM_PLAYBACK=$(usex streaming)
127 + -DENABLE_TAGLIB=$(usex taglib)
128 + -DENABLE_DEVICES_SUPPORT=$(usex udisks)
129 + -DENABLE_AVAHI=$(usex zeroconf)
130 + -DENABLE_REMOTE_DEVICES=OFF
131 + -DENABLE_UDISKS2=ON
132 + )
133 +
134 + cmake-utils_src_configure
135 +}
136 +
137 +pkg_postinst() {
138 + gnome2_icon_cache_update
139 + xdg_desktop_database_update
140 +
141 + has_version media-sound/mpd || \
142 + elog "An instance of media-sound/mpd, local or remote, is required to set up Cantata."
143 +
144 + if ! has_version app-misc/media-player-info; then
145 + elog "Install app-misc/media-player-info to enable identification"
146 + elog "and querying of portable media players"
147 + fi
148 +}
149 +
150 +pkg_postrm() {
151 + gnome2_icon_cache_update
152 + xdg_desktop_database_update
153 +}