guru/dev-cpp/scnlib/scnlib-2.0.3.ebuild
Steffen Winter f0ef2dc821
dev-cpp/scnlib: make simdutf a runtime dependency
Closes: https://bugs.gentoo.org/932333

Signed-off-by: Steffen Winter <steffen.winter@proton.me>
2024-05-21 11:39:26 +02:00

40 lines
834 B
Bash

# 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://www.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"
RDEPEND=">=dev-cpp/simdutf-5.2.0:="
DEPEND="${RDEPEND}"
BDEPEND="
dev-cpp/fast_float
test? ( dev-cpp/gtest )
"
RESTRICT="!test? ( test )"
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_GTEST=ON
-DSCN_USE_EXTERNAL_SIMDUTF=ON
)
cmake_src_configure
}