Files
haikuports/dev-java/antlr-tool/antlr_tool-4.13.1.recipe
Joachim Mairböck e6f51abf55 antlr recipes: bump version to 4.13.1 (#9400)
note: there aren't any actual changes for antlr_cpp besides the version number, it is just bumped for consistency.
2023-09-09 10:46:36 +00:00

37 lines
1.0 KiB
Bash

SUMMARY="The ANTLR Parser Generator"
DESCRIPTION="ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for \
reading, processing, executing, or translating structured text or binary files. It's widely used \
to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can \
build and walk parse trees."
HOMEPAGE="https://www.antlr.org/"
COPYRIGHT="2012-2022 The ANTLR Project"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://www.antlr.org/download/antlr-$portVersion-complete.jar#noarchive"
CHECKSUM_SHA256="bc13a9c57a8dd7d5196888211e5ede657cb64a3ce968608697e4f668251a8487"
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"
PROVIDES="
antlr_tool = $portVersion
cmd:antlr4 = $portVersion
"
REQUIRES="
haiku
cmd:java >= 11
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
"
INSTALL()
{
mkdir -p $binDir $libDir
cp antlr-$portVersion-complete.jar $libDir
echo java -jar $libDir/antlr-$portVersion-complete.jar \"\$@\" > $binDir/antlr4
chmod +x $binDir/antlr4
}