diff options
| author | Dawid Wróbel <me@dawidwrobel.com> | 2021-09-14 22:31:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-14 14:31:05 -0700 |
| commit | 1a13ae06ecca29b57fc88ce6d00eab5009f443cb (patch) | |
| tree | c451a99ce9e6ecbe3a2bf0acf70e6af25ddcb161 | |
| parent | 6d617de25d54549d075c26d0a7c0212ad7408928 (diff) | |
| download | vcpkg-1a13ae06ecca29b57fc88ce6d00eab5009f443cb.tar.gz vcpkg-1a13ae06ecca29b57fc88ce6d00eab5009f443cb.zip | |
[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>
| -rw-r--r-- | ports/kf5iconthemes/fix_config_cmake.patch | 38 | ||||
| -rw-r--r-- | ports/kf5iconthemes/portfile.cmake | 49 | ||||
| -rw-r--r-- | ports/kf5iconthemes/vcpkg.json | 40 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/k-/kf5iconthemes.json | 9 |
5 files changed, 140 insertions, 0 deletions
diff --git a/ports/kf5iconthemes/fix_config_cmake.patch b/ports/kf5iconthemes/fix_config_cmake.patch new file mode 100644 index 000000000..6fa107c37 --- /dev/null +++ b/ports/kf5iconthemes/fix_config_cmake.patch @@ -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 + diff --git a/ports/kf5iconthemes/portfile.cmake b/ports/kf5iconthemes/portfile.cmake new file mode 100644 index 000000000..807c70528 --- /dev/null +++ b/ports/kf5iconthemes/portfile.cmake @@ -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")
\ No newline at end of file diff --git a/ports/kf5iconthemes/vcpkg.json b/ports/kf5iconthemes/vcpkg.json new file mode 100644 index 000000000..d3ba8975e --- /dev/null +++ b/ports/kf5iconthemes/vcpkg.json @@ -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" + } + } +} diff --git a/versions/baseline.json b/versions/baseline.json index d272013f6..e0cdfdbab 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/k-/kf5iconthemes.json b/versions/k-/kf5iconthemes.json new file mode 100644 index 000000000..427e272ea --- /dev/null +++ b/versions/k-/kf5iconthemes.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "969df4c5b4230e480fcffa7d71a312e869a3660d", + "version": "5.84.0", + "port-version": 0 + } + ] +} |
