mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
- the ebuild has "-Dgenerate_cmake_config=true" and requires cmake to build. Signed-off-by: Joonas Niilola <juippis@gentoo.org>
42 lines
849 B
Bash
42 lines
849 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
DESCRIPTION="TOML config file parser and serializer"
|
|
HOMEPAGE="
|
|
https://marzer.github.io/tomlplusplus/
|
|
https://github.com/marzer/tomlplusplus
|
|
"
|
|
SRC_URI="https://github.com/marzer/tomlplusplus/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm64 ~riscv ~x86"
|
|
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
BDEPEND="dev-build/cmake"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
-Dbuild_lib=true
|
|
-Dgenerate_cmake_config=true
|
|
-Duse_vendored_libs=true # for test dependencies, header only and very restrictive version requirements
|
|
$(meson_use test build_tests)
|
|
)
|
|
|
|
meson_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
local emesontestargs=(
|
|
'tests - C'
|
|
)
|
|
|
|
meson_src_test "${emesontestargs[@]}"
|
|
}
|