diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/parsi | |
Diffstat (limited to 'vcpkg/ports/parsi')
| -rw-r--r-- | vcpkg/ports/parsi/portfile.cmake | 17 | ||||
| -rw-r--r-- | vcpkg/ports/parsi/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/parsi/vcpkg.json | 17 |
3 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/parsi/portfile.cmake b/vcpkg/ports/parsi/portfile.cmake new file mode 100644 index 0000000..e111e43 --- /dev/null +++ b/vcpkg/ports/parsi/portfile.cmake @@ -0,0 +1,17 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cthulhu-irl/parsi + REF "v${VERSION}" + SHA512 193927b3b2e50d358752c6b58798d4050101d634d5231bf3e5c354edaca846a4e05f8b862c8fc461116f8ddecda0b0ebac7ee936579868a816e6404cedf964ec + HEAD_REF main +) + +vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DPARSI_MAIN_PROJECT=OFF -DPARSI_INSTALL=ON) +vcpkg_cmake_install() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" +) + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/parsi/usage b/vcpkg/ports/parsi/usage new file mode 100644 index 0000000..386c516 --- /dev/null +++ b/vcpkg/ports/parsi/usage @@ -0,0 +1,4 @@ +parsi provides CMake targets: + + find_package(parsi CONFIG REQUIRED) + target_link_libraries(main PRIVATE parsi::parsi) diff --git a/vcpkg/ports/parsi/vcpkg.json b/vcpkg/ports/parsi/vcpkg.json new file mode 100644 index 0000000..6f6603d --- /dev/null +++ b/vcpkg/ports/parsi/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "parsi", + "version": "0.1.0", + "description": "A declarative parser combinator library.", + "homepage": "https://github.com/cthulhu-irl/parsi", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |