aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/pegtl
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/pegtl
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/pegtl')
-rw-r--r--vcpkg/ports/pegtl/portfile.cmake25
-rw-r--r--vcpkg/ports/pegtl/vcpkg.json17
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/pegtl/portfile.cmake b/vcpkg/ports/pegtl/portfile.cmake
new file mode 100644
index 0000000..82d6c3f
--- /dev/null
+++ b/vcpkg/ports/pegtl/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO taocpp/pegtl
+ REF "${VERSION}"
+ SHA512 aecf9396edbdd65549603484d1841cd676b197d164ee2979ee5acaf657da4fa9ebc1a59fc8550cfa440ce27794cdc59cdf86a6521e4bda084c0600cb2c92f5cf
+ HEAD_REF 3.x
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DPEGTL_BUILD_TESTS=OFF
+ -DPEGTL_BUILD_EXAMPLES=OFF
+ -DPEGTL_INSTALL_DOC_DIR=share/pegtl
+ -DPEGTL_INSTALL_CMAKE_DIR=share/pegtl/cmake
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH share/pegtl/cmake)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+# Handle copyright
+file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
diff --git a/vcpkg/ports/pegtl/vcpkg.json b/vcpkg/ports/pegtl/vcpkg.json
new file mode 100644
index 0000000..a22cbe0
--- /dev/null
+++ b/vcpkg/ports/pegtl/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "pegtl",
+ "version-semver": "3.2.8",
+ "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).",
+ "homepage": "https://github.com/taocpp/PEGTL",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}