[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:
Long Nguyen 2022-10-03 13:06:50 +07:00 committed by GitHub
parent 8709c3344a
commit aa27f5d15a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,5 @@
project(lemon-parser-generator C)
add_executable(lemon lemon.c)
install(TARGETS lemon
RUNTIME DESTINATION tools/lemon
)

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

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

View File

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

View File

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