Skip to content

Commit

Permalink
Add kf5auth port
Browse files Browse the repository at this point in the history
  • Loading branch information
wrobelda committed Sep 11, 2020
1 parent e10a483 commit 8703c24
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ports/kf5auth/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Source: kf5auth
Version: 5.73.0
Homepage: https://api.kde.org/frameworks/kauth/html/index.html
Description: Execute actions as privileged user
Build-Depends: ecm, qt5-base, qt5-tools, kf5coreaddons
34 changes: 34 additions & 0 deletions ports/kf5auth/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kauth
REF v5.73.0
SHA512 123818bfeebabc780fffea0b4177d42f8cdbf625b83baa67fd1d1bc44cd1b28c2f7589ed1b3951045491c680e97e581547eec91657a3d47f3b77f7a72a306e24
HEAD_REF master
)

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
)

vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(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}/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)

0 comments on commit 8703c24

Please sign in to comment.