Gentoo Archives: gentoo-commits

From: Erik Mackdanz <stasibear@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/upmpdcli/, media-sound/upmpdcli/files/
Date: Sat, 09 Feb 2019 15:53:09
Message-Id: 1549727559.40f04f1ef95b0aa1b5e2e30e3bd9649441e9f5da.stasibear@gentoo
1 commit: 40f04f1ef95b0aa1b5e2e30e3bd9649441e9f5da
2 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 9 15:52:39 2019 +0000
4 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 15:52:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40f04f1e
7
8 media-sound/upmpdcli: Bump to 1.4.0
9
10 Closes: https://bugs.gentoo.org/670130
11 Closes: https://bugs.gentoo.org/673552
12 Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org>
13 Package-Manager: Portage-2.3.59, Repoman-2.3.12
14
15 media-sound/upmpdcli/Manifest | 1 +
16 media-sound/upmpdcli/files/upmpdcli.initd | 14 ++++++++
17 media-sound/upmpdcli/upmpdcli-1.4.0.ebuild | 51 ++++++++++++++++++++++++++++++
18 3 files changed, 66 insertions(+)
19
20 diff --git a/media-sound/upmpdcli/Manifest b/media-sound/upmpdcli/Manifest
21 index c578441a665..c879d05a9cf 100644
22 --- a/media-sound/upmpdcli/Manifest
23 +++ b/media-sound/upmpdcli/Manifest
24 @@ -1 +1,2 @@
25 DIST upmpdcli-1.3.6.tar.gz 515712 BLAKE2B 6de6a3af2e474a3f8d12865e3cdd420f31955e88a0eb1c8ffd019809666c4c613631d642b34bb5fa473fceb7207613d90584fdf856b6a49899f9c2aa31b2b471 SHA512 280b02116786c86fd5f1e472fa9070b3a6d846acd670e36d476b150d4a3e91e5a6d1546b7053b1f35a2e0de553c8517640934af010d371d3cbed248592be502d
26 +DIST upmpdcli-1.4.0.tar.gz 469357 BLAKE2B edd46e86f367ff2f88346cfb4cb249dae4463095553bb220fbd9a4078315044ec7591f58c30a0f20840a9f217230e46bc3b3569989a0ae2c05a44aa140c234c4 SHA512 1ed1f0a89a02610d70fb9e380dcbdbd8d636bc4a0964a16d27bd7c04126674f7f14e50e5fe521a430a06ea04ecef1275c7ad5f1c276daae1c285b73cceba9dec
27
28 diff --git a/media-sound/upmpdcli/files/upmpdcli.initd b/media-sound/upmpdcli/files/upmpdcli.initd
29 new file mode 100644
30 index 00000000000..de11d277486
31 --- /dev/null
32 +++ b/media-sound/upmpdcli/files/upmpdcli.initd
33 @@ -0,0 +1,14 @@
34 +#!/sbin/openrc-run
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +description="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
39 +pidfile=/var/run/upmpdcli.pid
40 +command=/usr/bin/upmpdcli
41 +config="${config:-/etc/upmpdcli.conf}"
42 +command_args="-c ${config}"
43 +command_args_background="-D"
44 +
45 +depend() {
46 + need localmount
47 +}
48
49 diff --git a/media-sound/upmpdcli/upmpdcli-1.4.0.ebuild b/media-sound/upmpdcli/upmpdcli-1.4.0.ebuild
50 new file mode 100644
51 index 00000000000..f1851fb80b7
52 --- /dev/null
53 +++ b/media-sound/upmpdcli/upmpdcli-1.4.0.ebuild
54 @@ -0,0 +1,51 @@
55 +# Copyright 1999-2019 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +
60 +inherit systemd user
61 +
62 +DESCRIPTION="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
63 +HOMEPAGE="https://www.lesbonscomptes.com/upmpdcli/index.html"
64 +LICENSE="GPL-2"
65 +
66 +SRC_URI="https://www.lesbonscomptes.com/upmpdcli/downloads/${P}.tar.gz"
67 +SLOT="0"
68 +KEYWORDS="~amd64"
69 +IUSE="thirdparty"
70 +
71 +DEPEND="
72 + dev-libs/jsoncpp
73 + media-libs/libmpdclient
74 + net-libs/libmicrohttpd
75 + >=net-libs/libupnpp-0.17.0
76 +"
77 +RDEPEND="
78 + ${DEPEND}
79 + thirdparty? ( dev-python/requests )
80 +"
81 +
82 +pkg_setup() {
83 + enewuser "${PN}"
84 + enewgroup "${PN}"
85 +}
86 +
87 +src_install() {
88 + default
89 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
90 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
91 + systemd_dounit systemd/upmpdcli.service
92 +}
93 +
94 +pkg_postinst() {
95 + einfo
96 + einfo "This package no longer assumes that upmpdcli is driving an"
97 + einfo "mpdinstance on the same host (https://bugs.gentoo.org/670130)."
98 + einfo "Probably it is though, so be sure your mpd is built with"
99 + einfo "USE=curl."
100 + einfo
101 + einfo "Consider installing media-sound/sc2mpd. If upmpdcli"
102 + einfo "detects sc2mpd at run-time, capabilities are added"
103 + einfo "including internet radio support. See upstream docs"
104 + einfo "for more information."
105 +}