diff options
| author | Ankush Singh <11595119+thewisebro@users.noreply.github.com> | 2020-06-11 12:51:27 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-11 00:21:27 -0700 |
| commit | 31aea2572884a9faed9eea443233261c1130c74f (patch) | |
| tree | 1e3905dce262eec98e36b200e241f667cc4921b3 /ports/json-schema-validator/portfile.cmake | |
| parent | 9c0893e04db383e87617b8119659a734e6398149 (diff) | |
| download | vcpkg-31aea2572884a9faed9eea443233261c1130c74f.tar.gz vcpkg-31aea2572884a9faed9eea443233261c1130c74f.zip | |
[json-schema-validator] Add new port (#11599)
* [json-schema-validator] Add new port
* [json-schema-validator] Fix string ambiguous assignment error
* [json-schema-validator] Remove redundant part from patch's path
* [json-schema-validator] Forward find_package() for nlohmann_json
* [json-schema-validator] comment out lines from source's CMakeLists.txt
* [json-schema-validator] Improve portfile.cmake and regenerate patch
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Diffstat (limited to 'ports/json-schema-validator/portfile.cmake')
| -rw-r--r-- | ports/json-schema-validator/portfile.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ports/json-schema-validator/portfile.cmake b/ports/json-schema-validator/portfile.cmake new file mode 100644 index 000000000..941ec5372 --- /dev/null +++ b/ports/json-schema-validator/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pboettch/json-schema-validator + REF 27fc1d094503623dfe39365ba82581507524545c + SHA512 4fd05087743f43871586a53d119acd1a19d0bdec8a5620f62b6eee7a926d285842e8439127eec52eeb11069c92b8d9af28558897d48e2422ecafca39d9f23cdb + HEAD_REF master + PATCHES + fix-ambiguous-assignment.patch + cmake-find-package.patch + forward-find-package.patch +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DBUILD_TESTS=OFF + -DBUILD_EXAMPLES=OFF +) + +vcpkg_install_cmake() + +set(PKG_NAME "nlohmann_json_schema_validator") +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PKG_NAME} TARGET_PATH share/${PKG_NAME}) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) + |
