mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-cpp/fkYAML: new package, add 0.4.2
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
39
dev-cpp/fkYAML/fkYAML-0.4.2.ebuild
Normal file
39
dev-cpp/fkYAML/fkYAML-0.4.2.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="A C++ header-only YAML library"
|
||||
HOMEPAGE="https://fktn-k.github.io/fkYAML/"
|
||||
SRC_URI="https://github.com/fktn-k/fkYAML/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? ( =dev-cpp/catch-2* )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.4.2-Remove-the-space-between-operator-and-_yaml.patch"
|
||||
"${FILESDIR}/${PN}-0.4.2-Use-system-Catch2.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
find thirdparty -mindepth 1 -not -name imapdl -delete
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DFK_YAML_BUILD_TEST=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user