aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwisk <wisk@users.noreply.github.com>2018-07-03 10:06:23 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-07-03 01:06:23 -0700
commit5efa290dd25e06b558629710f87ba30060104236 (patch)
tree9a670f982db71b34531acb04c5d3acd602d2a13f
parent4d02322c07bf10fab7b61258936fe1500f0fb5b1 (diff)
downloadvcpkg-5efa290dd25e06b558629710f87ba30060104236.tar.gz
vcpkg-5efa290dd25e06b558629710f87ba30060104236.zip
[pegtl] Initial port (#3832)
* [pegtl] Initial port * [pegtl] fixup_cmake_targets
-rw-r--r--ports/pegtl/CONTROL3
-rw-r--r--ports/pegtl/portfile.cmake25
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/pegtl/CONTROL b/ports/pegtl/CONTROL
new file mode 100644
index 000000000..c1e5a9bdd
--- /dev/null
+++ b/ports/pegtl/CONTROL
@@ -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). \ No newline at end of file
diff --git a/ports/pegtl/portfile.cmake b/ports/pegtl/portfile.cmake
new file mode 100644
index 000000000..48e253b76
--- /dev/null
+++ b/ports/pegtl/portfile.cmake
@@ -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)