Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions ports/kf6auth/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kauth
REF "v${VERSION}"
SHA512 d1baaff5765281d28103202ae1e1c535d32f0d791704784e577af00333498c6a28d5262bdb34abcfdb789405647fcbf0a439179446709b8a0f0735136f10b632
HEAD_REF master
)

# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")

if(VCPKG_TARGET_IS_LINUX)
message(WARNING "${PORT} currently requires the following libraries from the system package manager:\n libpolkit-qt6-1-dev\n\nThese can be installed on Ubuntu systems via apt-get install libpolkit-qt6-1-dev")
endif()

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
INVERTED_FEATURES
translations KF_SKIP_PO_PROCESSING
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF6Auth)

if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/kauth/kauth-policy-gen${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
vcpkg_copy_tools(
TOOL_NAMES kauth/kauth-policy-gen
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/kauth"
AUTO_CLEAN
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/kauth")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/kauth")
vcpkg_clean_executables_in_bin(FILE_NAMES none)
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})
38 changes: 38 additions & 0 deletions ports/kf6auth/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "kf6auth",
"version": "6.23.0",
"description": "Execute actions as privileged user",
"homepage": "https://invent.kde.org/frameworks/kauth",
"documentation": "https://api.kde.org/kauth-index.html",
"supports": "!android & !windows",
"dependencies": [
"ecm",
"kf6coreaddons",
{
"name": "qtbase",
"default-features": false
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"translations": {
"description": "Build and install translation files",
"dependencies": [
{
"name": "qttools",
"host": true,
"features": [
"linguist"
]
}
]
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4428,6 +4428,10 @@
"baseline": "6.23.0",
"port-version": 0
},
"kf6auth": {
"baseline": "6.23.0",
"port-version": 0
},
"kf6breezeicons": {
"baseline": "6.23.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/k-/kf6auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "234e08411e812aa0daf5b04802fd29979f6f3e0b",
"version": "6.23.0",
"port-version": 0
}
]
}
Loading