dev-cpp/scnlib: add 3.0.0

Signed-off-by: Steffen Winter <steffen.winter@proton.me>
This commit is contained in:
Steffen Winter
2024-06-10 20:42:32 +02:00
parent 773a5aa4e0
commit c2303f3180
2 changed files with 37 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST scnlib-2.0.3.tar.gz 520197 BLAKE2B 6e0a88985e8113d85d5c511fe9ec857af12a5d34224fee7a41d8347e1e1e9fe7bb78b15bbdafd9c06006112de747c9c3cd6b101d1076b619e33ac7e745668cc4 SHA512 888f60d5a60b2e348001a56a59e123f496f89b09668f0b05791e878528c1c46930963f22e3b64130c875896ace56dffc0d9310edabb4804abf79cc125dfd5ff4
DIST scnlib-3.0.0.tar.gz 410057 BLAKE2B f5e6336b08063eacfd3c1c53e22559ea808482fba80d190c1c7a40d17e9c31fc776e7b672ca0943781346de99e115e0a3bf60b910f715d90235bef9934465bb4 SHA512 bf768ce47d4717ddbd563f0fa9472ea001d632a42921737d1ac858c63c664fd834247e192f053927f880ce5b6774d47fb684088f5ac5dbc1033a10df22916df1

View File

@@ -0,0 +1,36 @@
# 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"
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
)
cmake_src_configure
}