mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
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:
parent
1e022c4c2d
commit
9078bab1a6
2 changed files with 57 additions and 0 deletions
56
projects/eyrie.org/eagle/podlators/package.yml
Normal file
56
projects/eyrie.org/eagle/podlators/package.yml
Normal 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}}'
|
1
projects/eyrie.org/eagle/podlators/test.pod
Normal file
1
projects/eyrie.org/eagle/podlators/test.pod
Normal file
|
@ -0,0 +1 @@
|
||||||
|
=head2 Test heading
|
Loading…
Reference in a new issue