[pegtl] Initial port (#3832)

* [pegtl] Initial port

* [pegtl] fixup_cmake_targets
This commit is contained in:
wisk 2018-07-03 10:06:23 +02:00 committed by Robert Schumacher
parent 4d02322c07
commit 5efa290dd2
2 changed files with 28 additions and 0 deletions

3
ports/pegtl/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: pegtl
Version: 2.6.0-1
Description: The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++11 header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG).

View File

@ -0,0 +1,25 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO taocpp/pegtl
REF 2.6.0
SHA512 e70aa70961c41d2b3dc4874429b2be491eed12f229a11d83ffe98cb3ee7a2b39061f9f9ec86f3ed02a6c347a875cdc52bd82112c4deb29d46e2002110e256f9f
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DPEGTL_BUILD_TESTS=OFF
-DPEGTL_BUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/pegtl/cmake)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pegtl RENAME copyright)