Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[indirect-value] add new port #32019

Merged
merged 6 commits into from
Jun 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions ports/indirect-value/fix-install.patch
Original file line number Diff line number Diff line change
@@ -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"
)
29 changes: 29 additions & 0 deletions ports/indirect-value/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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/")
4 changes: 4 additions & 0 deletions ports/indirect-value/usage
Original file line number Diff line number Diff line change
@@ -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)
16 changes: 16 additions & 0 deletions ports/indirect-value/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions versions/i-/indirect-value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "d62fd633114abe776446de54ddae3249cb4e7617",
"version-date": "2023-06-01",
"port-version": 0
}
]
}