1 |
commit: d9f7604f7ff97bb7d512042c5fc130c0d039f788 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 3 17:14:22 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 3 17:14:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f7604f |
7 |
|
8 |
media-sound/amarok: Drop KDE_LINGUAS |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
media-sound/amarok/amarok-2.8.90-r4.ebuild | 133 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 133 insertions(+) |
14 |
|
15 |
diff --git a/media-sound/amarok/amarok-2.8.90-r4.ebuild b/media-sound/amarok/amarok-2.8.90-r4.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..59abced5c7c |
18 |
--- /dev/null |
19 |
+++ b/media-sound/amarok/amarok-2.8.90-r4.ebuild |
20 |
@@ -0,0 +1,133 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+KDE_REQUIRED="never" |
27 |
+KDE_HANDBOOK="optional" |
28 |
+SQL_REQUIRED="always" |
29 |
+VIRTUALX_REQUIRED="test" |
30 |
+VIRTUALDBUS_TEST="true" |
31 |
+inherit flag-o-matic kde4-base pax-utils |
32 |
+ |
33 |
+DESCRIPTION="Advanced audio player based on KDE framework" |
34 |
+HOMEPAGE="https://amarok.kde.org/" |
35 |
+if [[ ${PV} != *9999* ]]; then |
36 |
+ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" |
37 |
+ KEYWORDS="amd64 x86" |
38 |
+fi |
39 |
+ |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="4" |
42 |
+IUSE="debug +embedded ipod lastfm mp3tunes mtp ofa opengl test +utils" |
43 |
+ |
44 |
+if [[ ${KDE_BUILD_TYPE} == live ]]; then |
45 |
+ RESTRICT+=" test" |
46 |
+fi |
47 |
+ |
48 |
+# ipod requires gdk enabled and also gtk compiled in libgpod |
49 |
+COMMONDEPEND=" |
50 |
+ $(add_kdeapps_dep kdebase-kioslaves) |
51 |
+ app-crypt/qca:2[qt4] |
52 |
+ >=dev-qt/qtcore-4.8:4 |
53 |
+ >=dev-qt/qtdbus-4.8:4 |
54 |
+ >=dev-qt/qtscript-4.8:4 |
55 |
+ >=kde-frameworks/kdelibs-4.14.37:4[opengl?,plasma] |
56 |
+ >=media-libs/taglib-1.7[asf(+),mp4(+)] |
57 |
+ >=media-libs/taglib-extras-1.0.1 |
58 |
+ sys-libs/zlib |
59 |
+ >=virtual/mysql-5.1[embedded?] |
60 |
+ >=x11-libs/qtscriptgenerator-0.1.0 |
61 |
+ ipod? ( >=media-libs/libgpod-0.7.0[gtk] ) |
62 |
+ lastfm? ( >=media-libs/liblastfm-1.0.3[qt4] ) |
63 |
+ mp3tunes? ( |
64 |
+ dev-libs/glib:2 |
65 |
+ dev-libs/libxml2 |
66 |
+ dev-libs/openssl:0 |
67 |
+ >=dev-qt/qtcore-4.8.4:4[glib] |
68 |
+ net-libs/loudmouth |
69 |
+ net-misc/curl |
70 |
+ ) |
71 |
+ mtp? ( >=media-libs/libmtp-1.0.0 ) |
72 |
+ ofa? ( >=media-libs/libofa-0.9.0 ) |
73 |
+ opengl? ( virtual/opengl ) |
74 |
+" |
75 |
+DEPEND="${COMMONDEPEND} |
76 |
+ dev-util/automoc |
77 |
+ virtual/pkgconfig |
78 |
+ test? ( dev-cpp/gmock ) |
79 |
+" |
80 |
+RDEPEND="${COMMONDEPEND} |
81 |
+ !media-sound/amarok-utils |
82 |
+ $(add_kdeapps_dep phonon-kde) |
83 |
+" |
84 |
+ |
85 |
+PATCHES=( |
86 |
+ "${FILESDIR}/${PN}-2.8.0-taglib110.patch" |
87 |
+ "${FILESDIR}/${P}-mysql-embedded.patch" |
88 |
+ "${FILESDIR}/${P}-mysqld-rpath.patch" |
89 |
+ "${FILESDIR}/${P}-scriptconsole.patch" |
90 |
+ "${FILESDIR}/${P}-gcc6.patch" |
91 |
+ "${FILESDIR}/${P}-ffmpeg3.patch" |
92 |
+ "${FILESDIR}/${P}-no-webkit.patch" |
93 |
+) |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ kde4-base_src_prepare |
97 |
+ |
98 |
+ # requires qtwebkit |
99 |
+ sed -i -e "s/wikipedia,//" data/amarok_homerc || die |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ # Append minimal-toc cflag for ppc64, see bug 280552 and 292707 |
104 |
+ use ppc64 && append-flags -mminimal-toc |
105 |
+ |
106 |
+ local mycmakeargs=( |
107 |
+ -DWITH_PLAYER=ON |
108 |
+ -DWITH_Libgcrypt=OFF |
109 |
+ -DWITH_SPECTRUM_ANALYZER=OFF |
110 |
+ -DWITH_NepomukCore=OFF |
111 |
+ -DWITH_Soprano=OFF |
112 |
+ -DWITH_MYSQL_EMBEDDED=$(usex embedded) |
113 |
+ -DWITH_IPOD=$(usex ipod) |
114 |
+ -DWITH_GDKPixBuf=$(usex ipod) |
115 |
+ -DWITH_LibLastFm=$(usex lastfm) |
116 |
+ -DWITH_MP3Tunes=$(usex mp3tunes) |
117 |
+ -DWITH_Mtp=$(usex mtp) |
118 |
+ -DWITH_LibOFA=$(usex ofa) |
119 |
+ -DWITH_UTILITIES=$(usex utils) |
120 |
+ ) |
121 |
+ |
122 |
+ # bug 581554: add libmysqld location for rpath patch |
123 |
+ use embedded && mycmakeargs+=( -DMYSQLD_DIR="${EPREFIX}/usr/$(get_libdir)/mysql" ) |
124 |
+ |
125 |
+ kde4-base_src_configure |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ kde4-base_src_install |
130 |
+ |
131 |
+ # bug 481592 |
132 |
+ pax-mark m "${ED}"/usr/bin/amarok |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ kde4-base_pkg_postinst |
137 |
+ |
138 |
+ if ! use embedded; then |
139 |
+ echo |
140 |
+ elog "You've disabled the amarok support for embedded mysql DBs." |
141 |
+ elog "You'll have to configure amarok to use an external db server." |
142 |
+ echo |
143 |
+ elog "Please read http://amarok.kde.org/wiki/MySQL_Server for details on how" |
144 |
+ elog "to configure the external db and migrate your data from the embedded database." |
145 |
+ echo |
146 |
+ |
147 |
+ if has_version "virtual/mysql[minimal]"; then |
148 |
+ elog "You built mysql with the minimal use flag, so it doesn't include the server." |
149 |
+ elog "You won't be able to use the local mysql installation to store your amarok collection." |
150 |
+ echo |
151 |
+ fi |
152 |
+ fi |
153 |
+} |