mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 18:45:19 +03:00
32 lines
597 B
YAML
32 lines
597 B
YAML
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:
|
|
M4: m4 # or fails on Linux
|
|
ARGS:
|
|
- --prefix={{ prefix }}
|
|
- --enable-relocatable
|
|
|
|
test:
|
|
script: |
|
|
bison test.y
|
|
c++ test.tab.c
|
|
test pass = $(echo "((()(())))()" | ./a.out)
|
|
test fail = $(echo "())" | ./a.out)
|
|
|
|
provides:
|
|
- bin/bison
|
|
- bin/yacc
|