diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/function2 | |
Diffstat (limited to 'vcpkg/ports/function2')
| -rw-r--r-- | vcpkg/ports/function2/disable-testing.patch | 14 | ||||
| -rw-r--r-- | vcpkg/ports/function2/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/function2/vcpkg.json | 17 |
3 files changed, 54 insertions, 0 deletions
diff --git a/vcpkg/ports/function2/disable-testing.patch b/vcpkg/ports/function2/disable-testing.patch new file mode 100644 index 0000000..c17403c --- /dev/null +++ b/vcpkg/ports/function2/disable-testing.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 684abe0..32a5cf6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -75,7 +75,9 @@ if (FU2_IS_TOP_LEVEL_PROJECT) + install(EXPORT "${PROJECT_NAME}Targets" + NAMESPACE ${PROJECT_NAME}:: + DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") ++endif() + ++if(0) + # Setup CPack for bundling + set(CPACK_GENERATOR "ZIP") + set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) diff --git a/vcpkg/ports/function2/portfile.cmake b/vcpkg/ports/function2/portfile.cmake new file mode 100644 index 0000000..de2f47c --- /dev/null +++ b/vcpkg/ports/function2/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Naios/function2 + REF "${VERSION}" + SHA512 59ae559854eab40d65bfa24b41953333ce76e1e91af6232ff4f134514a044adf1d1fa4ffa0b33d49085b3f59c671c301aa1e69e4fbb3490c7099dc8ce34dac88 + HEAD_REF master + PATCHES + disable-testing.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}") + +file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/Readme.md") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/vcpkg/ports/function2/vcpkg.json b/vcpkg/ports/function2/vcpkg.json new file mode 100644 index 0000000..ca756a4 --- /dev/null +++ b/vcpkg/ports/function2/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "function2", + "version-semver": "4.2.5", + "description": "Improved drop-in replacement to std::function", + "homepage": "https://github.com/Naios/function2", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |