2022-08-05 23:22:53 +03:00
|
|
|
distributable:
|
|
|
|
url: https://ftp.gnu.org/gnu/bison/bison-{{ version }}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: akimd/bison/tags
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
# bison cannot operate without the m4 executable
|
|
|
|
gnu.org/m4: 1
|
|
|
|
|
|
|
|
build:
|
|
|
|
script: |
|
|
|
|
./configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
env:
|
2023-10-02 03:41:57 +03:00
|
|
|
M4: m4 # or fails on Linux
|
2022-08-05 23:22:53 +03:00
|
|
|
ARGS:
|
|
|
|
- --prefix={{ prefix }}
|
|
|
|
- --enable-relocatable
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
2022-08-31 21:05:21 +03:00
|
|
|
bison test.y
|
2022-08-05 23:22:53 +03:00
|
|
|
c++ test.tab.c
|
|
|
|
test pass = $(echo "((()(())))()" | ./a.out)
|
|
|
|
test fail = $(echo "())" | ./a.out)
|
|
|
|
|
2022-11-18 21:43:48 +03:00
|
|
|
provides:
|
|
|
|
- bin/bison
|
|
|
|
- bin/yacc
|