mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 05:53:03 +08:00
[parsi] new port (#39420)
This commit is contained in:
parent
874fff8a6a
commit
e3ad383ceb
17
ports/parsi/portfile.cmake
Normal file
17
ports/parsi/portfile.cmake
Normal 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
4
ports/parsi/usage
Normal 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
17
ports/parsi/vcpkg.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
@ -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
9
versions/p-/parsi.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "a9a39be660329c96c3a59d7b87a62323d2dee934",
|
||||
"version": "0.1.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user