diff --git a/ports/rapidjson/portfile.cmake b/ports/rapidjson/portfile.cmake index 7c7c4e16dd..698fe0d545 100644 --- a/ports/rapidjson/portfile.cmake +++ b/ports/rapidjson/portfile.cmake @@ -34,10 +34,11 @@ if(VCPKG_TARGET_IS_WINDOWS) endif() file(READ "${CURRENT_PACKAGES_DIR}/share/${PORT}/RapidJSONConfig.cmake" _contents) +string(REPLACE "VERSION 3.0" "VERSION 3.5" _contents "${_contents}") string(REPLACE "\${RapidJSON_SOURCE_DIR}" "\${RapidJSON_CMAKE_DIR}/../.." _contents "${_contents}") string(REPLACE "set( RapidJSON_SOURCE_DIR \"${SOURCE_PATH}\")" "" _contents "${_contents}") string(REPLACE "set( RapidJSON_DIR \"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel\")" "" _contents "${_contents}") string(REPLACE "\${RapidJSON_CMAKE_DIR}/../../../include" "\${RapidJSON_CMAKE_DIR}/../../include" _contents "${_contents}") file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/RapidJSONConfig.cmake" "${_contents}\nset(RAPIDJSON_INCLUDE_DIRS \"\${RapidJSON_INCLUDE_DIRS}\")\n") -file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt") diff --git a/ports/rapidjson/vcpkg.json b/ports/rapidjson/vcpkg.json index ec17e082f5..5d1579f29c 100644 --- a/ports/rapidjson/vcpkg.json +++ b/ports/rapidjson/vcpkg.json @@ -1,6 +1,7 @@ { "name": "rapidjson", "version-date": "2023-07-17", + "port-version": 1, "description": "A fast JSON parser/generator for C++ with both SAX/DOM style API ", "homepage": "http://rapidjson.org/", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index 33030e74fe..52f6ccff90 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7410,7 +7410,7 @@ }, "rapidjson": { "baseline": "2023-07-17", - "port-version": 0 + "port-version": 1 }, "rapidxml": { "baseline": "1.13", diff --git a/versions/r-/rapidjson.json b/versions/r-/rapidjson.json index a335aac74c..c0a5a6df2a 100644 --- a/versions/r-/rapidjson.json +++ b/versions/r-/rapidjson.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "a3dfe7dca3a1a27564b1fc5a9aea657cd9dae01c", + "version-date": "2023-07-17", + "port-version": 1 + }, { "git-tree": "9da8fa409b1afef5674fe412237db0504cf6156e", "version-date": "2023-07-17",