mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
[lemon-parser-generator] New port (#26977)
* [vcpkg-tool-lemon] New port * [vcpkg-tool-lemon] Rename to lemon-parser-generator * [vcpkg baseline] Add lemon-parser-generator
This commit is contained in:
parent
8709c3344a
commit
aa27f5d15a
5
ports/lemon-parser-generator/CMakeLists.txt
Normal file
5
ports/lemon-parser-generator/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
project(lemon-parser-generator C)
|
||||
add_executable(lemon lemon.c)
|
||||
install(TARGETS lemon
|
||||
RUNTIME DESTINATION tools/lemon
|
||||
)
|
23
ports/lemon-parser-generator/portfile.cmake
Normal file
23
ports/lemon-parser-generator/portfile.cmake
Normal file
@ -0,0 +1,23 @@
|
||||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
set(VCPKG_BUILD_TYPE release)
|
||||
set(SQLITE_VERSION "3.39.3")
|
||||
|
||||
vcpkg_download_distfile(SOURCE_FILE
|
||||
URLS "https://github.com/sqlite/sqlite/raw/version-${SQLITE_VERSION}/tool/lemon.c"
|
||||
FILENAME "lemon.c"
|
||||
SHA512 "e9cca77d45a3be55fc958be69a30730dcbd39ba5c85c4c6c6c9eb6988c5cae9d14607be214ce57c11c73a6ffd4005784fb4d046d78f50e348ffa7ea6392ee03a"
|
||||
)
|
||||
|
||||
get_filename_component(SOURCE_PATH "${SOURCE_FILE}" DIRECTORY)
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_download_distfile(LEMPAR
|
||||
URLS "https://github.com/sqlite/sqlite/raw/version-${SQLITE_VERSION}/tool/lempar.c"
|
||||
FILENAME "lempar.c"
|
||||
SHA512 "45ef60bbfef54f6583d6f9a854aaa72c5538e791b09ad15f4094a96905974277f964f471dcd5775e76b685b54415897a32a40c09f913f61cf91b99eb2e5ff5f0"
|
||||
)
|
||||
|
||||
file(COPY "${LEMPAR}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/lemon")
|
14
ports/lemon-parser-generator/vcpkg.json
Normal file
14
ports/lemon-parser-generator/vcpkg.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "lemon-parser-generator",
|
||||
"version": "3.39.3",
|
||||
"description": "The Lemon program is an LALR(1) parser generator. It takes a context free grammar and converts it into a subroutine that will parse a file using that grammar.",
|
||||
"homepage": "https://www.hwaci.com/sw/lemon/index.html",
|
||||
"license": "blessing",
|
||||
"supports": "native",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -3484,6 +3484,10 @@
|
||||
"baseline": "0",
|
||||
"port-version": 1
|
||||
},
|
||||
"lemon-parser-generator": {
|
||||
"baseline": "3.39.3",
|
||||
"port-version": 0
|
||||
},
|
||||
"leptonica": {
|
||||
"baseline": "1.82.0",
|
||||
"port-version": 0
|
||||
|
9
versions/l-/lemon-parser-generator.json
Normal file
9
versions/l-/lemon-parser-generator.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "efe39fd9654d045490a62729cba3e44840b7dd6f",
|
||||
"version": "3.39.3",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user