media-sound/shairport-sync: fix user install
Package-Manager: Portage-3.0.30, Repoman-3.0.3
This commit is contained in:
parent
c017f8d988
commit
d51353747e
4 changed files with 39 additions and 19 deletions
56
media-sound/shairport-sync/shairport-sync-3.3.8-r1.ebuild
Normal file
56
media-sound/shairport-sync/shairport-sync-3.3.8-r1.ebuild
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools
|
||||
|
||||
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 ao soxr systemd pulseaudio"
|
||||
|
||||
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 )"
|
||||
RDEPEND="${DEPEND}
|
||||
acct-group/shairport-sync
|
||||
acct-user/shairport-sync"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
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
|
||||
econf ${myconf} \
|
||||
--with-ssl=openssl \
|
||||
--with-configfiles \
|
||||
--with-alsa
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue