Skip to content

Commit

Permalink
Add Grantlee port
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Jan 8, 2023
1 parent 739824a commit 0260d58
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ports/grantlee/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
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_install_cmake()
vcpkg_fixup_cmake_targets(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)
11 changes: 11 additions & 0 deletions ports/grantlee/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "grantlee",
"version-semver": "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"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2780,6 +2780,10 @@
"baseline": "2020-05-20",
"port-version": 2
},
"grantlee": {
"baseline": "5.3.1",
"port-version": 0
},
"graphene": {
"baseline": "1.10.8",
"port-version": 0
Expand Down
14 changes: 14 additions & 0 deletions versions/g-/grantlee.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"versions": [
{
"git-tree": "afdd04d37cb8d62f9c498707ebe4e5c424b0e0e0",
"version-semver": "5.3.1",
"port-version": 0
},
{
"git-tree": "574d2f131680fdf26eab3f189f158ac7fce4f97e",
"version-semver": "5.2.0",
"port-version": 0
}
]
}

0 comments on commit 0260d58

Please sign in to comment.