diff options
| author | Kuntal Majumder <12135951+hellozee@users.noreply.github.com> | 2020-08-08 04:08:18 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-07 15:38:18 -0700 |
| commit | 9e853cf17ca6fb77a8877da61419b913805c71cc (patch) | |
| tree | eb19c229e6098695e97788775fc912a1b6bf1a9e /ports/kf5completion | |
| parent | c74bc921fecbc9c9c629b348b584dd128758e148 (diff) | |
| download | vcpkg-9e853cf17ca6fb77a8877da61419b913805c71cc.tar.gz vcpkg-9e853cf17ca6fb77a8877da61419b913805c71cc.zip | |
[many ports] Adding libraries needed to build Krita (#11861)
* Add KF5Config
* Add KF5WidgetsAddons
* Add KF5Completion
* Add KF5CoreAddons
* Add KF5WindowSystem
* Add KF5GuiAddons
* Add KF5ItemModels
* Add KF5ItemViews
* Add KF5i18n
* Initial attempt to port quazip
* Fixed Quazip post installation checks
* Fixed linux builds
* Fixed x64-linux dynamic builds
* Temporary patch for KF5Completion until fixed in upstream
* Add Vc
* Add libde265
* Add libheif
* Don't build examples and gdk pixbuf for libheif
* Add KF5Crash
* Fix windows builds
* Add gettext as a dependency of kf5i18n
* Formatting changes applied
* Add homepages of all the ports
* Removed deprecated functions
* Fix quazip builds for x64-windows-static triplet
* Put support directives and fixed windows static builds
* Fix KF5Archive branch
* fixing libheif for unix systems
* Some linux specific changes
* Apply suggestions to kde frameworks
* Update quazip patch as suggested
Diffstat (limited to 'ports/kf5completion')
| -rw-r--r-- | ports/kf5completion/CONTROL | 5 | ||||
| -rw-r--r-- | ports/kf5completion/add-qdbus-to-required-libraries.patch | 13 | ||||
| -rw-r--r-- | ports/kf5completion/portfile.cmake | 33 |
3 files changed, 51 insertions, 0 deletions
diff --git a/ports/kf5completion/CONTROL b/ports/kf5completion/CONTROL new file mode 100644 index 000000000..fb1f4309a --- /dev/null +++ b/ports/kf5completion/CONTROL @@ -0,0 +1,5 @@ +Source: kf5completion
+Version: 5.64.0
+Homepage: https://api.kde.org/frameworks/kcompletion/html/index.html
+Description: Text completion helpers and widgets
+Build-Depends: ecm, qt5-tools, kf5config, kf5widgetsaddons
\ No newline at end of file diff --git a/ports/kf5completion/add-qdbus-to-required-libraries.patch b/ports/kf5completion/add-qdbus-to-required-libraries.patch new file mode 100644 index 000000000..b5c285a65 --- /dev/null +++ b/ports/kf5completion/add-qdbus-to-required-libraries.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a86a05e..688bae2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -32,7 +32,7 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX KCOMPLETION + # Dependencies + set(REQUIRED_QT_VERSION 5.11.0) + +-find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Widgets) ++find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Widgets DBus) + + find_package(KF5Config ${KF5_DEP_VERSION} REQUIRED) + find_package(KF5WidgetsAddons ${KF5_DEP_VERSION} REQUIRED) diff --git a/ports/kf5completion/portfile.cmake b/ports/kf5completion/portfile.cmake new file mode 100644 index 000000000..d9e697dcf --- /dev/null +++ b/ports/kf5completion/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KDE/kcompletion
+ REF v5.64.0
+ SHA512 1d597bc0e82d1570b1ff7b254425ab18d4d505a0b7f475a43b51d70566b91e763b86675837421c3f09073544efa77e673e9d2cfef586c12684fc9fe7b0c6a0cc
+ HEAD_REF master
+ # reported issue, just a manual workaround until the issue is fixed upstream
+ PATCHES
+ "add-qdbus-to-required-libraries.patch"
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_HTML_DOCS=OFF
+ -DBUILD_MAN_DOCS=OFF
+ -DBUILD_QTHELP_DOCS=OFF
+ -DBUILD_TESTING=OFF
+ -DBUILD_DESIGNERPLUGIN=OFF
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5Completion)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/data)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/data)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/etc)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/etc)
+file(INSTALL ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
