[gsl] Initial addition

This commit is contained in:
Neil MacIntosh 2016-09-20 15:21:14 -07:00 committed by Robert Schumacher
parent 7fd253e277
commit 7441443811
2 changed files with 16 additions and 0 deletions

3
ports/gsl/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: gsl
Version: 0-fd5ad87bf
Description: Guideline Support Library

13
ports/gsl/portfile.cmake Normal file
View File

@ -0,0 +1,13 @@
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
URL "https://github.com/Microsoft/GSL/archive/fd5ad87bf25cb5e87104ee58106dee9bc809cd93.zip"
FILENAME "gsl-fd5ad87bf.zip"
MD5 30935befb50eb3742131ad1056d2d498
)
vcpkg_extract_source_archive(${ARCHIVE})
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/gsl-fd5ad87bf25cb5e87104ee58106dee9bc809cd93/gsl DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*")
# Handle copyright
file(COPY ${CURRENT_BUILDTREES_DIR}/src/gsl-fd5ad87bf25cb5e87104ee58106dee9bc809cd93/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/gsl)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/gsl/LICENSE ${CURRENT_PACKAGES_DIR}/share/gsl/copyright)