diff --git a/ports/parsi/portfile.cmake b/ports/parsi/portfile.cmake new file mode 100644 index 00000000000..e111e4392d8 --- /dev/null +++ b/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/ports/parsi/usage b/ports/parsi/usage new file mode 100644 index 00000000000..386c5163cf5 --- /dev/null +++ b/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/ports/parsi/vcpkg.json b/ports/parsi/vcpkg.json new file mode 100644 index 00000000000..6f6603db27d --- /dev/null +++ b/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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index b0d98cff05d..5e1bcb683c8 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6720,6 +6720,10 @@ "baseline": "0", "port-version": 2 }, + "parsi": { + "baseline": "0.1.0", + "port-version": 0 + }, "parson": { "baseline": "2022-11-13", "port-version": 0 diff --git a/versions/p-/parsi.json b/versions/p-/parsi.json new file mode 100644 index 00000000000..848d1de8df3 --- /dev/null +++ b/versions/p-/parsi.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "a9a39be660329c96c3a59d7b87a62323d2dee934", + "version": "0.1.0", + "port-version": 0 + } + ] +}