[meojson] Add new port (#46383)

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
This commit is contained in:
Yu SuiXian 2025-07-22 01:00:00 +08:00 committed by GitHub
parent 6e63ddbef6
commit 5d825fb550
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,24 @@
set(VCPKG_BUILD_TYPE release) # header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO MistEO/meojson
REF v4.5.0
SHA512 f3e85f6a51a8dc3a7e9c11eb5e30553ecc7cec64a50e1acbce7ca7f2aaba76ab25bc7eb6575625b4294975142a3aefe9d9d6f4e147242f73192e934fc7be849a
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_SAMPLE=OFF
-DBUILD_TESTING=OFF
-DBUILD_BENCHMARK=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/meojson)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

17
ports/meojson/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "meojson",
"version": "4.5.0",
"description": "Next-gen C++ JSON/JSON5 Serialization Engine | Zero Dependency | Header-Only | Unleash JSON Potential",
"homepage": "https://github.com/MistEO/meojson",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -6176,6 +6176,10 @@
"baseline": "2019-12-31",
"port-version": 3
},
"meojson": {
"baseline": "4.5.0",
"port-version": 0
},
"mesa": {
"baseline": "24.0.7",
"port-version": 3

9
versions/m-/meojson.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "6611806f2f613f0daa72da83d9a9c56a44ba87d8",
"version": "4.5.0",
"port-version": 0
}
]
}