eyrie.org/eagle/podlators (#2590)

* eyrie.org/eagle/podlators

* MakeMaker

* PERL5LIB

* try to install ExtUtils::MakeMaker

* sed

* Pod::Escapes

* +perl

* simpler cleanup

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Andrew 2023-08-17 01:35:53 +03:00 committed by GitHub
parent 1e022c4c2d
commit 9078bab1a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,56 @@
distributable:
url: https://archives.eyrie.org/software/perl/podlators-{{version.raw}}.tar.xz
strip-components: 1
display-name: pod2man
versions:
url: https://archives.eyrie.org/software/perl/
match: /podlators-\d+\.\d+\.tar\.xz/
strip:
- /^podlators-/
- /\.tar\.xz/
runtime:
env:
PERL5LIB: "{{prefix}}/lib/perl5:{{prefix}}/libexec/lib/perl5:$PERL5LIB"
dependencies:
perl.org: ^5
build:
dependencies:
tea.xyz/gx/cc: c99
gnu.org/make: '*'
gnu.org/wget: '*'
linux:
cpanmin.us: ^1
script:
- run: cpanm -l {{prefix}} $PKGS
if: linux
- wget https://cpan.metacpan.org/authors/id/K/KH/KHW/Pod-Simple-3.43.tar.gz
- tar -xzf Pod-Simple-3.43.tar.gz
- run: |
perl Makefile.PL INSTALL_BASE={{prefix}}/libexec
make --jobs {{ hw.concurrency }}
make --jobs {{ hw.concurrency }} install
working-drectory: Pod-Simple-3.43
- perl Makefile.PL $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
- run: |
sed -i.bak -E -e 's|/.*/bin/perl|/usr/bin/env perl|g' pod2man pod2text
rm pod2man.bak pod2text.bak
working-directory: ${{prefix}}/bin
env:
PERL5LIB: "{{prefix}}/libexec/lib/perl5:{{prefix}}/lib/perl5:$PERL5LIB"
ARGS:
- INSTALL_BASE={{prefix}}
- INSTALLSITEMAN1DIR={{prefix}}/man/man1
- INSTALLSITEMAN3DIR={{prefix}}/man/man3
linux:
PKGS:
- ExtUtils::MakeMaker
- Pod::Escapes
provides:
- bin/pod2man
- bin/pod2text
test:
script:
- pod2man test.pod | grep 'Pod::Man {{version.major}}'

View file

@ -0,0 +1 @@
=head2 Test heading