blob: de1899cbdaf315ade564016db3e6c1b93f5235db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd user
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"
IUSE="thirdparty"
DEPEND="
dev-libs/jsoncpp
media-libs/libmpdclient
<=net-libs/libmicrohttpd-0.9.70
>=net-libs/libupnpp-0.17.0
"
RDEPEND="
${DEPEND}
thirdparty? ( dev-python/requests )
"
pkg_setup() {
enewuser "${PN}"
enewgroup "${PN}"
}
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."
einfo
einfo "Consider installing media-sound/sc2mpd. If upmpdcli"
einfo "detects sc2mpd at run-time, capabilities are added"
einfo "including internet radio support. See upstream docs"
einfo "for more information."
}
|