1 |
commit: 7d434c0351d4a9b48f353a5d89eb13bd46735be9 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 3 20:04:52 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 3 20:04:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d434c03 |
7 |
|
8 |
media-sound/cantata: 2.3.2 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
media-sound/cantata/Manifest | 1 + |
13 |
media-sound/cantata/cantata-2.3.2.ebuild | 125 +++++++++++++++++++++ |
14 |
.../cantata/files/cantata-2.3.2-opusfile.patch | 22 ++++ |
15 |
3 files changed, 148 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/cantata/Manifest b/media-sound/cantata/Manifest |
18 |
index 28f944978e8..cef8831345c 100644 |
19 |
--- a/media-sound/cantata/Manifest |
20 |
+++ b/media-sound/cantata/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST cantata-2.2.0.tar.bz2 2251649 BLAKE2B 9b28a4e3a77245fcf00f81780adecdc51e066f068798f92300ef8527872313f5fb56d4b90a6f5511caf951ba9fcd5c094dd5e9062fe3d314b75412b3e8e03d37 SHA512 519a2e24c8b2a1c98a2006a1f590945e1bd5e98a2c3a1b5da23e40f2297f1477d48d69b48ec669219f5ab8fdc955486fe29db6914abeef1fba2a47377f694ecd |
23 |
DIST cantata-2.3.1.tar.bz2 2414702 BLAKE2B c44f7e95091dd4f84e630236e7f681d2ea47cd90705cdeeb17d3e892d4e0b978f88d4cb648841543494670c5dbc1a00ba9e2377dfd684b2fdee9223d4b6b28e3 SHA512 8199b08b1f3d2111fc50fbc4e5b1edced6ac480fd213a11eee569deeebf3a3f1167c2b53c3117bb90b2b81b46792c56b99b65eae5d2b290c0f3b3f90736108e5 |
24 |
+DIST cantata-2.3.2.tar.bz2 2440595 BLAKE2B d77a41752ff9660f27da11748497b394667f456edf52d785b3ebf31446045a4de2bcc9b22ac2d68dfd4e0f00d10a53ae9e79643e116783879eb68bab48b59589 SHA512 d55ee5f2194626db3465d8c499459bac82656e12bdb5f771581eef9d6a42ee25fc9b31e8bb5cea8913cbd47a967141f990efddb353797f81e722b7b99a73b1a4 |
25 |
|
26 |
diff --git a/media-sound/cantata/cantata-2.3.2.ebuild b/media-sound/cantata/cantata-2.3.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..db85ccf2fbc |
29 |
--- /dev/null |
30 |
+++ b/media-sound/cantata/cantata-2.3.2.ebuild |
31 |
@@ -0,0 +1,125 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PLOCALES="cs da de en_GB es fr hu it ja ko pl pt_BR ru zh_CN" |
38 |
+inherit cmake-utils gnome2-utils l10n qmake-utils xdg-utils |
39 |
+ |
40 |
+DESCRIPTION="Featureful and configurable Qt client for the music player daemon (MPD)" |
41 |
+HOMEPAGE="https://github.com/CDrummond/cantata" |
42 |
+SRC_URI="https://github.com/CDrummond/cantata/releases/download/v${PV}/${P}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="cdda cddb cdio http-server mtp musicbrainz replaygain streaming taglib udisks zeroconf" |
48 |
+REQUIRED_USE=" |
49 |
+ ?? ( cdda cdio ) |
50 |
+ cdda? ( udisks || ( cddb musicbrainz ) ) |
51 |
+ cddb? ( || ( cdio cdda ) taglib ) |
52 |
+ cdio? ( udisks || ( cddb musicbrainz ) ) |
53 |
+ mtp? ( taglib udisks ) |
54 |
+ musicbrainz? ( || ( cdio cdda ) taglib ) |
55 |
+ replaygain? ( taglib ) |
56 |
+" |
57 |
+ |
58 |
+COMMON_DEPEND=" |
59 |
+ dev-qt/qtcore:5 |
60 |
+ dev-qt/qtdbus:5 |
61 |
+ dev-qt/qtgui:5 |
62 |
+ dev-qt/qtnetwork:5 |
63 |
+ dev-qt/qtsql:5[sqlite] |
64 |
+ dev-qt/qtsvg:5 |
65 |
+ dev-qt/qtwidgets:5 |
66 |
+ dev-qt/qtxml:5 |
67 |
+ || ( kde-frameworks/breeze-icons:5 kde-frameworks/oxygen-icons:* ) |
68 |
+ sys-libs/zlib |
69 |
+ virtual/libudev:= |
70 |
+ cdda? ( media-sound/cdparanoia ) |
71 |
+ cddb? ( media-libs/libcddb ) |
72 |
+ cdio? ( dev-libs/libcdio-paranoia ) |
73 |
+ mtp? ( media-libs/libmtp ) |
74 |
+ musicbrainz? ( media-libs/musicbrainz:5= ) |
75 |
+ replaygain? ( |
76 |
+ media-libs/libebur128 |
77 |
+ media-sound/mpg123 |
78 |
+ virtual/ffmpeg |
79 |
+ ) |
80 |
+ streaming? ( dev-qt/qtmultimedia:5 ) |
81 |
+ taglib? ( |
82 |
+ media-libs/taglib[asf(+),mp4(+)] |
83 |
+ udisks? ( sys-fs/udisks:2 ) |
84 |
+ ) |
85 |
+ zeroconf? ( net-dns/avahi ) |
86 |
+" |
87 |
+RDEPEND="${COMMON_DEPEND} |
88 |
+ dev-lang/perl[ithreads] |
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=( |
99 |
+ "${FILESDIR}/${PN}-2.2.0-headers.patch" |
100 |
+ "${FILESDIR}/${P}-opusfile.patch" |
101 |
+) |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ remove_locale() { |
105 |
+ rm "translations/${PN}_${1}".ts || die |
106 |
+ } |
107 |
+ |
108 |
+ cmake-utils_src_prepare |
109 |
+ |
110 |
+ # Unbundle 3rd party libs |
111 |
+ rm -r 3rdparty/{ebur128,qtsingleapplication} || die |
112 |
+ |
113 |
+ l10n_find_plocales_changes "translations" "${PN}_" ".ts" |
114 |
+ l10n_for_each_disabled_locale_do remove_locale |
115 |
+} |
116 |
+ |
117 |
+src_configure() { |
118 |
+ local mycmakeargs=( |
119 |
+ -DCANTATA_HELPERS_LIB_DIR="$(get_libdir)" |
120 |
+ -DENABLE_CDPARANOIA=$(usex cdda) |
121 |
+ -DENABLE_CDDB=$(usex cddb) |
122 |
+ -DENABLE_CDIOPARANOIA=$(usex cdio) |
123 |
+ -DENABLE_HTTP_SERVER=$(usex http-server) |
124 |
+ -DENABLE_MTP=$(usex mtp) |
125 |
+ -DENABLE_MUSICBRAINZ=$(usex musicbrainz) |
126 |
+ -DLRELEASE_EXECUTABLE="$(qt5_get_bindir)/lrelease" |
127 |
+ -DENABLE_FFMPEG=$(usex replaygain) |
128 |
+ -DENABLE_MPG123=$(usex replaygain) |
129 |
+ -DENABLE_HTTP_STREAM_PLAYBACK=$(usex streaming) |
130 |
+ -DENABLE_TAGLIB=$(usex taglib) |
131 |
+ -DENABLE_DEVICES_SUPPORT=$(usex udisks) |
132 |
+ -DENABLE_AVAHI=$(usex zeroconf) |
133 |
+ -DENABLE_REMOTE_DEVICES=OFF |
134 |
+ -DENABLE_UDISKS2=ON |
135 |
+ ) |
136 |
+ |
137 |
+ cmake-utils_src_configure |
138 |
+} |
139 |
+ |
140 |
+pkg_postinst() { |
141 |
+ gnome2_icon_cache_update |
142 |
+ xdg_desktop_database_update |
143 |
+ |
144 |
+ has_version media-sound/mpd || \ |
145 |
+ elog "An instance of media-sound/mpd, local or remote, is required to set up Cantata." |
146 |
+ |
147 |
+ if ! has_version app-misc/media-player-info; then |
148 |
+ elog "Install app-misc/media-player-info to enable identification" |
149 |
+ elog "and querying of portable media players" |
150 |
+ fi |
151 |
+} |
152 |
+ |
153 |
+pkg_postrm() { |
154 |
+ gnome2_icon_cache_update |
155 |
+ xdg_desktop_database_update |
156 |
+} |
157 |
|
158 |
diff --git a/media-sound/cantata/files/cantata-2.3.2-opusfile.patch b/media-sound/cantata/files/cantata-2.3.2-opusfile.patch |
159 |
new file mode 100644 |
160 |
index 00000000000..956edf1d513 |
161 |
--- /dev/null |
162 |
+++ b/media-sound/cantata/files/cantata-2.3.2-opusfile.patch |
163 |
@@ -0,0 +1,22 @@ |
164 |
+From cdf4363df91475b091ad20000078ca8ef21ce91f Mon Sep 17 00:00:00 2001 |
165 |
+From: Craig Drummond <craig.p.drummond@×××××.com> |
166 |
+Date: Sat, 11 Aug 2018 08:31:40 +0100 |
167 |
+Subject: [PATCH] Add '.opus' to list of recognised extensions for local files. |
168 |
+ |
169 |
+--- |
170 |
+ models/playqueuemodel.cpp | 2 +- |
171 |
+ 1 file changed, 1 insertions(+), 1 deletion(-) |
172 |
+ |
173 |
+diff --git a/models/playqueuemodel.cpp b/models/playqueuemodel.cpp |
174 |
+index deaaa78f3..c6c4c4130 100644 |
175 |
+--- a/models/playqueuemodel.cpp |
176 |
++++ b/models/playqueuemodel.cpp |
177 |
+@@ -89,7 +89,7 @@ QSet<QString> PlayQueueModel::constFileExtensions = QSet<QString>() |
178 |
+ << QLatin1String("m4b") << QLatin1String("mp4") << QLatin1String("m4p") << QLatin1String("wav") << QLatin1String("wv") |
179 |
+ << QLatin1String("wvp") << QLatin1String("aiff") << QLatin1String("aif") << QLatin1String("aifc") << QLatin1String("ape") |
180 |
+ << QLatin1String("spx") << QLatin1String("tta") << QLatin1String("mpc") << QLatin1String("mpp") << QLatin1String("mp+") |
181 |
+- << QLatin1String("dff") << QLatin1String("dsf") |
182 |
++ << QLatin1String("dff") << QLatin1String("dsf") << QLatin1String("opus") |
183 |
+ // And playlists... |
184 |
+ << QLatin1String("m3u") << QLatin1String("m3u8") << constPlsPlaylist << constXspfPlaylist; |
185 |
+ |