From ce8bac0b2c19b03cc6900f83150e5919a7ef45d8 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 4 Apr 2024 17:42:36 +0000 Subject: Adding metadata --- .../files/scnlib-2.0.2-accept-simdutf-5.2.x.patch | 16 ++++++++ dev-cpp/scnlib/scnlib-2.0.2-r1.ebuild | 46 ++++++++++++++++++++++ dev-cpp/scnlib/scnlib-2.0.2.ebuild | 46 ---------------------- 3 files changed, 62 insertions(+), 46 deletions(-) create mode 100644 dev-cpp/scnlib/files/scnlib-2.0.2-accept-simdutf-5.2.x.patch create mode 100644 dev-cpp/scnlib/scnlib-2.0.2-r1.ebuild delete mode 100644 dev-cpp/scnlib/scnlib-2.0.2.ebuild (limited to 'dev-cpp/scnlib') diff --git a/dev-cpp/scnlib/files/scnlib-2.0.2-accept-simdutf-5.2.x.patch b/dev-cpp/scnlib/files/scnlib-2.0.2-accept-simdutf-5.2.x.patch new file mode 100644 index 000000000000..af0feb295c7a --- /dev/null +++ b/dev-cpp/scnlib/files/scnlib-2.0.2-accept-simdutf-5.2.x.patch @@ -0,0 +1,16 @@ +diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake +index ae2832b..186fbed 100644 +--- a/cmake/dependencies.cmake ++++ b/cmake/dependencies.cmake +@@ -61,7 +61,10 @@ endif () + # we don't want to include tests of dependencies, so we need to do some manual work + + if (SCN_USE_EXTERNAL_SIMDUTF) +- find_package(simdutf 4.0.0 CONFIG REQUIRED) ++ find_package(simdutf 5.2.0 CONFIG) ++ if(NOT simdutf_FOUND) ++ find_package(simdutf 4.0.0 CONFIG REQUIRED) ++ endif() + else () + FetchContent_Declare( + simdutf diff --git a/dev-cpp/scnlib/scnlib-2.0.2-r1.ebuild b/dev-cpp/scnlib/scnlib-2.0.2-r1.ebuild new file mode 100644 index 000000000000..c4d3153a0635 --- /dev/null +++ b/dev-cpp/scnlib/scnlib-2.0.2-r1.ebuild @@ -0,0 +1,46 @@ +# 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-5.2.0:= + test? ( dev-cpp/gtest ) +" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/${P}-accept-simdutf-5.2.x.patch" +) + +src_prepare() { + use test && eapply "${FILESDIR}/${P}-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 +} diff --git a/dev-cpp/scnlib/scnlib-2.0.2.ebuild b/dev-cpp/scnlib/scnlib-2.0.2.ebuild deleted file mode 100644 index dd3f493e65ef..000000000000 --- a/dev-cpp/scnlib/scnlib-2.0.2.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# 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 )" - -PATCHES=( - "${FILESDIR}/${P}-accept-newer-simdutf.patch" -) - -src_prepare() { - use test && eapply "${FILESDIR}/${P}-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 -} -- cgit v1.3