dev-cpp/scnlib: add 2.0.2

Signed-off-by: Steffen Winter <steffen.winter@proton.me>
This commit is contained in:
Steffen Winter
2024-02-20 01:12:58 +01:00
parent 387f026801
commit 0c36758313
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="scanf for modern C++ "
HOMEPAGE="https://scnlib.dev/"
SRC_URI="https://github.com/eliaskosunen/scnlib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
BDEPEND="
dev-cpp/fast_float
>=dev-cpp/simdutf-4.0.0:=
test? ( dev-cpp/gtest )
"
RESTRICT="!test? ( test )"
src_prepare() {
use test && eapply "${FILESDIR}/${PN}-2.0.0-no-external-test-deps.patch"
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DSCN_BENCHMARKS=OFF
-DSCN_BENCHMARKS_BINARYSIZE=OFF
-DSCN_BENCHMARKS_BUILDTIME=OFF
-DSCN_DOCS=OFF
-DSCN_EXAMPLES=$(usex test ON OFF)
-DSCN_TESTS=$(usex test ON OFF)
-DSCN_USE_EXTERNAL_FAST_FLOAT=ON
-DSCN_USE_EXTERNAL_SIMDUTF=ON
)
cmake_src_configure
}