media-sound/upmpdcli: New package 1.2.15
authorErik Mackdanz <stasibear@gentoo.org>
Wed, 31 Jan 2018 05:06:56 +0000 (23:06 -0600)
committerErik Mackdanz <stasibear@gentoo.org>
Sun, 4 Feb 2018 16:51:03 +0000 (10:51 -0600)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

media-sound/upmpdcli/Manifest [new file with mode: 0644]
media-sound/upmpdcli/files/upmpdcli.confd [new file with mode: 0644]
media-sound/upmpdcli/files/upmpdcli.initd [new file with mode: 0644]
media-sound/upmpdcli/metadata.xml [new file with mode: 0644]
media-sound/upmpdcli/upmpdcli-1.2.15.ebuild [new file with mode: 0644]

diff --git a/media-sound/upmpdcli/Manifest b/media-sound/upmpdcli/Manifest
new file mode 100644 (file)
index 0000000..a5246d4
--- /dev/null
@@ -0,0 +1 @@
+DIST upmpdcli-1.2.15.tar.gz 401551 BLAKE2B 0ec3fd67d67fd039f5b0ac385ad12a78e3c48b0d2530690eb9aaff66bbdbf7ae7229d64cfe753d9e70e75070ee5bc4d0849d11909813f06377981974733134ee SHA512 4a62aced9fa2395752164332c84bf3dedd7b793e7e37638cfe063e887d52b9ce956c866de2aa1cddb7a4dcad97562050f9588aedd59e49e7d427671179f9258a
diff --git a/media-sound/upmpdcli/files/upmpdcli.confd b/media-sound/upmpdcli/files/upmpdcli.confd
new file mode 100644 (file)
index 0000000..dce55d7
--- /dev/null
@@ -0,0 +1 @@
+config=/etc/upmpdcli.conf
diff --git a/media-sound/upmpdcli/files/upmpdcli.initd b/media-sound/upmpdcli/files/upmpdcli.initd
new file mode 100644 (file)
index 0000000..43618ae
--- /dev/null
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
+pidfile=/var/run/upmpdcli.pid
+command=/usr/bin/upmpdcli
+config="${config:-/etc/upmpdcli.conf}"
+command_args="-c ${config}"
+command_args_background="-D"
+
+depend() {
+    need localmount mpd
+}
diff --git a/media-sound/upmpdcli/metadata.xml b/media-sound/upmpdcli/metadata.xml
new file mode 100644 (file)
index 0000000..b13ccae
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+       <email>stasibear@gentoo.org</email>
+       <description>Primary maintainer</description>
+</maintainer>
+<longdescription>
+       UPnP Media Renderer front-end for MPD, the Music Player Daemon
+</longdescription>
+<use>
+       <flag name="thirdparty">
+               Enable streaming from Qobuz and Tidal external services
+       </flag>
+</use>
+</pkgmetadata>
diff --git a/media-sound/upmpdcli/upmpdcli-1.2.15.ebuild b/media-sound/upmpdcli/upmpdcli-1.2.15.ebuild
new file mode 100644 (file)
index 0000000..3acbdb4
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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
+       net-libs/libupnpp
+"
+RDEPEND="
+       ${DEPEND}
+       thirdparty? ( dev-python/requests )
+       media-sound/mpd
+"
+
+pkg_setup() {
+       enewuser "${PN}"
+       enewgroup "${PN}"
+}
+
+src_install() {
+       default
+       newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+       newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+}
+
+pkg_postinst() {
+       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."
+}