Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mpc/
Date: Sat, 09 Feb 2019 21:52:54
Message-Id: 1549749105.35999aeea8ffc954dfb586fc9109a225adc4fe5d.asturm@gentoo
1 commit: 35999aeea8ffc954dfb586fc9109a225adc4fe5d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 9 21:42:28 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 21:51:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35999aee
7
8 media-sound/mpc: Add USE doc, fix install path
9
10 Closes: https://bugs.gentoo.org/670074
11 Closes: https://bugs.gentoo.org/670262
12 Package-Manager: Portage-2.3.59, Repoman-2.3.12
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 media-sound/mpc/mpc-0.31-r1.ebuild | 54 ++++++++++++++++++++++++++++++++++++++
16 1 file changed, 54 insertions(+)
17
18 diff --git a/media-sound/mpc/mpc-0.31-r1.ebuild b/media-sound/mpc/mpc-0.31-r1.ebuild
19 new file mode 100644
20 index 00000000000..63e630daea4
21 --- /dev/null
22 +++ b/media-sound/mpc/mpc-0.31-r1.ebuild
23 @@ -0,0 +1,54 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit bash-completion-r1 meson
30 +
31 +DESCRIPTION="Commandline client for Music Player Daemon (media-sound/mpd)"
32 +HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/mpc"
33 +SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
38 +IUSE="doc iconv test"
39 +
40 +BDEPEND="
41 + virtual/pkgconfig
42 + doc? ( dev-python/sphinx )
43 + iconv? ( virtual/libiconv )
44 + test? ( dev-libs/check )
45 +"
46 +DEPEND="media-libs/libmpdclient"
47 +RDEPEND="${DEPEND}"
48 +
49 +RESTRICT="!test? ( test )"
50 +
51 +PATCHES=( "${FILESDIR}/${P}-nodoc.patch" )
52 +
53 +src_prepare() {
54 + default
55 +
56 + # use correct docdir
57 + sed -e "/install_dir:.*contrib/s/meson.project_name()/'${PF}'/" \
58 + -i meson.build || die
59 +
60 + # use correct (html) docdir
61 + sed -e "/install_dir:.*doc/s/meson.project_name()/'${PF}'/" \
62 + -i doc/meson.build || die
63 +}
64 +
65 +src_configure() {
66 + local emesonargs=(
67 + -Ddocumentation=$(usex doc enabled disabled)
68 + -Diconv=$(usex iconv enabled disabled)
69 + -Dtest=$(usex test true false)
70 + )
71 + meson_src_configure
72 +}
73 +
74 +src_install() {
75 + meson_src_install
76 + newbashcomp contrib/mpc-completion.bash mpc
77 +}