diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/kf5auth | |
Diffstat (limited to 'vcpkg/ports/kf5auth')
| -rw-r--r-- | vcpkg/ports/kf5auth/0001-Config.cmake.in-declare-static-dependencies.patch | 56 | ||||
| -rw-r--r-- | vcpkg/ports/kf5auth/portfile.cmake | 35 | ||||
| -rw-r--r-- | vcpkg/ports/kf5auth/vcpkg.json | 21 |
3 files changed, 112 insertions, 0 deletions
diff --git a/vcpkg/ports/kf5auth/0001-Config.cmake.in-declare-static-dependencies.patch b/vcpkg/ports/kf5auth/0001-Config.cmake.in-declare-static-dependencies.patch new file mode 100644 index 0000000..4b17cac --- /dev/null +++ b/vcpkg/ports/kf5auth/0001-Config.cmake.in-declare-static-dependencies.patch @@ -0,0 +1,56 @@ +From cf1e5df1117958db8dfeb13796cc63359aaf3bb1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= <me@dawidwrobel.com> +Date: Fri, 16 Sep 2022 00:39:30 +0200 +Subject: [PATCH] Config.cmake.in: declare static dependencies + +--- + KF5AuthConfig.cmake.in | 17 +++++++++++++++++ + src/ConfigureChecks.cmake | 2 +- + 2 files changed, 18 insertions(+), 1 deletion(-) + +diff --git a/KF5AuthConfig.cmake.in b/KF5AuthConfig.cmake.in +index e461162..14f79aa 100644 +--- a/KF5AuthConfig.cmake.in ++++ b/KF5AuthConfig.cmake.in +@@ -9,8 +9,25 @@ set(KAUTH_HELPER_INSTALL_DIR "@KAUTH_HELPER_INSTALL_DIR@") + set(KAUTH_HELPER_INSTALL_ABSOLUTE_DIR "@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@") + + include(CMakeFindDependencyMacro) ++ + find_dependency(KF5CoreAddons "@KF_DEP_VERSION@") + ++if(NOT @BUILD_SHARED_LIBS@) ++ find_dependency(Qt@QT_MAJOR_VERSION@DBus "@REQUIRED_QT_VERSION@") ++ ++ if(NOT @KAUTH_BUILD_CODEGENERATOR_ONLY@) ++ find_dependency(Qt@QT_MAJOR_VERSION@Widgets "@REQUIRED_QT_VERSION@") ++ endif() ++ ++ if(NOT KAUTH_BACKEND_NAME AND @UNIX@ AND NOT @APPLE@) ++ find_dependency(PolkitQt@QT_MAJOR_VERSION@ "@POLKITQT_MIN_VERSION@") ++ endif() ++ ++ if(KAUTH_BACKEND_NAME AND NOT @KAUTH_BUILD_CODEGENERATOR_ONLY@ AND "${KAUTH_BACKEND_NAME}" STREQUAL "POLKITQT@QT_MAJOR_VERSION@-1") ++ find_dependency(PolkitQt@QT_MAJOR_VERSION@ "@POLKITQT_MIN_VERSION@") ++ endif() ++endif() ++ + include("${CMAKE_CURRENT_LIST_DIR}/KF5AuthTargets.cmake") + @PACKAGE_INCLUDE_QCHTARGETS@ + include("${CMAKE_CURRENT_LIST_DIR}/KF5AuthMacros.cmake") +diff --git a/src/ConfigureChecks.cmake b/src/ConfigureChecks.cmake +index 23c5d28..bb5546d 100644 +--- a/src/ConfigureChecks.cmake ++++ b/src/ConfigureChecks.cmake +@@ -9,7 +9,7 @@ string(TOUPPER "${KAUTH_BACKEND_NAME}" KAUTH_BACKEND_NAME) + + set(KAUTH_BACKEND ${KAUTH_BACKEND_NAME}) + +-set(POLKITQT_MIN_VERSION 0.112.0) ++set(POLKITQT_MIN_VERSION 0.112.0 PARENT_SCOPE) + + ## Check if the user did not specify a backend to be built. If that is the case, + ## we check what is the best backend to build on this system. +-- +2.38.0 + diff --git a/vcpkg/ports/kf5auth/portfile.cmake b/vcpkg/ports/kf5auth/portfile.cmake new file mode 100644 index 0000000..3d5242d --- /dev/null +++ b/vcpkg/ports/kf5auth/portfile.cmake @@ -0,0 +1,35 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KDE/kauth + REF v5.98.0 + SHA512 c9989057077f8da26e260e1aec7fc2cfe07db62835a51b254f92e63e0e5c1500aae95001592ccd98a06a0701cb93cf34006b306e1230f6a53c8f683b8131bc17 + HEAD_REF master + PATCHES + 0001-Config.cmake.in-declare-static-dependencies.patch +) + +# Prevent KDEClangFormat from writing to source effectively blocking parallel configure +file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF + -DKDE_INSTALL_PLUGINDIR=plugins +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Auth CONFIG_PATH lib/cmake/KF5Auth) + +vcpkg_copy_pdbs() + +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(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*") +vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES}) + diff --git a/vcpkg/ports/kf5auth/vcpkg.json b/vcpkg/ports/kf5auth/vcpkg.json new file mode 100644 index 0000000..9aa8981 --- /dev/null +++ b/vcpkg/ports/kf5auth/vcpkg.json @@ -0,0 +1,21 @@ +{ + "name": "kf5auth", + "version": "5.98.0", + "description": "Execute actions as privileged user", + "homepage": "https://api.kde.org/frameworks/kauth/html/index.html", + "supports": "!windows", + "dependencies": [ + "ecm", + "kf5coreaddons", + "qt5-base", + "qt5-tools", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |