summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2021-12-03 10:50:32 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2021-12-03 10:50:32 +0100
commitc59ce12f5aeeacdb1d1f8d7270ebce6141a6da0a (patch)
tree67bed040766a3e09167eae2965a00fdbf8b20c4a /media-sound
parentdev-java/bcel: add missing dependency (diff)
downloadgentoo-c59ce12f5aeeacdb1d1f8d7270ebce6141a6da0a.tar.gz
gentoo-c59ce12f5aeeacdb1d1f8d7270ebce6141a6da0a.tar.bz2
gentoo-c59ce12f5aeeacdb1d1f8d7270ebce6141a6da0a.zip
media-sound/mpc: bump to 0.34
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/mpc/Manifest1
-rw-r--r--media-sound/mpc/mpc-0.34.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/media-sound/mpc/Manifest b/media-sound/mpc/Manifest
index c88ce1010cde..a435c2b92a51 100644
--- a/media-sound/mpc/Manifest
+++ b/media-sound/mpc/Manifest
@@ -1 +1,2 @@
DIST mpc-0.33.tar.xz 45044 BLAKE2B 220848e088964297fbaddeedf61d5ddc90386df360a6af81b2d3753517f7ee36ff3d9462242f38b17c991996927a7d1fc253e1006253f2f875023ddb75a800c2 SHA512 d3247dfb54ac3c95caf5666088968a952b33eb7e8f941bca4f3715603839cf5a1bc5300488c78fdce6e38f612b243f2252ea682b8d0fec9f230acd760bf3560c
+DIST mpc-0.34.tar.xz 47940 BLAKE2B 709f54ceebd66f703e5b1bf6ff8deb890e484fdc29c0b2198922763e347caac89d6eec5f74101f9fa860436e7493e2b02cc6b1b26e800e783546fe5a0c6e0d8f SHA512 d43d5547134ffb24f2a2972882f6e264c1011a94d1033369d329487f59414d32d9842835afdd05da96fd8ed28f823d2ae2f46d8d8d24b68f3695badca2a9bbb2
diff --git a/media-sound/mpc/mpc-0.34.ebuild b/media-sound/mpc/mpc-0.34.ebuild
new file mode 100644
index 000000000000..d62d147ec181
--- /dev/null
+++ b/media-sound/mpc/mpc-0.34.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 meson
+
+DESCRIPTION="Commandline client for Music Player Daemon (media-sound/mpd)"
+HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/mpc"
+SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="doc iconv test"
+
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( dev-python/sphinx )
+ iconv? ( virtual/libiconv )
+ test? ( dev-libs/check )
+"
+DEPEND="media-libs/libmpdclient"
+RDEPEND="${DEPEND}"
+
+RESTRICT="!test? ( test )"
+
+PATCHES=( "${FILESDIR}/${PN}-0.31-nodoc.patch" )
+
+src_prepare() {
+ default
+
+ # use correct docdir
+ sed -e "/install_dir:.*contrib/s/meson.project_name()/'${PF}'/" \
+ -i meson.build || die
+
+ # use correct (html) docdir
+ sed -e "/install_dir:.*doc/s/meson.project_name()/'${PF}'/" \
+ -i doc/meson.build || die
+}
+
+src_configure() {
+ local emesonargs=(
+ -Ddocumentation=$(usex doc enabled disabled)
+ -Diconv=$(usex iconv enabled disabled)
+ -Dtest=$(usex test true false)
+ )
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+ newbashcomp contrib/mpc-completion.bash mpc
+}