diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-07 23:31:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-07 23:31:01 +0100 |
commit | 11e4049d80ff5ce2aa21c2bb5dab36897e5359e9 (patch) | |
tree | 8a9bf6a29e45cb7a9c9cdc39be9dcda18917cd1a /dev-util/muon/muon-0.2.0.ebuild | |
parent | debb2c431b40a6b4750a39956cc5fcfa5a4a6476 (diff) |
gentoo auto-resync : 07:04:2023 - 23:31:01
Diffstat (limited to 'dev-util/muon/muon-0.2.0.ebuild')
-rw-r--r-- | dev-util/muon/muon-0.2.0.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-util/muon/muon-0.2.0.ebuild b/dev-util/muon/muon-0.2.0.ebuild new file mode 100644 index 000000000000..687c318ef3ba --- /dev/null +++ b/dev-util/muon/muon-0.2.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit meson python-any-r1 + +COMMIT_HASH="${PV}" +MESON_DOCS_TAR=meson-docs-0.64.1-19-g39c6fa4bc.tar.gz + +DESCRIPTION="A meson-compatible build system" +HOMEPAGE="https://muon.build/" +SRC_URI=" + https://git.sr.ht/~lattis/muon/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz + man? ( + https://mochiro.moe/wrap/${MESON_DOCS_TAR} + ) +" + +# Apache-2.0 for meson-docs +LICENSE="GPL-3 man? ( Apache-2.0 )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+archive +curl +libpkgconf +man" + +S="${WORKDIR}/${PN}-${COMMIT_HASH}" + +DEPEND=" + curl? ( net-misc/curl ) + archive? ( app-arch/libarchive:= ) + libpkgconf? ( dev-util/pkgconf:= ) + man? ( app-text/scdoc ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + man? ( + $(python_gen_any_dep ' + dev-python/pyyaml[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +src_prepare() { + default + + if use man; then + mv "${WORKDIR}/meson-docs" "${S}/subprojects" || die + fi +} + +src_configure() { + local emesonargs=( + $(meson_feature curl libcurl) + $(meson_feature archive libarchive) + $(meson_feature libpkgconf) + $(meson_feature man docs) + -Dsamurai=disabled # patched version of samurai downloaded via wraps + -Dbestline=enabled # vendored bestline, an insignificant addition + ) + meson_src_configure +} |