mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 10:37:10 +01:00
[pcre2] Restore the https://ftp.pcre.org/ mirror in addition to the SourceForge mirrors. (#12233)
This commit is contained in:
parent
485799e37b
commit
3d2a7ca33e
@ -1,4 +1,4 @@
|
||||
Source: pcre2
|
||||
Version: 10.30-8
|
||||
Version: 10.30-9
|
||||
Homepage: https://pcre.org/
|
||||
Description: PCRE2 is a re-working of the original Perl Compatible Regular Expressions library
|
||||
|
@ -1,17 +1,34 @@
|
||||
set(PCRE2_VERSION 10.30)
|
||||
|
||||
vcpkg_from_sourceforge(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO pcre/pcre2
|
||||
REF ${PCRE2_VERSION}
|
||||
FILENAME "pcre2-${PCRE2_VERSION}.zip"
|
||||
SHA512 03e570b946ac29498a114b27e715a0fcf25702bfc9623f9fc085ee8a3214ab3c303baccb9c0af55da6916e8ce40d931d97f1ee9628690563041a943f0aa2bc54
|
||||
PATCHES
|
||||
set(EXPECTED_SHA 03e570b946ac29498a114b27e715a0fcf25702bfc9623f9fc085ee8a3214ab3c303baccb9c0af55da6916e8ce40d931d97f1ee9628690563041a943f0aa2bc54)
|
||||
set(PATCHES
|
||||
fix-space.patch
|
||||
fix-arm64-config.patch
|
||||
fix-uwp.patch
|
||||
fix-uwp.patch)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://ftp.pcre.org/pub/pcre/pcre2-${PCRE2_VERSION}.zip"
|
||||
FILENAME "pcre2-${PCRE2_VERSION}.zip"
|
||||
SHA512 ${EXPECTED_SHA}
|
||||
SILENT_EXIT
|
||||
)
|
||||
|
||||
if (EXISTS "${ARCHIVE}")
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
PATCHES ${PATCHES}
|
||||
)
|
||||
else()
|
||||
vcpkg_from_sourceforge(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO pcre/pcre2
|
||||
REF ${PCRE2_VERSION}
|
||||
FILENAME "pcre2-${PCRE2_VERSION}.zip"
|
||||
SHA512 ${EXPECTED_SHA}
|
||||
PATCHES ${PATCHES}
|
||||
)
|
||||
endif()
|
||||
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Emscripten" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||||
set(JIT OFF)
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user