Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kf5globalaccel] new port #19757

Merged
merged 13 commits into from
Sep 4, 2021
31 changes: 31 additions & 0 deletions ports/kf5globalaccel/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kglobalaccel
REF v5.84.0
SHA512 2b18c708175572dd9787fde799f6dc01ab2e0006dfb75ef95d357ae91cf4dda6c719c58e4b08fd10038ad5b6e404adeb359f63371ec7ee0887e349e8ce469c51
HEAD_REF master
)

vcpkg_cmake_configure(
DISABLE_PARALLEL_CONFIGURE
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5GlobalAccel CONFIG_PATH lib/cmake/KF5GlobalAccel)
vcpkg_copy_pdbs()

vcpkg_copy_tools(
TOOL_NAMES kglobalaccel5
AUTO_CLEAN
)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
28 changes: 28 additions & 0 deletions ports/kf5globalaccel/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "kf5globalaccel",
"version-semver": "5.84.0",
"description": "lobal desktop keyboard shortcuts",
"homepage": "https://api.kde.org/frameworks/kglobalaccel/html/index.html",
"dependencies": [
"ecm",
"kf5config",
"kf5coreaddons",
"kf5crash",
"kf5dbusaddons",
"kf5windowsystem",
"qt5-base",
"qt5-tools",
{
"name": "qt5-x11extras",
"platform": "linux"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2916,6 +2916,10 @@
"baseline": "5.84.0",
"port-version": 1
},
"kf5globalaccel": {
"baseline": "5.84.0",
"port-version": 0
},
"kf5guiaddons": {
"baseline": "5.84.0",
"port-version": 2
Expand Down
9 changes: 9 additions & 0 deletions versions/k-/kf5globalaccel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "de0672be2e76751be304b4856466b9df6deaa29f",
"version-semver": "5.84.0",
"port-version": 0
}
]
}