vcpkg/ports/kf5wallet/portfile.cmake
Dawid Wróbel ae89e7d99f
[kf5wallet] new port (#19450)
* Add kf5kwallet port

* Fixed kf5wallet for windows

* [kf5wallet] update to 5.84.0

* [kf5wallet] port CONTROL to JSON

* [kf5wallet] use msgmerge provided by gettext port

* [kf5wallet] only remove what's required

* [kf5wallet] wrap paths in quotes

* [kf5wallet] update deprecated functions

* [kf5wallet] DISABLE_PARALLEL_CONFIGURE to fix clang-format error

* [kf5wallet] update versions

* [kf5wallet] remove static /bin folders

* [kf5wallet] update versions

* [kf5wallet] use semVer

* [kf5wallet] update versions

* [kf5wallet] add PACKAGE_NAME to vcpkg_cmake_config_fixup

* [kf5wallet] update versions

Co-authored-by: Kuntal Majumder <hellozee@disroot.org>
2021-08-30 10:23:23 -07:00

29 lines
962 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kwallet
REF v5.84.0
SHA512 5bea4c7f46d127de1bc530e03e1033e9e133197cc36bb6963c9154783ef7bb9920bec62443b5bba9b55d3adcc1f7284ce4376422915d93d6df387587fd7ab8e0
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DBUILD_TESTING=OFF
-DBUILD_KWALLETD=OFF
-DBUILD_KWALLET_QUERY=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Wallet CONFIG_PATH lib/cmake/KF5Wallet)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")