1
0
Fork 0
frozenports/devel/bison/SCHEMATIC

33 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-01-22 10:46:08 +00:00
#!/bin/sh
name="bison"
short_desc="yacc-compatible parser generator"
desc="Bison is a general-purpose parser generator that converts an annotated
context-free grammar into a deterministic LR or generalized LR (GLR) parser
employing LALR(1) parser tables. As an experimental feature, Bison can also
generate IELR(1) or canonical LR(1) parser tables. Once you are proficient with
Bison, you can use it to develop a wide range of language parsers, from those
used in simple desk calculators to complex programming languages.
Bison is upward compatible with Yacc: all properly-written Yacc grammars ought
to work with Bison with no change. Anyone familiar with Yacc should be able to
use Bison with little trouble. You need to be fluent in C or C++ programming in
order to use Bison. Java is also supported as an experimental feature."
category="devel"
version="3.8.2"
maintainer="ffqq@danwin1210.de"
www="https://www.gnu.org/software/bison/"
master_site="ftp://ftp.gnu.org/gnu/bison/"
source_name="$name-$version.tar.gz"
license_logic="single" # accepted values: single, and, or
licenses=("GPLv3+")
build_dependencies=("devel/gmake" "lang/gcc")
run_dependencies=("system/glibc")
build_process() {
cd $name-$version
./configure --prefix=/usr
make -j$(nproc)
make DESTDIR="$TAMANDUA_STAGE_DIR" install
rm -r $TAMANDUA_STAGE_DIR/usr/share/info
}