diff options
Diffstat (limited to 'vcpkg/ports/indirect-value')
| -rw-r--r-- | vcpkg/ports/indirect-value/fix-install.patch | 25 | ||||
| -rw-r--r-- | vcpkg/ports/indirect-value/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/indirect-value/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/indirect-value/vcpkg.json | 16 |
4 files changed, 74 insertions, 0 deletions
diff --git a/vcpkg/ports/indirect-value/fix-install.patch b/vcpkg/ports/indirect-value/fix-install.patch new file mode 100644 index 0000000..9400f30 --- /dev/null +++ b/vcpkg/ports/indirect-value/fix-install.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index da1d4d8..f314754 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -162,12 +162,6 @@ if (${CPP_INDIRECT_IS_NOT_SUBPROJECT}) + ${CMAKE_INSTALL_INCLUDEDIR} + ) + +- install( +- FILES +- "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt" +- DESTINATION +- "${CMAKE_INSTALL_DATAROOTDIR}/licenses/indirect_value" +- ) + + install( + TARGETS indirect_value +@@ -179,6 +173,7 @@ if (${CPP_INDIRECT_IS_NOT_SUBPROJECT}) + + install( + EXPORT indirect_value-export-set ++ FILE indirect_value-target.cmake + NAMESPACE indirect_value:: + DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/indirect_value" + ) diff --git a/vcpkg/ports/indirect-value/portfile.cmake b/vcpkg/ports/indirect-value/portfile.cmake new file mode 100644 index 0000000..b7aad2f --- /dev/null +++ b/vcpkg/ports/indirect-value/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jbcoe/indirect_value + REF 4152dcc5d2e35d03f3e71089508b47a8f630b8e7 + SHA512 fea37378041f9c770b76e6c68777d0fd5c27e28e7f83b0a7a021eb06aa279c959ab6d5f4d748e1f0fedd90c04965073850a855395b72574143fa1053704211ea + HEAD_REF main + PATCHES + fix-install.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DENABLE_CODE_COVERAGE=OFF + -DENABLE_INCLUDE_NATVIS=OFF + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME indirect_value CONFIG_PATH lib/cmake/indirect_value) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" ) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/indirect-value/") diff --git a/vcpkg/ports/indirect-value/usage b/vcpkg/ports/indirect-value/usage new file mode 100644 index 0000000..7b10b90 --- /dev/null +++ b/vcpkg/ports/indirect-value/usage @@ -0,0 +1,4 @@ +The package indirect-value provides CMake targets: + + find_package(indirect_value CONFIG REQUIRED) + target_link_libraries(main PRIVATE indirect_value::indirect_value) diff --git a/vcpkg/ports/indirect-value/vcpkg.json b/vcpkg/ports/indirect-value/vcpkg.json new file mode 100644 index 0000000..79e197b --- /dev/null +++ b/vcpkg/ports/indirect-value/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "indirect-value", + "version-date": "2023-06-01", + "description": "An indirect value-type for C++", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |