add shairport-sync package

This commit is contained in:
Anton Schubert 2016-06-04 17:46:32 +02:00
parent 76123df122
commit d51da5ea2a
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit autotools user
DESCRIPTION="Emulates an AirPort Express to stream music from i-devices"
HOMEPAGE="https://github.com/mikebrady/shairport-sync"
SRC_URI="https://github.com/mikebrady/${PN}/archive/${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="avahi soxr"
DEPEND="dev-libs/openssl
media-libs/alsa-lib
dev-libs/libdaemon
dev-libs/popt
dev-libs/libconfig
avahi? ( net-dns/avahi )
soxr? ( media-libs/soxr )"
RDEPEND="${DEPEND}"
pkg_setup() {
enewuser shairport-sync -1 -1 -1 audio
}
src_prepare() {
eapply_user
eautoreconf
}
src_configure() {
econf \
$(use_with avahi) \
$(use_with soxr) \
--with-ssl=openssl \
--with-alsa
}
#src_install() {
# dobin shairport
# dodoc README.md
# newconfd "${FILESDIR}"/${PN}.confd ${PN}
# newinitd "${FILESDIR}"/${PN}.initd ${PN}
#}