diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-07-18 12:08:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-18 12:08:43 -0700 |
| commit | 01d139b99f9d27e066927794e1e4981c51b0fc56 (patch) | |
| tree | ebbdee13fe9db7d818a3d183f4a0170b1851335a | |
| parent | 02f4d09ea6b21dc5d10237094b2841e8528f6156 (diff) | |
| parent | 15e2cc11f5df4189cf77e9b23af0a7f059921538 (diff) | |
| download | vcpkg-01d139b99f9d27e066927794e1e4981c51b0fc56.tar.gz vcpkg-01d139b99f9d27e066927794e1e4981c51b0fc56.zip | |
Merge pull request #1480 from martinmoene/gsl-lite-0.24.0
Add port for gsl-lite 0.24.0
| -rw-r--r-- | ports/gsl-lite/CONTROL | 3 | ||||
| -rw-r--r-- | ports/gsl-lite/portfile.cmake | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/gsl-lite/CONTROL b/ports/gsl-lite/CONTROL new file mode 100644 index 000000000..0facec7fd --- /dev/null +++ b/ports/gsl-lite/CONTROL @@ -0,0 +1,3 @@ +Source: gsl-lite +Version: 0.24.0 +Description: A single-file header-only version of ISO C++ Guideline Support Library (GSL) for C++98, C++11 and later diff --git a/ports/gsl-lite/portfile.cmake b/ports/gsl-lite/portfile.cmake new file mode 100644 index 000000000..07fb2ab81 --- /dev/null +++ b/ports/gsl-lite/portfile.cmake @@ -0,0 +1,18 @@ +include(vcpkg_common_functions) + +set(GSL_LITE_VERSION v0.24.0) + +vcpkg_download_distfile(HEADER + URLS "https://github.com/martinmoene/gsl-lite/releases/download/${GSL_LITE_VERSION}/gsl-lite.h" + FILENAME "gsl-lite-${GSL_LITE_VERSION}.h" + SHA512 fbe93aadf25feb488c2190e867933f198adb92a5a87e6bee8a8e1d6f0185829953348cb67eb52f70945d5a3cdb1f4d7403cfd950ab808b215ce445c37e9d9daf +) + +vcpkg_download_distfile(LICENSE + URLS https://github.com/martinmoene/gsl-lite/raw/${GSL_LITE_VERSION}/LICENSE.txt" + FILENAME "gsl-lite-LICENSE-${GSL_LITE_VERSION}.txt" + SHA512 8c43bac30bd7dd1911e29739be50735e013a15b6d1553d4ac64c76b8597d9a896491d9d5be277f22296439570a34813ed89deec6c80483dd2a9754a141febe15 +) + +file(INSTALL ${HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME gsl-lite.h) +file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/gsl-lite RENAME copyright) |
