[kf5iconthemes] new port (#16567)

* Add kf5iconthemes port

* kf5iconthemes: add missing PATCH directive

* Fix Kf5Iconthemes for windows:

* [kf5*] update to 5.75.0

* [kf5iconthemes] convert CONTROL to manifest

* [kf5iconthemes] update to current spec

* [kf5iconthemes] use semVer

* [kf5iconthemes] remove extraneous options

* [kf5iconthemes] update to 5.84

* [kf5iconthemes] use vcpkg_copy_tools()

* [kf5iconthemes] only remove what's needed

* [kf5iconthemes] wrap paths in quotes

* [kf5iconthemes] update versions

* [kf5iconthemes] DISABLE_PARALLEL_CONFIGURE

* [kf5iconthemes] update versions

* [kf5iconthemes] Add support for static builds

* [kf5iconthemes] update versions

* [kf5iconthemes] reformat vcpkg.json

* [kf5iconthemes] update versions

* [kf5iconthemes] add Qt Designer plugin feature

* [kf5iconthemes] update versions

* [kf5iconthemes] add libiconv dependency

* [kf5iconthemes] update versions

* [kf5iconthemes] fix Windows Static builds

* [kf5iconthemes] update versions

* [kf5iconthemes] add PACKAGE_NAME to vcpkg_cmake_config_fixup

* [kf5iconthemes] update versions

* [kf5iconthemes] rename patch files

* [kf5iconthemes] libiconv patches only for windows static builds

* [kf5iconthemes] update versions

* [kf5iconthemes] fix identation

* [kf5iconthemes] update versions

* [kf5iconthemes] cleanup, iconv was fixed in kf5i18n

* [kf5iconthemes] update versions

* [kf5iconthemes] use generic, non-semver versioning

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5iconthemes] update versions

Co-authored-by: Kuntal Majumder <hellozee@disroot.org>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Dawid Wróbel 2021-09-14 22:31:05 +01:00 committed by GitHub
parent 6d617de25d
commit 1a13ae06ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 140 additions and 0 deletions

View File

@ -0,0 +1,38 @@
From 2d9a393978ff6ae9c5577a3595cd761b199dc4fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= <me@dawidwrobel.com>
Date: Thu, 26 Aug 2021 12:06:54 +0200
Subject: [PATCH] Add support for static builds
---
KF5IconThemesConfig.cmake.in | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/KF5IconThemesConfig.cmake.in b/KF5IconThemesConfig.cmake.in
index 79688bb..d91f546 100644
--- a/KF5IconThemesConfig.cmake.in
+++ b/KF5IconThemesConfig.cmake.in
@@ -3,6 +3,21 @@
include(CMakeFindDependencyMacro)
find_dependency(Qt5Widgets "@REQUIRED_QT_VERSION@")
+if (NOT @BUILD_SHARED_LIBS@)
+ find_dependency(Qt5Widgets "@REQUIRED_QT_VERSION@")
+ find_dependency(Qt5Svg "@REQUIRED_QT_VERSION@")
+
+ if (NOT ANDROID)
+ find_dependency(Qt5DBus "@REQUIRED_QT_VERSION@")
+ endif()
+
+ find_dependency(KF5Archive "@KF_DEP_VERSION@")
+ find_dependency(KF5I18n "@KF_DEP_VERSION@")
+ find_dependency(KF5CoreAddons "@KF_DEP_VERSION@")
+ find_dependency(KF5ConfigWidgets "@KF_DEP_VERSION@")
+ find_dependency(KF5WidgetsAddons "@KF_DEP_VERSION@")
+ find_dependency(KF5ItemViews "@KF_DEP_VERSION@")
+endif()
include("${CMAKE_CURRENT_LIST_DIR}/KF5IconThemesTargets.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
--
GitLab

View File

@ -0,0 +1,49 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kiconthemes
REF v5.84.0
SHA512 ca5645d6e4fde4f60c6f16c911539f4056060cc22afae275459632bc7069352b068b1727eb75b898d319e6eef3df9ddc35d8e22d4c1d05a657b112378e56731e
HEAD_REF master
PATCHES
fix_config_cmake.patch
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
designerplugin BUILD_DESIGNERPLUGIN
)
vcpkg_cmake_configure(
DISABLE_PARALLEL_CONFIGURE
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
-DKDE_INSTALL_PLUGINDIR=plugins
-DKDE_INSTALL_QTPLUGINDIR=plugins
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5IconThemes CONFIG_PATH lib/cmake/KF5IconThemes)
vcpkg_copy_pdbs()
vcpkg_copy_tools(
TOOL_NAMES kiconfinder5
AUTO_CLEAN
)
if(VCPKG_TARGET_IS_OSX)
vcpkg_copy_tools(
TOOL_NAMES ksvg2icns
AUTO_CLEAN
)
endif()
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")

View File

@ -0,0 +1,40 @@
{
"name": "kf5iconthemes",
"version": "5.84.0",
"description": "Icon GUI utilities",
"homepage": "https://api.kde.org/frameworks/kiconthemes/html/index.html",
"dependencies": [
"ecm",
"gettext",
{
"name": "gettext",
"host": true,
"features": [
"tools"
]
},
"kf5archive",
"kf5configwidgets",
"kf5coreaddons",
"kf5guiaddons",
"kf5i18n",
"kf5itemviews",
"kf5widgetsaddons",
"qt5-base",
"qt5-svg",
"qt5-tools",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"designerplugin": {
"description": "Enables a Qt Designer plugin"
}
}
}

View File

@ -2968,6 +2968,10 @@
"baseline": "5.84.0",
"port-version": 2
},
"kf5iconthemes": {
"baseline": "5.84.0",
"port-version": 0
},
"kf5itemmodels": {
"baseline": "5.84.0",
"port-version": 1

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "969df4c5b4230e480fcffa7d71a312e869a3660d",
"version": "5.84.0",
"port-version": 0
}
]
}