| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.4.0 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 | 0 |
# Copyright 2022-2026 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-2.80.5-r1
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"
}
curl? ( net-misc/curl ) archive? ( app-arch/libarchive:= ) libpkgconf? ( dev-util/pkgconf:= )
curl? ( net-misc/curl ) archive? ( app-arch/libarchive:= ) libpkgconf? ( dev-util/pkgconf:= )
test? ( >=dev-util/gdbus-codegen-2.80.5-r1 dev-util/glib-utils )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | meson-tests-1e565931348f15f3f9b654f46ab4bf5fa009ca4f.tar.gz | 229885 bytes | https://git.sr.ht/~lattis/meson-tests/archive/1e565931348f15f3f9b654f46ab4bf5fa009ca4f.tar.gz |
| DIST | muon-0.4.0-man.tar.gz | 8006 bytes | https://muon.build/releases/v0.4.0/docs/man.tar.gz |
| DIST | muon-v0.4.0.tar.gz | 3435753 bytes | https://muon.build/releases/v0.4.0/muon-v0.4.0.tar.gz |