mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 20:45:09 +03:00
48 lines
1 KiB
YAML
48 lines
1 KiB
YAML
distributable:
|
|
url: http://ftp.gnu.org/gnu/automake/automake-{{ version }}.tar.xz
|
|
strip-components: 1
|
|
|
|
#FIXME: need to parse versions from someplace
|
|
versions:
|
|
- 1.16.5
|
|
|
|
provides:
|
|
- bin/aclocal
|
|
- bin/automake
|
|
|
|
dependencies:
|
|
gnu.org/autoconf: ^2.65.0
|
|
perl.org: '*'
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
git-scm.org: 2
|
|
script: |-
|
|
./configure \
|
|
--build={{ hw.target }} \
|
|
--prefix="{{ prefix }}"
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
cd "{{prefix}}"/bin
|
|
|
|
# fix hardcoded paths
|
|
perl -pi -e "s|'{{prefix}}/|\\\$prefix.'/|" * ../share/automake-{{version.marketing}}/Automake/Config.pm
|
|
git -C .. apply {{ pkg.pantry-prefix }}/relocatable.diff
|
|
|
|
fix-shebangs.ts *
|
|
|
|
# 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
|