[qlementine] Add port (#43914)

Co-authored-by: Jon <v-zhli17@microsoft.com>
This commit is contained in:
Nick Logozzo 2025-02-25 08:54:39 -05:00 committed by GitHub
parent b4a1269f8a
commit 639fa27446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,28 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO oclero/qlementine
REF "v${VERSION}"
SHA512 e6c2fb7855cf6152330d225b971fa8f2c2fd7b0c73ce10e1c55129606762632ae4ff4bddf23cb034dc19bd00d82f186663190d16923058eb4c2423d7c34e38a3
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DQLEMENTINE_SANDBOX=OFF
-DQLEMENTINE_SHOWCASE=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/qlementine)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/qlementine/usage Normal file
View File

@ -0,0 +1,4 @@
qlementine provides CMake targets:
find_package(qlementine CONFIG REQUIRED)
target_link_libraries(main PRIVATE qlementine::qlementine)

View File

@ -0,0 +1,26 @@
{
"name": "qlementine",
"version": "1.0.2",
"description": "Modern QStyle for desktop Qt6 applications.",
"homepage": "https://github.com/oclero/qlementine/",
"documentation": "https://oclero.github.io/qlementine/",
"license": "MIT",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"widgets"
]
},
"qtsvg",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -7356,6 +7356,10 @@
"baseline": "8.0.2",
"port-version": 5
},
"qlementine": {
"baseline": "1.0.2",
"port-version": 0
},
"qmex": {
"baseline": "2024-10-31",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "40d552453fdeecb9cfbf222ba578c91392496fc8",
"version": "1.0.2",
"port-version": 0
}
]
}