From 657cf75d15e9bc2039ff5baf1e0cb11aa24949de Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Mon, 5 Feb 2024 20:31:14 +0100 Subject: [PATCH] [json-schema-validator] Fix usage (#36551) --- ports/json-schema-validator/portfile.cmake | 2 +- ports/json-schema-validator/usage | 4 ++-- ports/json-schema-validator/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/j-/json-schema-validator.json | 5 +++++ 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ports/json-schema-validator/portfile.cmake b/ports/json-schema-validator/portfile.cmake index f0fc9e8493..1c81405af0 100644 --- a/ports/json-schema-validator/portfile.cmake +++ b/ports/json-schema-validator/portfile.cmake @@ -21,6 +21,6 @@ vcpkg_copy_pdbs() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") -file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/ports/json-schema-validator/usage b/ports/json-schema-validator/usage index 3493d3808e..395e424cbb 100644 --- a/ports/json-schema-validator/usage +++ b/ports/json-schema-validator/usage @@ -1,4 +1,4 @@ -The package json-schema-validator provides CMake integration: +json-schema-validator provides CMake integration: find_package(nlohmann_json_schema_validator REQUIRED) - target_link_libraries(main PRIVATE nlohmann_json_schema_validator) + target_link_libraries(main PRIVATE nlohmann_json_schema_validator::validator) diff --git a/ports/json-schema-validator/vcpkg.json b/ports/json-schema-validator/vcpkg.json index 71bb28ce28..e6e984875e 100644 --- a/ports/json-schema-validator/vcpkg.json +++ b/ports/json-schema-validator/vcpkg.json @@ -1,6 +1,7 @@ { "name": "json-schema-validator", "version": "2.3.0", + "port-version": 1, "description": "C++ library for validating JSON documents based on a JSON Schema. This validator is based on the nlohmann-json library.", "homepage": "https://github.com/pboettch/json-schema-validator", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index 285e593475..6732bf0370 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3706,7 +3706,7 @@ }, "json-schema-validator": { "baseline": "2.3.0", - "port-version": 0 + "port-version": 1 }, "json-spirit": { "baseline": "4.1.0", diff --git a/versions/j-/json-schema-validator.json b/versions/j-/json-schema-validator.json index 1817d1ed39..11eda9400c 100644 --- a/versions/j-/json-schema-validator.json +++ b/versions/j-/json-schema-validator.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "31c71975b94068010a3985ac84deed50047c6820", + "version": "2.3.0", + "port-version": 1 + }, { "git-tree": "4466bee34b5544a3ecfaf5f480464b1f9d45e9b1", "version": "2.3.0",