vcpkg/ports/nyan-lang/portfile.cmake
Qingnan Duan 73827e6bfa
[nyan-lang] Add new port nyan-lang (#32250)
* Port v0.1 but it does not compile

* Install the latest version

* Rename to nyan-lang

* Format manifest

* x-add-version

* Use new functions

* Format json

* Fix version

* Update version and handle tools

* Fix version and SHA512

* Fix version

* x-add-version

* Resolve comments

* Declare supported triplets

* Format manifest

* x-add-version

* Add back CMP0074

* x-add-version

* Add patch for UWP

* x-add-version

* Skip UWP builds

* x-add-version

* Apply review comments

* x-add-version
2023-09-01 11:31:34 -07:00

32 lines
823 B
CMake

vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
set(VERSION 0.3)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SFTtech/nyan
REF "v${VERSION}"
SHA512 53411795142aa2dfd197d4e550a9de4f2e68519426a228d7e9fe162e8f113886ae5febbceef8daa643c60a9089ede4b5c8dda9c136617357b58279cc732efba6
HEAD_REF master
)
vcpkg_find_acquire_program(FLEX)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DFLEX_EXECUTABLE=${FLEX}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
vcpkg_copy_tools(TOOL_NAMES nyancat AUTO_CLEAN)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(
FILE_LIST
"${SOURCE_PATH}/copying.md"
"${SOURCE_PATH}/legal/LGPLv3"
"${SOURCE_PATH}/legal/GPLv3"
)