pantry/projects/github.com/westes/flex/package.yml

45 lines
893 B
YAML
Raw Normal View History

2022-08-10 21:58:22 +03:00
distributable:
url: https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
strip-components: 1
versions:
github: westes/flex
strip: /^flex /
2022-09-30 03:44:22 +03:00
dependencies:
gnu.org/gettext: ^0
gnu.org/m4: ^1
2022-09-30 03:44:22 +03:00
2022-08-10 21:58:22 +03:00
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
2023-03-06 03:16:52 +03:00
./configure $ARGS
2022-08-10 21:58:22 +03:00
make --jobs {{ hw.concurrency }} install
2022-08-31 21:05:21 +03:00
env:
2023-03-06 03:16:52 +03:00
ARGS:
- --prefix={{ prefix }}
- --with-pic
- --disable-bootstrap
- --enable-shared
2022-08-31 21:05:21 +03:00
darwin:
MACOSX_DEPLOYMENT_TARGET: 10.6 #FIXME our default (11) breaks the build
2023-03-06 03:16:52 +03:00
linux:
# Fix segmentation fault during install on Ubuntu
CPPFLAGS: -D_GNU_SOURCE
2022-08-10 21:58:22 +03:00
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
2022-08-31 21:05:21 +03:00
flex test.flex
2022-08-10 21:58:22 +03:00
cc lex.yy.c -lfl
OUT=$(echo "Hello World" | ./a.out)
test "$OUT" = "Hello
World"
2022-11-18 21:43:48 +03:00
provides:
- bin/flex
- bin/flex++