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