aboutsummaryrefslogtreecommitdiff
path: root/ports/pegtl-2
diff options
context:
space:
mode:
authorBill Avery <wravery@users.noreply.github.com>2019-04-23 15:19:51 -0700
committerCurtis J Bezault <curtbezault@gmail.com>2019-04-23 17:19:51 -0500
commit858b2973327b634872ae61f0bfeedc0fb762dde9 (patch)
treea7f2d055c874bbcddd292af505706d61cd83af46 /ports/pegtl-2
parent10283463215417ec006543c4aa5ced65c449061b (diff)
downloadvcpkg-858b2973327b634872ae61f0bfeedc0fb762dde9.tar.gz
vcpkg-858b2973327b634872ae61f0bfeedc0fb762dde9.zip
[cppgraphqlgen] Update cppgraphqlgen and PEGTL to 3.0.0 (#6162)
Upgrade PEGTL to 3.0.0-prerelease Update cppgraphqlgen to 3.0.0 Add pegtl-2 port
Diffstat (limited to 'ports/pegtl-2')
-rw-r--r--ports/pegtl-2/CONTROL3
-rw-r--r--ports/pegtl-2/portfile.cmake31
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/pegtl-2/CONTROL b/ports/pegtl-2/CONTROL
new file mode 100644
index 000000000..fcbcd3bba
--- /dev/null
+++ b/ports/pegtl-2/CONTROL
@@ -0,0 +1,3 @@
+Source: pegtl-2
+Version: 2.8.0
+Description: The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++ header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG). This version maintains compatibility with C++11.
diff --git a/ports/pegtl-2/portfile.cmake b/ports/pegtl-2/portfile.cmake
new file mode 100644
index 000000000..79d6bb97e
--- /dev/null
+++ b/ports/pegtl-2/portfile.cmake
@@ -0,0 +1,31 @@
+include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO taocpp/pegtl
+ REF 2.8.0
+ SHA512 1652b0061cd4cbd0e687855ee2e61e97d020606c54329de8769c3a3f411002323900c11eaf0da28e107c17e269025f577f9205b7500c5bbb16502687be8ee77b
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DPEGTL_BUILD_TESTS=OFF
+ -DPEGTL_BUILD_EXAMPLES=OFF
+ -DPEGTL_INSTALL_INCLUDE_DIR=include/pegtl-2
+ -DPEGTL_INSTALL_DOC_DIR=share/pegtl-2
+ -DPEGTL_INSTALL_CMAKE_DIR=share/pegtl-2/cmake
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH share/pegtl-2/cmake)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+# Handle copyright
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/pegtl-2/LICENSE ${CURRENT_PACKAGES_DIR}/share/pegtl-2/copyright)
+
+# Handle collision with latest pegtl
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/pegtl-2/pegtl-config.cmake ${CURRENT_PACKAGES_DIR}/share/pegtl-2/pegtl-2-config.cmake)