diff options
| author | Yue <niyue.com@gmail.com> | 2020-02-12 08:39:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-11 16:39:59 -0800 |
| commit | 716d189d6b24a963a75a7cb1995446ff8eaf547c (patch) | |
| tree | 7cf6c656d9c3d173ff41df5a958e5917c91e5611 | |
| parent | acdbfaec173b4c2ab78dd592b6baf35cc3305839 (diff) | |
| download | vcpkg-716d189d6b24a963a75a7cb1995446ff8eaf547c.tar.gz vcpkg-716d189d6b24a963a75a7cb1995446ff8eaf547c.zip | |
[toml11] Add new port (#9941)
| -rw-r--r-- | ports/toml11/CONTROL | 4 | ||||
| -rw-r--r-- | ports/toml11/portfile.cmake | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ports/toml11/CONTROL b/ports/toml11/CONTROL new file mode 100644 index 000000000..9ba3f67f7 --- /dev/null +++ b/ports/toml11/CONTROL @@ -0,0 +1,4 @@ +Source: toml11 +Version: 3.3.0 +Homepage: https://github.com/ToruNiina/toml11 +Description: A C++11 header-only toml parser/encoder depending only on C++ standard library. diff --git a/ports/toml11/portfile.cmake b/ports/toml11/portfile.cmake new file mode 100644 index 000000000..4f056759d --- /dev/null +++ b/ports/toml11/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ToruNiina/toml11 + REF v3.3.0 + SHA512 3de018972bd2d9da193ca3d4746f1a77a120d563dbfb0e8f72800a0b01e24fb95fe83e4bd1a93d4bc10b3a603e7e63dd9478079bd0a31692d8412cbcf4860c37 + HEAD_REF master +) + +file(INSTALL ${SOURCE_PATH}/toml.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include) +file(INSTALL ${SOURCE_PATH}/toml DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.hpp") + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
