Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/spotify/
Date: Tue, 29 Jan 2019 06:49:50
Message-Id: 1548744572.b3b0e9e8dda552c4568c125a34f83ce180faf506.prometheanfire@gentoo
1 commit: b3b0e9e8dda552c4568c125a34f83ce180faf506
2 Author: Nikos Chantziaras <realnc <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 29 06:15:21 2019 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 29 06:49:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3b0e9e8
7
8 media-sound/spotify: bump version to 1.0.98
9
10 Closes: https://bugs.gentoo.org/676694
11 Package-Manager: Portage-2.3.59, Repoman-2.3.12
12 Signed-off-by: Nikos Chantziaras <realnc <AT> gmail.com>
13 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
14
15 media-sound/spotify/Manifest | 1 +
16 media-sound/spotify/spotify-1.0.98.ebuild | 116 ++++++++++++++++++++++++++++++
17 2 files changed, 117 insertions(+)
18
19 diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest
20 index 5be14d67a66..3ae0981da50 100644
21 --- a/media-sound/spotify/Manifest
22 +++ b/media-sound/spotify/Manifest
23 @@ -1,2 +1,3 @@
24 DIST spotify-client_1.0.72.117.g6bd7cc73-35_i386.deb 95135550 BLAKE2B ad4587dd6b3c64a0398e0790203a7826e290a27542fa39ebbd6c7198d8ad1fd3fb06e8b030b64e1e61e0624ef20aafda08189266486cd073cb779ebff62ef502 SHA512 51d60f7592e5f31ea4b7e67736a85271cb48d4108459630da61c4ab67d2a470038240c1d6ff577280cb4498cf44f14d7bc7e0312f63d34265bcd1e70cd13142f
25 DIST spotify-client_1.0.96.181.gf6bc1b6b-12_amd64.deb 105145290 BLAKE2B 1ffb55ac3684d021b181e27d1183c5f0c1bd22ad8e6decbd64b0172a7925e824b6f74d40edbb1ae4401bf954860f47d9d1ffad6d879e85e02406869709d817cd SHA512 8ecff0657849058863deb8fce9304d4c9aa5a511f8043a0ba52d138a29979d3217da7568ab2058271f3e448206406fc0e1651ba7d438f677b1a2036ecb5937e2
26 +DIST spotify-client_1.0.98.78.gb45d2a6b-10_amd64.deb 105135826 BLAKE2B e1641a738f8e03c86d9b28ac902ed9857e1bb406b03e7a1c59c522e86a211b13cfd442bf84f79af4302d32a4b1c041e8ef7297990e70912d8c0a5108838e0500 SHA512 f20f2c998a205f189a19f332b2e738a0ec98a34520765c0e1d27d95d92f7c9c2f78da32f9edcc61146be87e8d8df7d3521d2e84b427cd25586b9fe6bec8d1602
27
28 diff --git a/media-sound/spotify/spotify-1.0.98.ebuild b/media-sound/spotify/spotify-1.0.98.ebuild
29 new file mode 100644
30 index 00000000000..7c8f16fb450
31 --- /dev/null
32 +++ b/media-sound/spotify/spotify-1.0.98.ebuild
33 @@ -0,0 +1,116 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +inherit gnome2-utils pax-utils unpacker xdg-utils
39 +
40 +DESCRIPTION="Spotify is a social music platform"
41 +HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
42 +SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/"
43 +BUILD_ID_AMD64="78.gb45d2a6b-10"
44 +#BUILD_ID_X86=""
45 +#SRC_URI="amd64? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb )
46 +# x86? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_X86}_i386.deb )"
47 +SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb"
48 +LICENSE="Spotify"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +IUSE="libnotify systray pax_kernel pulseaudio"
52 +RESTRICT="mirror strip"
53 +
54 +DEPEND=">=dev-util/patchelf-0.9_p20180129"
55 +# zenity needed for filepicker
56 +RDEPEND="
57 + dev-libs/openssl:0
58 + dev-libs/nss
59 + gnome-base/gconf
60 + gnome-extra/zenity
61 + media-libs/alsa-lib
62 + media-libs/harfbuzz
63 + media-libs/fontconfig
64 + media-libs/mesa
65 + net-misc/curl[ssl]
66 + net-print/cups[ssl]
67 + x11-libs/gtk+:2
68 + x11-libs/libXScrnSaver
69 + x11-libs/libXtst
70 + dev-python/pygobject:3
71 + dev-python/dbus-python
72 + libnotify? ( x11-libs/libnotify )
73 + pulseaudio? ( media-sound/pulseaudio )
74 + systray? ( gnome-extra/gnome-integration-spotify )"
75 + #sys-libs/glibc
76 +
77 +S=${WORKDIR}/
78 +
79 +QA_PREBUILT="opt/spotify/spotify-client/spotify"
80 +
81 +src_prepare() {
82 + # Fix desktop entry to launch spotify-dbus.py for systray integration
83 + if use systray ; then
84 + sed -i \
85 + -e 's/spotify \%U/spotify-dbus.py \%U/g' \
86 + usr/share/spotify/spotify.desktop || die "sed failed"
87 + fi
88 + default
89 +
90 + # Spotify links against libcurl-gnutls.so.4, which does not exist in Gentoo.
91 + patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/bin/spotify \
92 + || die "failed to patch libcurl library dependency"
93 +}
94 +
95 +src_install() {
96 + gunzip usr/share/doc/spotify-client/changelog.gz || die
97 + dodoc usr/share/doc/spotify-client/changelog
98 +
99 + SPOTIFY_PKG_HOME=usr/share/spotify
100 + insinto /usr/share/pixmaps
101 + doins ${SPOTIFY_PKG_HOME}/icons/*.png
102 +
103 + # install in /opt/spotify
104 + SPOTIFY_HOME=/opt/spotify/spotify-client
105 + insinto ${SPOTIFY_HOME}
106 + doins -r ${SPOTIFY_PKG_HOME}/*
107 + fperms +x ${SPOTIFY_HOME}/spotify
108 +
109 + dodir /usr/bin
110 + cat <<-EOF >"${D}"/usr/bin/spotify || die
111 + #! /bin/sh
112 + exec ${SPOTIFY_HOME}/spotify "\$@"
113 + EOF
114 + fperms +x /usr/bin/spotify
115 +
116 + local size
117 + for size in 16 22 24 32 48 64 128 256 512; do
118 + newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
119 + "spotify-client.png"
120 + done
121 + domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
122 + if use pax_kernel; then
123 + #create the headers, reset them to default, then paxmark -m them
124 + pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
125 + pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
126 + pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
127 + eqawarn "You have set USE=pax_kernel meaning that you intend to run"
128 + eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
129 + eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
130 + eqawarn "you suspect that ${PN} is being broken by this modification,"
131 + eqawarn "please open a bug."
132 + fi
133 +}
134 +
135 +pkg_postinst() {
136 + gnome2_icon_cache_update
137 + xdg_mimeinfo_database_update
138 + xdg_desktop_database_update
139 +
140 + ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
141 + ewarn "To remove the cache:"
142 + ewarn "rm -rf ~/.cache/spotify"
143 +}
144 +
145 +pkg_postrm() {
146 + gnome2_icon_cache_update
147 + xdg_mimeinfo_database_update
148 + xdg_desktop_database_update
149 +}