You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.4 KiB
69 lines
1.4 KiB
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools systemd
|
|
|
|
DESCRIPTION="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
|
|
HOMEPAGE="https://www.lesbonscomptes.com/upmpdcli/index.html"
|
|
LICENSE="GPL-2"
|
|
|
|
SRC_URI="https://www.lesbonscomptes.com/upmpdcli/downloads/${P}.tar.gz"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="thirdparty"
|
|
|
|
DEPEND="
|
|
dev-libs/jsoncpp
|
|
media-libs/libmpdclient
|
|
net-libs/libmicrohttpd
|
|
net-libs/libupnpp
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
acct-group/upmpdcli
|
|
acct-user/upmpdcli
|
|
app-misc/recoll
|
|
thirdparty? ( dev-python/requests )
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/makefile.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var/lib \
|
|
--disable-dependency-tracking \
|
|
--disable-silent-rules \
|
|
"--docdir=/usr/share/doc/${P}" \
|
|
"--htmldir=/usr/share/doc/${P}/html" \
|
|
--libdir=/usr/lib64 \
|
|
|| die "Configure failed"
|
|
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
|
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
|
systemd_dounit systemd/upmpdcli.service
|
|
}
|
|
|
|
pkg_postinst() {
|
|
einfo
|
|
einfo "This package no longer assumes that upmpdcli is driving an"
|
|
einfo "mpd instance on the same host (https://bugs.gentoo.org/670130)."
|
|
einfo "Probably it is though, so be sure your mpd is built with"
|
|
einfo "USE=curl."
|
|
}
|