mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
gnu.org/help2man (#2947)
* gnu.org/help2man * remove .bak --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
37366f0713
commit
83bb5fee79
1 changed files with 41 additions and 0 deletions
41
projects/gnu.org/help2man/package.yml
Normal file
41
projects/gnu.org/help2man/package.yml
Normal 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}}
|
Loading…
Reference in a new issue