ischluff-overlay/media-sound/shairport-sync/shairport-sync-9999.ebuild
Anton Schubert c017f8d988 media-sound/shairport-sync: add 9999 ebuild
Package-Manager: Portage-3.0.20, Repoman-3.0.3
2021-10-21 17:35:20 +02:00

68 lines
1.3 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit autotools user git-r3
DESCRIPTION="Emulates an AirPort Express to stream music from i-devices"
HOMEPAGE="https://github.com/mikebrady/shairport-sync"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/mikebrady/shairport-sync.git"
EGIT_BRANCH="development"
inherit git-r3
else
SRC_URI="https://github.com/mikebrady/${PN}/archive/${PV}.tar.gz"
fi
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="avahi ao soxr systemd pulseaudio pipewire"
DEPEND="dev-libs/openssl
media-libs/alsa-lib
dev-libs/libdaemon
dev-libs/popt
dev-libs/libconfig
avahi? ( net-dns/avahi )
ao? ( media-libs/libao )
soxr? ( media-libs/soxr )
pulseaudio? ( media-sound/pulseaudio )
pipewire? ( media-video/pipewire )"
RDEPEND="${DEPEND}"
pkg_setup() {
enewuser shairport-sync -1 -1 -1 audio
}
src_prepare() {
eapply_user
eautoreconf
}
src_configure() {
local myconf
if use avahi ; then
myconf+=" --with-avahi"
fi
if use soxr ; then
myconf+=" --with-soxr"
fi
if use ao ; then
myconf+=" --with-ao"
fi
if use pulseaudio ; then
myconf+=" --with-pa"
fi
if use systemd ; then
myconf+=" --with-systemd"
fi
if use pipewire ; then
myconf+=" --with-pw"
fi
econf ${myconf} \
--with-ssl=openssl \
--with-configfiles \
--with-alsa
}