diff options
| author | Neil MacIntosh <neilmac@microsoft.com> | 2016-09-20 15:21:14 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-09-20 15:21:14 -0700 |
| commit | 744144381187bfa5c4aaf83878f0147c3ce99a8e (patch) | |
| tree | 5151021f48dc649a3cc472d81fc0cebc1ae29f2b | |
| parent | 7fd253e277342c7c8b1dddefd318305ce8477184 (diff) | |
| download | vcpkg-744144381187bfa5c4aaf83878f0147c3ce99a8e.tar.gz vcpkg-744144381187bfa5c4aaf83878f0147c3ce99a8e.zip | |
[gsl] Initial addition
| -rw-r--r-- | ports/gsl/CONTROL | 3 | ||||
| -rw-r--r-- | ports/gsl/portfile.cmake | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/gsl/CONTROL b/ports/gsl/CONTROL new file mode 100644 index 000000000..35e1772f8 --- /dev/null +++ b/ports/gsl/CONTROL @@ -0,0 +1,3 @@ +Source: gsl +Version: 0-fd5ad87bf +Description: Guideline Support Library
\ No newline at end of file diff --git a/ports/gsl/portfile.cmake b/ports/gsl/portfile.cmake new file mode 100644 index 000000000..5cf05c985 --- /dev/null +++ b/ports/gsl/portfile.cmake @@ -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) |
