[parsi] new port (#39420)

This commit is contained in:
Mohsen M 2024-06-28 00:23:15 +02:00 committed by GitHub
parent 874fff8a6a
commit e3ad383ceb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 51 additions and 0 deletions

View File

@ -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")

4
ports/parsi/usage Normal file
View File

@ -0,0 +1,4 @@
parsi provides CMake targets:
find_package(parsi CONFIG REQUIRED)
target_link_libraries(main PRIVATE parsi::parsi)

17
ports/parsi/vcpkg.json Normal file
View File

@ -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
}
]
}

View File

@ -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

9
versions/p-/parsi.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a9a39be660329c96c3a59d7b87a62323d2dee934",
"version": "0.1.0",
"port-version": 0
}
]
}