gnu.org/help2man (#2947)

* gnu.org/help2man

* remove .bak

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Andrew 2023-08-17 21:44:25 +03:00 committed by GitHub
parent 37366f0713
commit 83bb5fee79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,41 @@
distributable:
url: https://ftp.gnu.org/gnu/help2man/help2man-{{version}}.tar.xz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/help2man/
match: /help2man-\d+\.\d+\.\d+\.tar\.xz/
strip:
- /^help2man-/
- /\.tar\.xz/
dependencies:
gnu.org/gettext: '*'
perl.org: '*'
runtime:
env:
PERL5LIB: "{{prefix}}/lib/perl5:{{prefix}}/libexec/lib/perl5:$PERL5LIB"
build:
dependencies:
tea.xyz/gx/cc: c99
gnu.org/make: '*'
cpanmin.us: '*'
script:
- cpanm -l {{prefix}} Locale::gettext
- ./configure $CONFIGURE_ARGS
- make install
- run: |
sed -i.bak '1s|.*|#!/usr/bin/env perl|' help2man
rm help2man.bak
working-directory: ${{prefix}}/bin
env:
PERL5LIB: "{{prefix}}/lib/perl5:{{prefix}}/libexec/lib/perl5:$PERL5LIB"
CONFIGURE_ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
provides:
- bin/help2man
test:
script:
- help2man --version | grep {{version}}
- help2man --locale=en_US.UTF-8 help2man | grep {{version}}