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/files/, media-sound/upmpdcli/
Date: Sun, 04 Feb 2018 16:52:17
Message-Id: 1517763063.6bc46b77ac7f5405cdec894793963e0cc94cbf42.stasibear@gentoo
1 commit: 6bc46b77ac7f5405cdec894793963e0cc94cbf42
2 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 31 05:06:56 2018 +0000
4 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 4 16:51:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bc46b77
7
8 media-sound/upmpdcli: New package 1.2.15
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 media-sound/upmpdcli/Manifest | 1 +
13 media-sound/upmpdcli/files/upmpdcli.confd | 1 +
14 media-sound/upmpdcli/files/upmpdcli.initd | 14 +++++++++
15 media-sound/upmpdcli/metadata.xml | 16 +++++++++++
16 media-sound/upmpdcli/upmpdcli-1.2.15.ebuild | 44 +++++++++++++++++++++++++++++
17 5 files changed, 76 insertions(+)
18
19 diff --git a/media-sound/upmpdcli/Manifest b/media-sound/upmpdcli/Manifest
20 new file mode 100644
21 index 00000000000..a5246d45e10
22 --- /dev/null
23 +++ b/media-sound/upmpdcli/Manifest
24 @@ -0,0 +1 @@
25 +DIST upmpdcli-1.2.15.tar.gz 401551 BLAKE2B 0ec3fd67d67fd039f5b0ac385ad12a78e3c48b0d2530690eb9aaff66bbdbf7ae7229d64cfe753d9e70e75070ee5bc4d0849d11909813f06377981974733134ee SHA512 4a62aced9fa2395752164332c84bf3dedd7b793e7e37638cfe063e887d52b9ce956c866de2aa1cddb7a4dcad97562050f9588aedd59e49e7d427671179f9258a
26
27 diff --git a/media-sound/upmpdcli/files/upmpdcli.confd b/media-sound/upmpdcli/files/upmpdcli.confd
28 new file mode 100644
29 index 00000000000..dce55d70aec
30 --- /dev/null
31 +++ b/media-sound/upmpdcli/files/upmpdcli.confd
32 @@ -0,0 +1 @@
33 +config=/etc/upmpdcli.conf
34
35 diff --git a/media-sound/upmpdcli/files/upmpdcli.initd b/media-sound/upmpdcli/files/upmpdcli.initd
36 new file mode 100644
37 index 00000000000..43618aeca4e
38 --- /dev/null
39 +++ b/media-sound/upmpdcli/files/upmpdcli.initd
40 @@ -0,0 +1,14 @@
41 +#!/sbin/openrc-run
42 +# Copyright 1999-2018 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +description="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
46 +pidfile=/var/run/upmpdcli.pid
47 +command=/usr/bin/upmpdcli
48 +config="${config:-/etc/upmpdcli.conf}"
49 +command_args="-c ${config}"
50 +command_args_background="-D"
51 +
52 +depend() {
53 + need localmount mpd
54 +}
55
56 diff --git a/media-sound/upmpdcli/metadata.xml b/media-sound/upmpdcli/metadata.xml
57 new file mode 100644
58 index 00000000000..b13ccae7c8b
59 --- /dev/null
60 +++ b/media-sound/upmpdcli/metadata.xml
61 @@ -0,0 +1,16 @@
62 +<?xml version="1.0" encoding="UTF-8"?>
63 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
64 +<pkgmetadata>
65 +<maintainer type="person">
66 + <email>stasibear@g.o</email>
67 + <description>Primary maintainer</description>
68 +</maintainer>
69 +<longdescription>
70 + UPnP Media Renderer front-end for MPD, the Music Player Daemon
71 +</longdescription>
72 +<use>
73 + <flag name="thirdparty">
74 + Enable streaming from Qobuz and Tidal external services
75 + </flag>
76 +</use>
77 +</pkgmetadata>
78
79 diff --git a/media-sound/upmpdcli/upmpdcli-1.2.15.ebuild b/media-sound/upmpdcli/upmpdcli-1.2.15.ebuild
80 new file mode 100644
81 index 00000000000..3acbdb45b48
82 --- /dev/null
83 +++ b/media-sound/upmpdcli/upmpdcli-1.2.15.ebuild
84 @@ -0,0 +1,44 @@
85 +# Copyright 1999-2018 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=6
89 +
90 +DESCRIPTION="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
91 +HOMEPAGE="https://www.lesbonscomptes.com/upmpdcli/index.html"
92 +LICENSE="GPL-2"
93 +
94 +SRC_URI="https://www.lesbonscomptes.com/upmpdcli/downloads/${P}.tar.gz"
95 +SLOT="0"
96 +KEYWORDS="~amd64"
97 +IUSE="thirdparty"
98 +
99 +DEPEND="
100 + dev-libs/jsoncpp
101 + media-libs/libmpdclient
102 + net-libs/libmicrohttpd
103 + net-libs/libupnpp
104 +"
105 +RDEPEND="
106 + ${DEPEND}
107 + thirdparty? ( dev-python/requests )
108 + media-sound/mpd
109 +"
110 +
111 +pkg_setup() {
112 + enewuser "${PN}"
113 + enewgroup "${PN}"
114 +}
115 +
116 +src_install() {
117 + default
118 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
119 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
120 +}
121 +
122 +pkg_postinst() {
123 + einfo
124 + einfo "Consider installing media-sound/sc2mpd. If upmpdcli"
125 + einfo "detects sc2mpd at run-time, capabilities are added"
126 + einfo "including internet radio support. See upstream docs"
127 + einfo "for more information."
128 +}