From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0D1D1138010 for ; Wed, 19 Sep 2012 07:06:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36E4EE06B0; Wed, 19 Sep 2012 07:06:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EAFD3E06B0 for ; Wed, 19 Sep 2012 07:06:12 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B902033C898 for ; Wed, 19 Sep 2012 07:06:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 83E99E5444 for ; Wed, 19 Sep 2012 07:06:09 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1348038355.e02a97e87a96a6265cf20e6bf0daf4a97c2f71d0.graaff@gentoo> Subject: [gentoo-commits] dev/graaff:master commit in: media-sound/spotify/ X-VCS-Repository: dev/graaff X-VCS-Files: media-sound/spotify/ChangeLog media-sound/spotify/Manifest media-sound/spotify/metadata.xml media-sound/spotify/spotify-0.8.4.103.ebuild X-VCS-Directories: media-sound/spotify/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: e02a97e87a96a6265cf20e6bf0daf4a97c2f71d0 X-VCS-Branch: master Date: Wed, 19 Sep 2012 07:06:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2c0f436b-7bb5-4581-abd8-27d07397bd94 X-Archives-Hash: 006c0ff11dd5937efdba30706c17cf63 commit: e02a97e87a96a6265cf20e6bf0daf4a97c2f71d0 Author: Hans de Graaff degraaff org> AuthorDate: Wed Sep 19 07:05:55 2012 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Wed Sep 19 07:05:55 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/graaff.git;a=commit;h=e02a97e8 Initial import. License still to be determined. (Portage version: 2.1.11.9/git/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 0x8883FA56A308A8D7!) --- media-sound/spotify/ChangeLog | 9 ++ media-sound/spotify/Manifest | 12 +++ media-sound/spotify/metadata.xml | 6 ++ media-sound/spotify/spotify-0.8.4.103.ebuild | 116 ++++++++++++++++++++++++++ 4 files changed, 143 insertions(+), 0 deletions(-) diff --git a/media-sound/spotify/ChangeLog b/media-sound/spotify/ChangeLog new file mode 100644 index 0000000..9855528 --- /dev/null +++ b/media-sound/spotify/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for media-sound/spotify +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*spotify-0.8.4.103 (19 Sep 2012) + + 19 Sep 2012; Hans de Graaff +spotify-0.8.4.103.ebuild: + Initial import based on ebuilds from other overlays. + diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest new file mode 100644 index 0000000..3a7e8b0 --- /dev/null +++ b/media-sound/spotify/Manifest @@ -0,0 +1,12 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb 31702600 SHA256 d350defa4164aaf129985df7e3ca33fc3f88aad2fac1637e6a26cc1794f3b378 SHA512 0f07ff8e2844d3f2626fa02351474a76b0d7178dd94d4d857ff2a0b6d28f887980889e4bc57fab18ab2a0cb6d7771e90bb7a20c2427ab69e2195f5de47ae3622 WHIRLPOOL 7d8a24fdbd9a12e92443264bcb01f27a322028c2074b40cb26e8f0e06195175ae8f369da41cde5d8dbe741792ad3250dc408addf9ceee594f2782a45772817f7 +DIST spotify-client_0.8.4.103.g9cb177b.260-1_i386.deb 28110850 SHA256 61502995da6b126eb6801bf92a8463a7fdd37dc6be0e0aba3560bdadde3531c7 SHA512 b48c70267781dc4b6d5afeee8061a95266de59ae02d252b054cd3a63a8bdcb19a461e7c28095d3884f7e7ff1129778ab7549dda9b891dc107f54182e13725dc2 WHIRLPOOL 0c443030bad393721c964c36561b84eb1388248a47d0dcc2f14541f5a33de4364a2de081e69c8c379e3a4ef529209b76d1f2e14fdaef68631471b414e01ba239 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iF4EAREIAAYFAlBZbtMACgkQiIP6VqMIqNdg7AD9E7lvxCOLC3uF2iXm5VrFRc4t +Wl5HgPeLXE4s+atmGsUA/0N6r4S+2vQOg+O1F6nlwxdhMUwD4hVULGEX23fCMtnX +=RX/X +-----END PGP SIGNATURE----- diff --git a/media-sound/spotify/metadata.xml b/media-sound/spotify/metadata.xml new file mode 100644 index 0000000..9bf681c --- /dev/null +++ b/media-sound/spotify/metadata.xml @@ -0,0 +1,6 @@ + + + + +graaff@gentoo.org + diff --git a/media-sound/spotify/spotify-0.8.4.103.ebuild b/media-sound/spotify/spotify-0.8.4.103.ebuild new file mode 100644 index 0000000..9a91cdf --- /dev/null +++ b/media-sound/spotify/spotify-0.8.4.103.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +DESCRIPTION="Spotify is a social music platform" +HOMEPAGE="https://www.spotify.com/ch-de/download/previews/" +MY_PV="${PV}.g9cb177b.260-1" +MY_P="${PN}-client_${MY_PV}" +SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/" +#SRC_BASE="http://download.spotify.com/preview/" +SRC_URI=" + x86? ( ${SRC_BASE}${MY_P}_i386.deb ) + amd64? ( ${SRC_BASE}${MY_P}_amd64.deb ) + " +LICENSE="Spotify" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pulseaudio" + +DEPEND="" +RDEPEND="${DEPEND} + x11-libs/libX11 + x11-libs/libSM + x11-libs/libICE + x11-libs/libXrender + x11-libs/libXrandr + x11-libs/libXinerama + x11-libs/libXext + x11-libs/libxcb + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/qt-core:4 + x11-libs/qt-gui:4 + x11-libs/qt-webkit:4 + x11-libs/qt-dbus:4 + x11-libs/libXScrnSaver + media-libs/freetype + media-libs/fontconfig + media-libs/alsa-lib + dev-libs/openssl + dev-libs/glib:2 + media-libs/libpng:1.2 + dev-db/sqlite:3 + sys-libs/zlib + app-arch/bzip2 + sys-apps/dbus + sys-apps/util-linux + dev-libs/expat + >=dev-libs/nspr-4.9 + gnome-base/gconf:2 + x11-libs/gtk+:2 + dev-libs/nss + dev-libs/glib:2 + pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )" + +RESTRICT="mirror strip" + +src_unpack() { + mkdir "${P}" + cd "${P}" + unpack ${A} + unpack ./data.tar.gz +} + +src_prepare() { + # link against openssl-1.0.0 as it crashes with 0.9.8 + sed -i \ + -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \ + usr/share/spotify/spotify || die "sed failed" + # different NSPR / NSS library names for some reason + sed -i \ + -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1.12/g' \ + -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1.9\3\3/g' \ + usr/share/spotify/libcef.so || die "sed failed" +} + +src_install() { + dodoc usr/share/doc/spotify-client/changelog.Debian.gz + dodoc usr/share/doc/spotify-client/copyright + insinto /usr/share/applications + doins usr/share/applications/*.desktop + insinto /usr/share/pixmaps + doins usr/share/pixmaps/*.png + + # install in /opt/spotify + SPOTIFY_HOME=/opt/spotify + dodir ${SPOTIFY_HOME} + insinto ${SPOTIFY_HOME} + doins -r usr/share/spotify/* + fperms +x ${SPOTIFY_HOME}/spotify + dodir /usr/share + dosym ${SPOTIFY_HOME} /usr/share/spotify + + dodir /usr/bin + cat <<-EOF >"${D}"/usr/bin/spotify + #! /bin/sh + LD_PRELOAD="\${LD_PRELOAD} /usr/share/spotify/libcef.so" + export LD_PRELOAD + exec ${SPOTIFY_HOME}/spotify "\$@" + EOF + fperms +x /usr/bin/spotify + + # revdep-rebuild produces a false positive because of symbol versioning + dodir /etc/revdep-rebuild + cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN} + SEARCH_DIRS_MASK="${SPOTIFY_HOME}" + EOF +} + +pkg_postinst() { + ewarn "If Spotify crashes after an upgrade its cache may be corrupt." + ewarn "To remove the cache:" + ewarn "rm -rf ~/.cache/spotify" +}