pantry/projects/gnu.org/automake/package.yml

49 lines
1 KiB
YAML
Raw Normal View History

distributable:
2022-11-20 02:34:53 +03:00
url: https://ftp.gnu.org/gnu/automake/automake-{{ version }}.tar.xz
strip-components: 1
2022-09-18 19:01:10 +03:00
#FIXME: need to parse versions from someplace
versions:
- 1.16.5
provides:
- bin/aclocal
- bin/automake
2022-09-18 19:01:10 +03:00
dependencies:
gnu.org/autoconf: ^2.65.0
perl.org: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
2022-09-18 19:01:10 +03:00
git-scm.org: 2
script: |-
./configure \
--build={{ hw.target }} \
--prefix="{{ prefix }}"
make --jobs {{ hw.concurrency }} install
2022-09-25 15:41:58 +03:00
cd "{{prefix}}"
2022-09-18 19:01:10 +03:00
# fix hardcoded paths
2022-09-25 15:41:58 +03:00
perl -pi -e "s|'{{prefix}}/|\\\$prefix.'/|" bin/* share/automake-{{version.marketing}}/Automake/Config.pm
git apply "$SRCROOT"/props/relocatable.diff
2022-09-18 19:01:10 +03:00
2022-09-25 15:41:58 +03:00
fix-shebangs.ts bin/*
2022-09-18 19:01:10 +03:00
# TODO to prove automake doesn't require autoconf we should
# use “depend” on the autoconf test to generate our `configure` separately
test:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
aclocal
automake --add-missing --foreign
autoconf
./configure
make
./test