diff options
author | Steffen Winter <steffen.winter@proton.me> | 2024-02-13 11:56:51 +0100 |
---|---|---|
committer | Steffen Winter <steffen.winter@proton.me> | 2024-02-13 11:56:51 +0100 |
commit | fce5a1fc194b9a6c5e7015e166a8975a755c6205 (patch) | |
tree | 77ff19574d3ba051cf2c382eff064505e2a9cc22 /dev-cpp/scnlib | |
parent | dev-build/just: drop 1.21.0, 1.22.0 (diff) | |
download | guru-fce5a1fc194b9a6c5e7015e166a8975a755c6205.tar.gz guru-fce5a1fc194b9a6c5e7015e166a8975a755c6205.tar.bz2 guru-fce5a1fc194b9a6c5e7015e166a8975a755c6205.zip |
dev-cpp/scnlib: add 2.0.1
Signed-off-by: Steffen Winter <steffen.winter@proton.me>
Diffstat (limited to 'dev-cpp/scnlib')
-rw-r--r-- | dev-cpp/scnlib/Manifest | 1 | ||||
-rw-r--r-- | dev-cpp/scnlib/scnlib-2.0.1.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-cpp/scnlib/Manifest b/dev-cpp/scnlib/Manifest index d9e97204c..26f3ba829 100644 --- a/dev-cpp/scnlib/Manifest +++ b/dev-cpp/scnlib/Manifest @@ -1 +1,2 @@ DIST scnlib-2.0.0.tar.gz 517424 BLAKE2B 152b2b8510c3ab523349e00b5a139c2ea0e6cc234221eb5a472d746ba2b2d176ec9e6515601578b590c9b2d9cb97a136dcf361f73a56c672b3dfd00350a39f60 SHA512 5bca5a43dce9be019775a0cac64945c4b4cdadbecfa8d8e0889b6ed888c3a37ae757aa5d8d60d40418d0058641a40ab6dce35a1de84e9a9a2a6f5b4d12bceed4 +DIST scnlib-2.0.1.tar.gz 517133 BLAKE2B ab9593bf9891ea20e0f9a34d853cbd29c2e8cc08b6a491e3215a8c05d4932e85cc3991146c84f2b536e62738150be1d483eee56c7d615dea57341f464ff49976 SHA512 d4a4dac7f739566ab7c7f1c28e3c528ae9917c0a853302e6afb74fc9e57a10c56aa1e1fa1f6f1aa1e6ffd6d90123dccb4349eb52ba336981755d05683d6e6a65 diff --git a/dev-cpp/scnlib/scnlib-2.0.1.ebuild b/dev-cpp/scnlib/scnlib-2.0.1.ebuild new file mode 100644 index 000000000..9d0703af8 --- /dev/null +++ b/dev-cpp/scnlib/scnlib-2.0.1.ebuild @@ -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 +} |