aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorDawid Wróbel <me@dawidwrobel.com>2021-09-04 02:17:46 +0200
committerGitHub <noreply@github.com>2021-09-03 17:17:46 -0700
commit14f6b67e427f7291dd89f2a73d46d779e744ea5b (patch)
tree15c55ec49383e512b6234395da34c3ee2e05de9e /ports
parent6d0c72f1d6a05e60706ef5d96a7e00196b7f4353 (diff)
downloadvcpkg-14f6b67e427f7291dd89f2a73d46d779e744ea5b.tar.gz
vcpkg-14f6b67e427f7291dd89f2a73d46d779e744ea5b.zip
[kf5globalaccel] new port (#19757)
* Add kf5globalaccel port * Revert "Add kf5globalaccel port" This reverts commit f1ac3db8e2019f474a09d6964aea8e21bc9da166. * Add kf5globalaccel port * Fixed kf5globalaccel for windows * [kf5globalaccel] update to 5.75.0 * [kf5globalaccel] update to 5.84.0 * [kf5globalaccel] use vcpkg_copy_tools * [kf5globalaccel] only remove what's needed * [kf5globalaccel] wrap paths in quotes * [kf5globalaccel] use semVer * [kf5globalaccel] update versions * [kf5globalaccel] add PACKAGE_NAME to vcpkg_cmake_config_fixup * [kf5globalaccel] update versions Co-authored-by: Kuntal Majumder <hellozee@disroot.org>
Diffstat (limited to 'ports')
-rw-r--r--ports/kf5globalaccel/portfile.cmake31
-rw-r--r--ports/kf5globalaccel/vcpkg.json28
2 files changed, 59 insertions, 0 deletions
diff --git a/ports/kf5globalaccel/portfile.cmake b/ports/kf5globalaccel/portfile.cmake
new file mode 100644
index 000000000..dbdbbdf8f
--- /dev/null
+++ b/ports/kf5globalaccel/portfile.cmake
@@ -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") \ No newline at end of file
diff --git a/ports/kf5globalaccel/vcpkg.json b/ports/kf5globalaccel/vcpkg.json
new file mode 100644
index 000000000..c6afe6043
--- /dev/null
+++ b/ports/kf5globalaccel/vcpkg.json
@@ -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
+ }
+ ]
+}