[grantlee] Add Grantlee (#28809)

* Add Grantlee port

* Replaced deprecated functions

* Add only one version of Grantlee

* version-semver -> version

* Added quotes
This commit is contained in:
JoergAtGithub 2023-01-13 07:42:47 +01:00 committed by GitHub
parent 0a77b03b49
commit 407d75560d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,24 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO steveire/grantlee
REF v5.3.1
SHA512 dc7192fe0553954fffc3e2c584e4fdd80fc1f22d25846cacc5f2dcd1db2673ca62464c8492a4ed3bfc9dfc3e62ef13322809dd29bd56fa4a3a153a8d373ddde5
HEAD_REF master
)
vcpkg_cmake_configure (
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS -DBUILD_TESTS=off
)
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" [[set( PLUGIN_INSTALL_DIR ${LIB_INSTALL_DIR}/grantlee/${Grantlee5_MAJOR_MINOR_VERSION_STRING} )]] [[set( PLUGIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)]])
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Grantlee5)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

19
ports/grantlee/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "grantlee",
"version": "5.3.1",
"description": "Libraries for text templating with Qt",
"homepage": "https://github.com/steveire/grantlee",
"license": "LGPL-2.1-or-later",
"supports": "!staticcrt",
"dependencies": [
"qt5-declarative",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2788,6 +2788,10 @@
"baseline": "2020-05-20",
"port-version": 2
},
"grantlee": {
"baseline": "5.3.1",
"port-version": 0
},
"graphene": {
"baseline": "1.10.8",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "36162cae49c2b9664a73f0e2a1f74544e4447a7b",
"version": "5.3.1",
"port-version": 0
}
]
}