[indirect-value] add new port (#32019)

* [indirect-value]: add new port

* fix deps

* fix deps

* fix deps

* fix deps

* fix deps
This commit is contained in:
Jia Yue Hua 2023-06-17 11:49:20 +08:00 committed by GitHub
parent 43773b7610
commit 537780d3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 87 additions and 0 deletions

View File

@ -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"
)

View File

@ -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/")

View File

@ -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)

View File

@ -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
}
]
}

View File

@ -3352,6 +3352,10 @@
"baseline": "2.3",
"port-version": 0
},
"indirect-value": {
"baseline": "2023-06-01",
"port-version": 0
},
"influxdb-cxx": {
"baseline": "0.7.1",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "d62fd633114abe776446de54ddae3249cb4e7617",
"version-date": "2023-06-01",
"port-version": 0
}
]
}