diff --git a/ports/grantlee/portfile.cmake b/ports/grantlee/portfile.cmake new file mode 100644 index 00000000000000..f1e2061dad8a58 --- /dev/null +++ b/ports/grantlee/portfile.cmake @@ -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) diff --git a/ports/grantlee/vcpkg.json b/ports/grantlee/vcpkg.json new file mode 100644 index 00000000000000..b52f5c554dc803 --- /dev/null +++ b/ports/grantlee/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 186f4c1c02606c..c63a0eae082e2a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/g-/grantlee.json b/versions/g-/grantlee.json new file mode 100644 index 00000000000000..ff295954dd2e7f --- /dev/null +++ b/versions/g-/grantlee.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "36162cae49c2b9664a73f0e2a1f74544e4447a7b", + "version": "5.3.1", + "port-version": 0 + } + ] +}