mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[pcre] fix space issue and add mirror (fix #2751)
This commit is contained in:
parent
641128c603
commit
f676dbe847
@ -1,3 +1,3 @@
|
||||
Source: pcre2
|
||||
Version: 10.30-1
|
||||
Version: 10.30-2
|
||||
Description: PCRE2 is a re-working of the original Perl Compatible Regular Expressions library
|
||||
|
13
ports/pcre2/fix-space.patch
Normal file
13
ports/pcre2/fix-space.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index fbc37fe..54e25f2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -91,7 +91,7 @@ CMAKE_POLICY(SET CMP0026 OLD)
|
||||
|
||||
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake
|
||||
|
||||
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${PROJECT_SOURCE_DIR}/src")
|
||||
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I\"${PROJECT_SOURCE_DIR}/src\"")
|
||||
|
||||
# external packages
|
||||
FIND_PACKAGE( BZip2 )
|
@ -2,7 +2,7 @@ set(PCRE2_VERSION 10.30)
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pcre2-${PCRE2_VERSION})
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://sourceforge.net/projects/pcre/files/pcre2/${PCRE2_VERSION}/pcre2-${PCRE2_VERSION}.zip/download"
|
||||
URLS "https://ftp.pcre.org/pub/pcre/pcre2-${PCRE2_VERSION}.zip" "https://sourceforge.net/projects/pcre/files/pcre2/${PCRE2_VERSION}/pcre2-${PCRE2_VERSION}.zip/download"
|
||||
FILENAME "pcre2-${PCRE2_VERSION}.zip"
|
||||
SHA512 03e570b946ac29498a114b27e715a0fcf25702bfc9623f9fc085ee8a3214ab3c303baccb9c0af55da6916e8ce40d931d97f1ee9628690563041a943f0aa2bc54)
|
||||
|
||||
@ -20,6 +20,9 @@ vcpkg_configure_cmake(
|
||||
-DPCRE2_BUILD_TESTS=OFF
|
||||
-DPCRE2_BUILD_PCRE2GREP=OFF)
|
||||
|
||||
vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/fix-space.patch)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/pcre2.h PCRE2_H)
|
||||
|
Loading…
x
Reference in New Issue
Block a user