[ada-url] Add new port (#31485)

* [ada-url] Add new port

* [ada-url] Version

* [ada-url] Update to 2.4.2

* [ada-url] Bump version

* [ada-url] tools doesn't support UWP

* [ada-url] Overwrite version
This commit is contained in:
myd7349 2023-05-24 04:00:34 +08:00 committed by GitHub
parent e676f024aa
commit e4e5d2dc0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,36 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ada-url/ada
REF "v${VERSION}"
SHA512 689dcdc3e89f2ae51e039f6d354efea3231d3ff025c58f572596d87cebd7d5f2bf5ca8c530df8514369a14831dfdb1c65bc1d93a0ece579031eb3f0dd47548c0
HEAD_REF main
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
tools ADA_TOOLS
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DADA_BENCHMARKS=OFF
-DBUILD_TESTING=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME ada CONFIG_PATH "lib/cmake/ada")
if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES adaparse AUTO_CLEAN)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE" "${SOURCE_PATH}/LICENSE-MIT")

23
ports/ada-url/vcpkg.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "ada-url",
"version": "2.4.2",
"description": "WHATWG-compliant and fast URL parser written in modern C++",
"homepage": "https://ada-url.com/",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"tools": {
"description": "Build CLI tools (adaparse)",
"supports": "!uwp"
}
}
}

9
versions/a-/ada-url.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "184ab96a9e448d759aafb20f540502f43b5fc7f9",
"version": "2.4.2",
"port-version": 0
}
]
}

View File

@ -36,6 +36,10 @@
"baseline": "3.9.5",
"port-version": 12
},
"ada-url": {
"baseline": "2.4.2",
"port-version": 0
},
"ade": {
"baseline": "0.1.1f",
"port-version": 3