diff options
| author | myd7349 <myd7349@gmail.com> | 2021-04-30 05:02:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 14:02:08 -0700 |
| commit | 2f03bdc3f03f9c50f5d73e4601aaefa2402c8dce (patch) | |
| tree | 674ad46f34057ef3c9a1dbc85ec2243e25cd5027 | |
| parent | 11d559a0c9381c91702971ea456969fd23c21635 (diff) | |
| download | vcpkg-2f03bdc3f03f9c50f5d73e4601aaefa2402c8dce.tar.gz vcpkg-2f03bdc3f03f9c50f5d73e4601aaefa2402c8dce.zip | |
[yyjson] Add new port (#17201)
* [yyjson] Add new port
* [yyjson] Add version file
* [yyjson] Patch CMakeLists.txt
* [yyjson] Overwrite version
* [yyjson] Copy pdb files
* [yyjson] Overwrite version
* [yyjson] Fix UWP build
* [yyjson] Overwrite version
* [yyjson] Fix patch encoding
* [yyjson] Overwrite version
* [yyjson] Update to 2021-04-12
* [yyjson] Bump version
* [yyjson] Update versions/y-/yyjson.json
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
* [yyjson] Modernize
* [yyjson] Overwrite version
* [yyjson] Modernize
* [yyjson] Overwrite version
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
| -rw-r--r-- | ports/yyjson/portfile.cmake | 24 | ||||
| -rw-r--r-- | ports/yyjson/vcpkg.json | 17 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/y-/yyjson.json | 9 |
4 files changed, 54 insertions, 0 deletions
diff --git a/ports/yyjson/portfile.cmake b/ports/yyjson/portfile.cmake new file mode 100644 index 000000000..6a5e75e02 --- /dev/null +++ b/ports/yyjson/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ibireme/yyjson
+ REF 31313e8c15e3c221c7452fd99bf7fdf89b6d92c1
+ SHA512 05e9cf3e5db5e79188f0207f865744ef411ffef50824783e1d9f4be7ad49fc67aa7490723c44f38c5de336840bbeb948c160bdef9312b97119a6733ff3c1ae04
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DYYJSON_BUILD_TESTS=OFF
+ -DYYJSON_BUILD_MISC=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/yyjson/vcpkg.json b/ports/yyjson/vcpkg.json new file mode 100644 index 000000000..cf0a5b97a --- /dev/null +++ b/ports/yyjson/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "yyjson", + "version-date": "2021-04-12", + "description": "A high performance JSON library written in ANSI C", + "homepage": "https://github.com/ibireme/yyjson", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index da35d7de1..2fd05cd8a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6592,6 +6592,10 @@ "baseline": "1.18.0-1", "port-version": 0 }, + "yyjson": { + "baseline": "2021-04-12", + "port-version": 0 + }, "z3": { "baseline": "4.8.9", "port-version": 0 diff --git a/versions/y-/yyjson.json b/versions/y-/yyjson.json new file mode 100644 index 000000000..671f4c066 --- /dev/null +++ b/versions/y-/yyjson.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "17bac25e372c49899aae3a59d5725cc614f65165", + "version-date": "2021-04-12", + "port-version": 0 + } + ] +} |
