[rxspencer] Avoid tests and docs (#24645)

* [rxspencer] Remove tests and docs

* version
This commit is contained in:
Thomas1664 2022-05-12 01:46:29 +02:00 committed by GitHub
parent 9e26f9208b
commit 1c498017cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 5 deletions

View 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()

View File

@ -4,18 +4,21 @@ vcpkg_from_github(
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}
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")
@ -25,5 +28,3 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_copy_pdbs()

View File

@ -1,9 +1,10 @@
{
"name": "rxspencer",
"version": "3.9.0",
"port-version": 1,
"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": [
{

View File

@ -6298,7 +6298,7 @@
},
"rxspencer": {
"baseline": "3.9.0",
"port-version": 1
"port-version": 2
},
"ryml": {
"baseline": "2021-07-24",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "423d711ba8013c78f3ca4931bf2d6c8a5ecc8ba0",
"version": "3.9.0",
"port-version": 2
},
{
"git-tree": "d0db813c47fd33b7e6f5ffb95790b66aafcaa53e",
"version": "3.9.0",