[pcre2] fetch from github (#21193)

* [pcre2] fetch from github

* version
This commit is contained in:
Matthias Kuhn 2021-11-05 20:56:10 +01:00 committed by GitHub
parent 97b9c602fb
commit afc6992180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 26 deletions

View File

@ -1,33 +1,15 @@
set(PCRE2_VERSION 10.37)
set(EXPECTED_SHA f91760a8e0747f52211612fb0e134d685e224d16bd884eb574718d077a586b1fd7b6435d4e3b75c879b12e02b252467ecc28cdc4bc2903c783dacab089f99c99)
set(PATCHES
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO PhilipHazel/pcre2
REF pcre2-${PCRE2_VERSION}
SHA512 ${EXPECTED_SHA}
HEAD_REF master
PATCHES
pcre2-10.35_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()

View File

@ -1,6 +1,7 @@
{
"name": "pcre2",
"version-string": "10.37",
"port-version": 1,
"description": "PCRE2 is a re-working of the original Perl Compatible Regular Expressions library",
"homepage": "https://pcre.org/"
}

View File

@ -5122,7 +5122,7 @@
},
"pcre2": {
"baseline": "10.37",
"port-version": 0
"port-version": 1
},
"pdal": {
"baseline": "1.7.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f467ee4e8312b3536d9b7af3a181630c9956db5d",
"version-string": "10.37",
"port-version": 1
},
{
"git-tree": "9f61b1640aff6d4d306d30338bbd360c223301b0",
"version-string": "10.37",