pantry/projects/gnu.org/texinfo/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

50 lines
988 B
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:
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