[cnl] Add new port (#5158)

This commit is contained in:
myd7349 2019-01-24 06:07:22 +08:00 committed by Codiferous
parent 38acd9fd02
commit c292cdcc45
2 changed files with 31 additions and 0 deletions

3
ports/cnl/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: cnl
Version: 2019-01-09
Description: A Compositional Numeric Library for C++

28
ports/cnl/portfile.cmake Normal file
View File

@ -0,0 +1,28 @@
# header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO johnmcfarlane/cnl
REF 9f632898a4738b9e41de90e66d4f6ddb84bda08b
SHA512 ffde0b5aa58e79b5a03eee588c0e43d17ab2ddb2ffb12508f9d1b0e05aa54bb6c653986f183ce339e73c562efd749af6bd3907d816c9f79bf48f1e84ded3ac13
HEAD_REF develop
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME ${PORT})