diff --git a/ports/foonathan-lexy/portfile.cmake b/ports/foonathan-lexy/portfile.cmake new file mode 100644 index 0000000000..8b2b80b030 --- /dev/null +++ b/ports/foonathan-lexy/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION} + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO foonathan/lexy + REF "v${VERSION}" + SHA512 9818882bd83e19a0087ced3c209ae13645df675f1c5cb8f67f06d0993de9d19dadbc7684147abe9236fde1f688e0e539dc519d4198a3e3b5d247137a2675bd77 + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DLEXY_BUILD_BENCHMARKS=OFF + -DLEXY_BUILD_EXAMPLES=OFF + -DLEXY_BUILD_TESTS=OFF + -DLEXY_BUILD_DOCS=OFF + -DLEXY_BUILD_PACKAGE=OFF + -DLEXY_ENABLE_INSTALL=ON +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup( + PACKAGE_NAME lexy + CONFIG_PATH lib/cmake/lexy +) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/ports/foonathan-lexy/vcpkg.json b/ports/foonathan-lexy/vcpkg.json new file mode 100644 index 0000000000..15b23f3061 --- /dev/null +++ b/ports/foonathan-lexy/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "foonathan-lexy", + "version": "2022.12.0", + "description": "C++ parsing DSL", + "homepage": "https://github.com/foonathan/lexy", + "license": "BSL-1.0", + "supports": "x64 | arm64", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index aa40772efa..9c1aa1bcc6 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2432,6 +2432,10 @@ "baseline": "2.14.1", "port-version": 1 }, + "foonathan-lexy": { + "baseline": "2022.12.0", + "port-version": 0 + }, "foonathan-memory": { "baseline": "2019-07-21", "port-version": 2 diff --git a/versions/f-/foonathan-lexy.json b/versions/f-/foonathan-lexy.json new file mode 100644 index 0000000000..7eaa716fe2 --- /dev/null +++ b/versions/f-/foonathan-lexy.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "debd6cde2234c74696c061ffff653159f0d8ad2e", + "version": "2022.12.0", + "port-version": 0 + } + ] +}