Skip to content

Commit

Permalink
[toml11] Add new port (#9941)
Browse files Browse the repository at this point in the history
  • Loading branch information
niyue committed Feb 12, 2020
1 parent acdbfae commit 716d189
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/toml11/CONTROL
Original file line number Diff line number Diff line change
@@ -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.
13 changes: 13 additions & 0 deletions ports/toml11/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 716d189

Please sign in to comment.