# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 inherit git-r3 systemd DESCRIPTION="Open Source Spotify client library" HOMEPAGE="https://github.com/librespot-org/librespot" EGIT_REPO_URI="https://github.com/librespot-org/librespot.git" LICENSE="|| ( MIT license )" SLOT="0" KEYWORDS="~arm" DEPEND=" dev-util/cargo-bin >=dev-lang/rust-bin-1.20 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 systemd_install_serviced "${FILESDIR}"/"${PN}".service.conf }