# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 #inherit distutils-r1 inherit git-r3 systemd DESCRIPTION="Open Source Spotify client library" HOMEPAGE="https://github.com/plietar/librespot" EGIT_REPO_URI="https://github.com/plietar/librespot.git" LICENSE="|| ( MIT license )" SLOT="0" KEYWORDS="~arm" DEPEND=" dev-util/cargo-bin >=dev-lang/rust-bin-1.15 media-libs/portaudio " src_compile() { cargo build --release --verbose --features "portaudio-backend alsa-backend pulseaudio-backend" || die } src_test() { cargo test || die "tests failed" } src_install() { dobin target/release/"${PN}" dodoc docs/* README.md systemd_dounit "${FILESDIR}"/"${PN}".service doconfd "${FILESDIR}"/"${PN}".conf }