pantry/projects/strace.io/package.yml
2023-04-19 02:33:49 -04:00

38 lines
837 B
YAML

distributable:
url: https://github.com/strace/strace/releases/download/v{{version.raw}}/strace-{{version.raw}}.tar.xz
strip-components: 1
versions:
github: strace/strace/releases/tags
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
if test "{{hw.platform}}" = "darwin"; then
mkdir -p "{{prefix}}"
touch "{{prefix}}/linux-only.h"
exit 0
fi
./configure $ARGS
make --jobs {{hw.concurrency}} install
env:
ARGS:
- --disable-dependency-tracking
- --disable-silent-rules
- --enable-mpers=no # FIX: configure: error: Cannot enable m32 personality support
- --prefix="{{prefix}}"
- --disable-gcc-Werror
provides:
darwin: []
linux:
- bin/strace
test: |
if test "{{hw.platform}}" = "linux"; then
strace true 2>&1
fi