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 BA44559CB3 for ; Sun, 17 Apr 2016 19:18:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08BFE21C0AB; Sun, 17 Apr 2016 19:18:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1A7921C0C0 for ; Sun, 17 Apr 2016 19:18:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45AE3340A9F for ; Sun, 17 Apr 2016 19:18:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D3D37E for ; Sun, 17 Apr 2016 19:18:16 +0000 (UTC) From: "Tiziano Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tiziano Müller" Message-ID: <1460722284.2ec1891420f31399ab7083aac45a8cc575b9cf7b.dev-zero@gentoo> Subject: [gentoo-commits] dev/dev-zero:master commit in: media-libs/libspotify/ X-VCS-Repository: dev/dev-zero X-VCS-Files: media-libs/libspotify/Manifest media-libs/libspotify/libspotify-12.1.51.ebuild X-VCS-Directories: media-libs/libspotify/ X-VCS-Committer: dev-zero X-VCS-Committer-Name: Tiziano Müller X-VCS-Revision: 2ec1891420f31399ab7083aac45a8cc575b9cf7b X-VCS-Branch: master Date: Sun, 17 Apr 2016 19:18:16 +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: 332e0f38-1dca-47de-8289-12ec3f96edbf X-Archives-Hash: 57ceb068eb89dda7ad645f33c965a4b9 commit: 2ec1891420f31399ab7083aac45a8cc575b9cf7b Author: Tiziano Müller gentoo org> AuthorDate: Fri Apr 15 12:11:24 2016 +0000 Commit: Tiziano Müller gentoo 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 +}