[lexbor] Add new port (#31415)

* [lexbor] Add new port

* .

* addver

* addver

* ver

* Update ports/lexbor/portfile.cmake

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* Update ports/lexbor/portfile.cmake

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* Update lexbor.json

---------

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
This commit is contained in:
Leonid Pospelov 2023-05-16 23:47:59 +06:00 committed by GitHub
parent 4a45104152
commit a618637937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lexbor/lexbor
REF v${VERSION}
SHA512 26bbca3b41a417cbc59ba8cf736e1611966fc2202de85aabf621b840565d835e7e5ffc1b0294defc16ec883f9fb94e802bd19ed704be35fa79b41566acc05cbc
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DLEXBOR_BUILD_SHARED=${BUILD_SHARED}
-DLEXBOR_BUILD_STATIC=${BUILD_STATIC}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/include/lexbor/html/tree/insertion_mode"
"${CURRENT_PACKAGES_DIR}/debug/include/lexbor/html/tree/insertion_mode"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

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

@ -0,0 +1,17 @@
{
"name": "lexbor",
"version": "2.2.0",
"description": "Lexbor is development of an open source HTML Renderer library.",
"homepage": "https://github.com/lexbor/lexbor",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -3792,6 +3792,10 @@
"baseline": "2.6",
"port-version": 3
},
"lexbor": {
"baseline": "2.2.0",
"port-version": 0
},
"libaaplus": {
"baseline": "2.36",
"port-version": 1

9
versions/l-/lexbor.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f5c7890c5fb34ec0622b01dfdff10f11e8dccdbd",
"version": "2.2.0",
"port-version": 0
}
]
}