diff options
Diffstat (limited to 'vcpkg/ports/stlab-copy-on-write')
| -rw-r--r-- | vcpkg/ports/stlab-copy-on-write/disable-tests.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/stlab-copy-on-write/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/stlab-copy-on-write/vcpkg.json | 17 |
3 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/stlab-copy-on-write/disable-tests.patch b/vcpkg/ports/stlab-copy-on-write/disable-tests.patch new file mode 100644 index 0000000..e5c777c --- /dev/null +++ b/vcpkg/ports/stlab-copy-on-write/disable-tests.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 41ee6d1..b42fe4e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -71,7 +71,7 @@ install(FILES + ) + + # Only build tests and examples if this is the top-level project +-if(PROJECT_IS_TOP_LEVEL) ++if(0) + # Add doctest dependency for testing + CPMAddPackage( + NAME doctest diff --git a/vcpkg/ports/stlab-copy-on-write/portfile.cmake b/vcpkg/ports/stlab-copy-on-write/portfile.cmake new file mode 100644 index 0000000..24d576a --- /dev/null +++ b/vcpkg/ports/stlab-copy-on-write/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO stlab/copy-on-write + REF "v${VERSION}" + SHA512 14fd31c27a45111050b5b4e7164ef1467cecc0c1b258172d954700a0e0b6ce69cb28b700d5ca145c37974e4fdffe1563e13ea627b6cce11599381d7aa6cd0f54 + HEAD_REF main + PATCHES + disable-tests.patch +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -Dstlab-copy-on-write_IS_TOP_LEVEL=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/stlab-copy-on-write) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/stlab-copy-on-write/vcpkg.json b/vcpkg/ports/stlab-copy-on-write/vcpkg.json new file mode 100644 index 0000000..db31deb --- /dev/null +++ b/vcpkg/ports/stlab-copy-on-write/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "stlab-copy-on-write", + "version": "1.0.3", + "description": "stlab copy-on-write library", + "homepage": "https://github.com/stlab/copy-on-write", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |