blob: 450cd0b4fc9e6b056d033ab0d4f1cdf58b7705da (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo meson
MESON_TESTS_HASH=1e565931348f15f3f9b654f46ab4bf5fa009ca4f
MESON_TESTS_DIRNAME="meson-tests-${MESON_TESTS_HASH}"
DESCRIPTION="A meson-compatible build system"
HOMEPAGE="https://muon.build/"
SRC_URI="
https://muon.build/releases/v${PV}/${PN}-v${PV}.tar.gz
https://muon.build/releases/v${PV}/docs/man.tar.gz -> ${P}-man.tar.gz
test? (
https://git.sr.ht/~lattis/meson-tests/archive/${MESON_TESTS_HASH}.tar.gz
-> ${MESON_TESTS_DIRNAME}.tar.gz
)
"
S="${WORKDIR}/${PN}-v${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="+archive +curl +libpkgconf test"
DEPEND="
curl? ( net-misc/curl )
archive? ( app-arch/libarchive:= )
libpkgconf? ( dev-util/pkgconf:= )
"
RDEPEND="${DEPEND}"
BDEPEND="
test? (
dev-util/gdbus-codegen
dev-util/glib-utils
)
"
RESTRICT="!test? ( test )"
src_unpack() {
default
if use test; then
edo mv "${WORKDIR}/${MESON_TESTS_DIRNAME}" \
"${S}"/tests/project/meson-tests
fi
}
src_prepare() {
default
}
src_configure() {
cat >"${T}/program-file.ini" <<-EOF
[binaries]
git = 'if this exists youre a bad person'
EOF
local emesonargs=(
--native-file="${T}/program-file.ini"
$(meson_feature curl libcurl)
$(meson_feature archive libarchive)
$(meson_feature libpkgconf)
-Ddocs=disabled
-Dtracy=disabled # not in repos
-Dsamurai=disabled # patched version of samurai downloaded via wraps
-Dreadline=bestline # small vendored dependency
)
meson_src_configure
}
src_install() {
meson_install
einstalldocs
doman "${WORKDIR}/man/muon.1"
doman "${WORKDIR}/man/meson.build.5"
}
|