pantry/projects/gnu.org/texinfo/package.yml
2023-07-24 14:38:30 -04:00

53 lines
1 KiB
YAML

distributable:
url: https://ftp.gnu.org/gnu/texinfo/texinfo-{{ version.raw }}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/texinfo/
match: /texinfo-(\d+\.\d+(\.\d+)?)\.tar\.gz/
strip:
- /texinfo-/
- /.tar.gz/
dependencies:
perl.org: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/gettext: '*'
invisible-island.net/ncurses: '*'
script: |
./configure --prefix={{ prefix }}
make --jobs {{ hw.concurrency }} install
cd {{prefix}}/bin
for file in pod2texi texi2any; do
sed -i.bak "s_#! {{deps.perl.org.prefix}}/bin/perl_#!/usr/bin/env perl_" $file
rm $file.bak
done
test:
script: |
makeinfo $FIXTURE
grep -q 'Hello World!' $(basename $FIXTURE).info
fixture: |
@ifnottex
@node Top
@top Hello World!
@end ifnottex
@bye
provides:
- bin/info
- bin/install-info
- bin/makeinfo
- bin/pdftexi2dvi
- bin/pod2texi
- bin/texi2any
- bin/texi2dvi
- bin/texi2pdf
- bin/texindex