pantry/projects/gnu.org/bc/package.yml
Andrew 136f6d065d
+gnu.org/bc (#4947)
* new file:   projects/gnu.org/bc/package.yml

* modified:   projects/gnu.org/bc/package.yml
2024-01-22 15:16:41 -05:00

38 lines
780 B
YAML

distributable:
url: https://ftp.gnu.org/gnu/bc/bc-{{version.raw}}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/bc/
match: /bc-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^bc-/
- /\.tar\.gz$/
dependencies:
github.com/westes/flex: ^2.6
build:
dependencies:
gnu.org/bison: '*'
gnu.org/ed: '*'
gnu.org/texinfo: '*'
script:
- ./configure $ARGS
- make --jobs {{hw.concurrency}} install
env:
ARGS:
- --disable-debug
- --disable-dependency-tracking
- --disable-silent-rules
- --prefix={{prefix}}
- --infodir={{prefix}}/share/info
- --mandir={{prefix}}/share/man
- --with-libedit
provides:
- bin/bc
test:
- bc --version | grep {{version.raw}}
- echo '150+150' | bc | grep 300