blob: 51d75c0cabe8fbbdfaec226b6e310632a88356e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Library for interfacing Music Player Daemon (media-sound/mpd)"
HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/libmpdclient"
SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm ~arm64 ppc ppc64 ~riscv ~sparc x86"
IUSE="doc examples test"
RESTRICT="!test? ( test )"
BDEPEND="doc? ( app-text/doxygen )"
DEPEND="test? ( dev-libs/check )"
src_prepare() {
default
sed -e "s:@top_srcdir@:.:" -i doc/doxygen.conf.in || die
# meson doesn't support setting docdir
sed -e "/^docdir =/s/meson.project_name()/'${PF}'/" \
-e "/^install_data(/s/'COPYING', //" \
-i meson.build || die
}
src_configure() {
local emesonargs=(
-Ddocumentation=$(usex doc true false)
-Dtest=$(usex test true false)
)
meson_src_configure
}
src_install() {
meson_src_install
use examples && dodoc src/example.c
}
|