early-access version 2853
This commit is contained in:
37
externals/vcpkg/ports/rxspencer/disable-docs-and-tests.patch
vendored
Executable file
37
externals/vcpkg/ports/rxspencer/disable-docs-and-tests.patch
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 49faf30..e590001 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -6,7 +6,7 @@
|
||||
project ( rxspencer C )
|
||||
cmake_minimum_required ( VERSION 3.0 )
|
||||
option ( rxshared "build shared library instead of static" OFF )
|
||||
-enable_testing()
|
||||
+#enable_testing()
|
||||
|
||||
# Define POSIX_MISTAKE to allow unmatched right parentheses as literals, as
|
||||
# required by POSIX 1003.2.
|
||||
@@ -47,10 +47,12 @@ install ( TARGETS rxspencer
|
||||
PUBLIC_HEADER DESTINATION ${RXSPENCER_INCLUDE_DIR} )
|
||||
|
||||
# Install docs
|
||||
+if(FALSE)
|
||||
set ( RXSPENCER_DATA_FILES "COPYRIGHT;README;WHATSNEW" )
|
||||
install ( FILES ${RXSPENCER_DATA_FILES} DESTINATION ${RXSPENCER_DATA_DIR} )
|
||||
install ( FILES rxspencer.3 DESTINATION ${RXSPENCER_MAN3_DIR} )
|
||||
install ( FILES rxspencer.7 DESTINATION ${RXSPENCER_MAN7_DIR} )
|
||||
+endif()
|
||||
|
||||
# generate cmake configuration file
|
||||
include ( CMakePackageConfigHelpers )
|
||||
@@ -69,8 +71,9 @@ install ( EXPORT RXSpencerTargets DESTINATION ${CMAKE_CONFIG_DEST} )
|
||||
install ( FILES
|
||||
${CMAKE_CURRENT_BINARY_DIR}/RXSpencerConfig.cmake
|
||||
DESTINATION ${CMAKE_CONFIG_DEST} )
|
||||
-
|
||||
+if(FALSE)
|
||||
add_executable(tester ${RXSPENCER_SRCS} debug.c main.c split.c)
|
||||
add_test(NAME test1 COMMAND sh -c "./tester -f ${CMAKE_CURRENT_SOURCE_DIR}/tests")
|
||||
add_test(NAME test2 COMMAND sh -c "./tester -el -f ${CMAKE_CURRENT_SOURCE_DIR}/tests")
|
||||
add_test(NAME test3 COMMAND sh -c "./tester -er -f ${CMAKE_CURRENT_SOURCE_DIR}/tests")
|
||||
+endif()
|
||||
30
externals/vcpkg/ports/rxspencer/portfile.cmake
vendored
Executable file
30
externals/vcpkg/ports/rxspencer/portfile.cmake
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO garyhouston/rxspencer
|
||||
REF 9f835b523f1af617ca54e06863a1924c23f6e56a #v3.9.0
|
||||
SHA512 fe7721bd4b4e4f7d31fd5a7e42d34d0c9735d062d8b146ee47a25f87c809eead7133265fc37fa958c37bc4ffeaf101d143202080508d98efd160b8fd0a278598
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-docs-and-tests.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCMAKE_CONFIG_DEST=share/rxspencer
|
||||
-Drxshared=${BUILD_SHARED}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "share/rxspencer")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/regex")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
19
externals/vcpkg/ports/rxspencer/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/rxspencer/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "rxspencer",
|
||||
"version": "3.9.0",
|
||||
"port-version": 2,
|
||||
"description": "Henry Spencer's BSD regular expression library.",
|
||||
"homepage": "https://garyhouston.github.io/regex/",
|
||||
"license": "MIT AND CC0-1.0",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user