public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tiziano Müller" <dev-zero@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/dev-zero:master commit in: media-libs/libspotify/
Date: Sun, 17 Apr 2016 19:18:16 +0000 (UTC)	[thread overview]
Message-ID: <1460722284.2ec1891420f31399ab7083aac45a8cc575b9cf7b.dev-zero@gentoo> (raw)

commit:     2ec1891420f31399ab7083aac45a8cc575b9cf7b
Author:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 12:11:24 2016 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 12:11:24 2016 +0000
URL:        https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=2ec18914

media-libs/libspotify: initial commit, (re-)written by me using multilib-minimal eclass

 media-libs/libspotify/Manifest                  |  2 +
 media-libs/libspotify/libspotify-12.1.51.ebuild | 65 +++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/media-libs/libspotify/Manifest b/media-libs/libspotify/Manifest
new file mode 100644
index 0000000..7fc546b
--- /dev/null
+++ b/media-libs/libspotify/Manifest
@@ -0,0 +1,2 @@
+DIST libspotify-12.1.51-Linux-i686-release.tar.gz 1400367 SHA256 941ab4ba10bcd6ec4e96127afd095a39e11bc955de0882734c97e4f588b155ae SHA512 c16d53d8ec57913eb5b47ad3c2d01a804bd494a681c23a770f436b712cdadf89baa0c4c7db13ef96bf7b1e14599afbcb1323556ec24669f9020fc824d9ecd59e WHIRLPOOL 1af9e03edc471dc97b1170dd1b33256165491de3c5a189455bf4c3d46e5dd5226a1089e329b210b7271510b0e534e9704bdc48e2e3973fc41ece925a777203d3
+DIST libspotify-12.1.51-Linux-x86_64-release.tar.gz 1571265 SHA256 43a14e0732ba6ae30078fac105d0e2998d04d5f5c396a4968386bc4e22491058 SHA512 3c636e1739a75910a0da9270c3d2203b52fe1c2d69615159a09bcc8b57c8909f1d005aa22dc5cef529489c6f3a9ee5bde4d6a922be536f8017185c25432c3666 WHIRLPOOL cc11dafc369a75301fd6a5fa7b43c6d0fe60c777d509f2578150fb016ca5108253b634aa24216cc5fe7a9752563e6016336ae54c95791c79868ff3544406b237

diff --git a/media-libs/libspotify/libspotify-12.1.51.ebuild b/media-libs/libspotify/libspotify-12.1.51.ebuild
new file mode 100644
index 0000000..b395192
--- /dev/null
+++ b/media-libs/libspotify/libspotify-12.1.51.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit multilib-minimal
+
+DESCRIPTION="SDK/C language API for Spotify"
+HOMEPAGE="https://developer.spotify.com/technologies/libspotify/"
+SRC_URI="abi_x86_64? ( https://developer.spotify.com/download/${PN}/${P}-Linux-x86_64-release.tar.gz )
+	abi_x86_32? ( https://developer.spotify.com/download/${PN}/${P}-Linux-i686-release.tar.gz )"
+
+LICENSE="libspotify Boost-1.0 MIT BSD ZLIB CPOL"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+	declare -A abi_map
+	abi_map["amd64"]="x86_64"
+	abi_map["x86"]="i686"
+
+	multilib_src_unpack() {
+		# manually unpack and strip first dir
+		mkdir -p "${BUILD_DIR}" || die
+		tar -C "${BUILD_DIR}" \
+			-x --strip-components 1 \
+			-f "${DISTDIR}/${P}-Linux-${abi_map[${ABI}]}-release.tar.gz" || die
+	}
+
+	multilib_parallel_foreach_abi multilib_src_unpack	
+}
+
+multilib_src_configure() {
+	sed -i \
+		-e "s|PKG_PREFIX|${EROOT}/usr|" \
+		-e "s|/lib|/$(get_libdir)|" \
+		lib/pkgconfig/libspotify.pc || die
+}
+
+src_compile() { :; }
+
+multilib_src_install() {
+	insinto /usr/$(get_libdir)
+	doins lib/libspotify.so*
+
+	insinto /usr/$(get_libdir)/pkgconfig
+	doins lib/pkgconfig/libspotify.pc
+
+	insinto /usr/include
+	doins -r include/libspotify
+
+	doman share/man*/*
+
+	if use doc ; then
+		dodoc -r share/doc/libspotify/examples/
+		dohtml -r share/doc/libspotify/html/*
+	fi
+}


             reply	other threads:[~2016-04-17 19:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-17 19:18 Tiziano Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-15 11:08 [gentoo-commits] dev/dev-zero:master commit in: media-libs/libspotify/ Tiziano Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1460722284.2ec1891420f31399ab7083aac45a8cc575b9cf7b.dev-zero@gentoo \
    --to=dev-zero@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox