aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-06-12 00:23:28 +0800
committerGitHub <noreply@github.com>2021-06-11 09:23:28 -0700
commit4d6d09bbcfbb2ab5623c3525dc04a812c40a7d8d (patch)
tree2f9384577e581bd64612d7d65f2ba819b263c849 /ports
parentc379c527bd52816186a5faf92df7401ce8f861bf (diff)
downloadvcpkg-4d6d09bbcfbb2ab5623c3525dc04a812c40a7d8d.tar.gz
vcpkg-4d6d09bbcfbb2ab5623c3525dc04a812c40a7d8d.zip
[rapidjson] Remove usage (#18308)
* [rapidjson] Improve usage * update version record * Remove usage * update version record
Diffstat (limited to 'ports')
-rw-r--r--ports/rapidjson/CONTROL4
-rw-r--r--ports/rapidjson/portfile.cmake6
-rw-r--r--ports/rapidjson/usage4
-rw-r--r--ports/rapidjson/vcpkg.json7
4 files changed, 9 insertions, 12 deletions
diff --git a/ports/rapidjson/CONTROL b/ports/rapidjson/CONTROL
deleted file mode 100644
index 390b97453..000000000
--- a/ports/rapidjson/CONTROL
+++ /dev/null
@@ -1,4 +0,0 @@
-Source: rapidjson
-Version: 2020-09-14
-Description: A fast JSON parser/generator for C++ with both SAX/DOM style API <http://rapidjson.org/>
-Homepage: http://rapidjson.org/ \ No newline at end of file
diff --git a/ports/rapidjson/portfile.cmake b/ports/rapidjson/portfile.cmake
index d20f5fd79..118aa0b42 100644
--- a/ports/rapidjson/portfile.cmake
+++ b/ports/rapidjson/portfile.cmake
@@ -21,12 +21,10 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/doc")
file(READ "${CURRENT_PACKAGES_DIR}/share/rapidjson/RapidJSONConfig.cmake" _contents)
string(REPLACE "\${RapidJSON_SOURCE_DIR}" "\${RapidJSON_CMAKE_DIR}/../.." _contents "${_contents}")
file(WRITE "${CURRENT_PACKAGES_DIR}/share/rapidjson/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)
-file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
-
+file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/rapidjson/usage b/ports/rapidjson/usage
deleted file mode 100644
index b72b8e3d6..000000000
--- a/ports/rapidjson/usage
+++ /dev/null
@@ -1,4 +0,0 @@
-The package rapidjson provides CMake integration:
-
- find_package(RapidJSON CONFIG REQUIRED)
- target_include_directories(main PRIVATE ${RAPIDJSON_INCLUDE_DIRS})
diff --git a/ports/rapidjson/vcpkg.json b/ports/rapidjson/vcpkg.json
new file mode 100644
index 000000000..ef79ba871
--- /dev/null
+++ b/ports/rapidjson/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "rapidjson",
+ "version-date": "2020-09-14",
+ "port-version": 1,
+ "description": "A fast JSON parser/generator for C++ with both SAX/DOM style API <http://rapidjson.org/>",
+ "homepage": "http://rapidjson.org/"
+}