mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-cpp/scnlib: fix compilation with simdutf-5.0.0
Fixes: https://bugs.gentoo.org/927799 Signed-off-by: Steffen Winter <steffen.winter@proton.me>
This commit is contained in:
16
dev-cpp/scnlib/files/scnlib-2.0.2-accept-newer-simdutf.patch
Normal file
16
dev-cpp/scnlib/files/scnlib-2.0.2-accept-newer-simdutf.patch
Normal file
@@ -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.0.0 CONFIG)
|
||||
+ if(NOT simdutf_FOUND)
|
||||
+ find_package(simdutf 4.0.0 CONFIG REQUIRED)
|
||||
+ endif()
|
||||
else ()
|
||||
FetchContent_Declare(
|
||||
simdutf
|
||||
@@ -22,8 +22,12 @@ BDEPEND="
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-accept-newer-simdutf.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
use test && eapply "${FILESDIR}/${PN}-2.0.0-no-external-test-deps.patch"
|
||||
use test && eapply "${FILESDIR}/${P}-no-external-test-deps.patch"
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user