vcpkg/ports/workflow/portfile.cmake
dengjunplusplus 3fbca9edf3
[workflow] Update version to 0.9.6 (#19280)
* update the port workflow version to 0.9.6

* remote port-version

* add version

* Revert "add version"

This reverts commit 487548aecfe767affd37727f14d483b62b377aa6.

* add version once

* update REF for windows

* Update version database
2021-08-05 03:04:35 -07:00

32 lines
1.1 KiB
CMake

if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sogou/workflow
REF v0.9.6-win
SHA512 ecbc641d9d7bae707387248060af91375cd0c80d50eee2ae1dd24f0f61eda0d3faf0ea835bf6a03a7d25b5708771c3e432b8ad135ae5d1620e705a1ef93bb84e
HEAD_REF windows
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sogou/workflow
REF v0.9.6
SHA512 a9078223b3437bd73a3988310490ad867796707ccc25483120bca1249197a12abe07d09647df16f6efc63ba52b808d2bee8e2f2a10dd3e62335409fa06089621
HEAD_REF master
)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)