diff options
| author | myd7349 <myd7349@gmail.com> | 2019-06-11 07:28:28 +0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-06-10 16:28:28 -0700 |
| commit | 5b35f447c7945e1e41a53a5c9a72c87d0d7f2b93 (patch) | |
| tree | 9b4eba05da88afe5a4074ac4a5c38161e2984e53 | |
| parent | 8bfae5624f86378d33085e7f1a224338c7edff43 (diff) | |
| download | vcpkg-5b35f447c7945e1e41a53a5c9a72c87d0d7f2b93.tar.gz vcpkg-5b35f447c7945e1e41a53a5c9a72c87d0d7f2b93.zip | |
[hedley] Add new port (#6776)
* [hedley] Add new port
* [hedley] Generate license from source code
| -rw-r--r-- | ports/hedley/CONTROL | 3 | ||||
| -rw-r--r-- | ports/hedley/portfile.cmake | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ports/hedley/CONTROL b/ports/hedley/CONTROL new file mode 100644 index 000000000..08b5e02b1 --- /dev/null +++ b/ports/hedley/CONTROL @@ -0,0 +1,3 @@ +Source: hedley +Version: 2019-05-08-1 +Description: A C/C++ header to help move #ifdefs out of your code diff --git a/ports/hedley/portfile.cmake b/ports/hedley/portfile.cmake new file mode 100644 index 000000000..e06e9630a --- /dev/null +++ b/ports/hedley/portfile.cmake @@ -0,0 +1,19 @@ +# header-only library + +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO nemequ/hedley + REF 1b74d9bc892137b3f006d04ff905098b900116d0 + SHA512 8f3e4fc081fb33cc3a3d637eb09863e80fa94b5e46ecf6507aabe6a5b0648881a96c8cf2ef01b4146ecd3a14908ef87f3204960514af6c91d00c93bea18eda41 + HEAD_REF master +) + +file(COPY ${SOURCE_PATH}/hedley.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +file(STRINGS ${SOURCE_PATH}/hedley.h SOURCE_LINES) +# Capture more lines than required to handle future license file changes +list(SUBLIST SOURCE_LINES 0 30 SOURCE_LINES) +list(JOIN SOURCE_LINES "\n" _contents) +file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "${_contents}") |
