mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+po4a.org (#4415)
* new file: projects/po4a.org/package.yml * new file: projects/po4a.org/en.md new file: projects/po4a.org/en.tex modified: projects/po4a.org/package.yml * certs? * hmmm let's download it with curl
This commit is contained in:
parent
21a7781193
commit
7344ac5a51
3 changed files with 78 additions and 0 deletions
1
projects/po4a.org/en.md
Normal file
1
projects/po4a.org/en.md
Normal file
|
@ -0,0 +1 @@
|
|||
Hello from Tea!
|
4
projects/po4a.org/en.tex
Normal file
4
projects/po4a.org/en.tex
Normal file
|
@ -0,0 +1,4 @@
|
|||
\\documentclass[a4paper]{article}
|
||||
\\begin{document}
|
||||
Hello from Tea!
|
||||
\\end{document}
|
73
projects/po4a.org/package.yml
Normal file
73
projects/po4a.org/package.yml
Normal file
|
@ -0,0 +1,73 @@
|
|||
distributable:
|
||||
url: https://github.com/mquinson/po4a/releases/download/v{{version.marketing}}/po4a-{{version.marketing}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: mquinson/po4a
|
||||
dependencies:
|
||||
gnu.org/gettext: ^0.22
|
||||
perl.org: ^5.22
|
||||
gnome.org/libxslt: ^1.1
|
||||
runtime:
|
||||
env:
|
||||
PERL5LIB: ${{prefix}}/libexec/lib/perl5:$PERL5LIB
|
||||
build:
|
||||
dependencies:
|
||||
cpanmin.us: '*'
|
||||
docbook.org/xsl: '*'
|
||||
curl.se: '*'
|
||||
script:
|
||||
- cpanm -l {{prefix}}/libexec $PKGS
|
||||
- run: |
|
||||
curl -L "https://cpan.metacpan.org/authors/id/R/RA/RAAB/SGMLSpm-1.1.tar.gz" | tar -xz --strip-components=1
|
||||
cpanm -l {{prefix}}/libexec .
|
||||
working-directory: pkgs/SGMLSpm
|
||||
- run: |
|
||||
curl -L "https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-2.38.tar.gz" | tar -xz --strip-components=1
|
||||
cpanm -l {{prefix}}/libexec .
|
||||
working-directory: pkgs/TermReadKey
|
||||
- run: |
|
||||
sed -i.bak "s|/usr/share/xml/docbook/stylesheet/docbook-xsl|{{deps.docbook.org/xsl.prefix}}/libexec/docbook-xsl-ns|" Po4aBuilder.pm
|
||||
rm Po4aBuilder.pm.bak
|
||||
- perl Build.PL --install_base {{prefix}}/libexec
|
||||
- ./Build
|
||||
- ./Build install
|
||||
- run: |
|
||||
ln -s ../../libexec/man/man1 man1
|
||||
ln -s ../../libexec/man/man3 man3
|
||||
ln -s ../../libexec/man/man7 man7
|
||||
working-directory: ${{prefix}}/share/man
|
||||
- run: |
|
||||
sed -i.bak "s|{{deps.perl.org.prefix}}/bin/perl|/usr/bin/env perl|" *
|
||||
rm -f *.bak
|
||||
working-directory: ${{prefix}}/libexec/bin
|
||||
- run: ln -s ./libexec/bin bin
|
||||
working-directory: ${{prefix}}
|
||||
env:
|
||||
PERL5LIB: ${{prefix}}/libexec/lib/perl5:$PERL5LIB
|
||||
PKGS:
|
||||
- Locale::gettext
|
||||
- Module::Build
|
||||
- Pod::Parser
|
||||
- Text::WrapI18N
|
||||
- Unicode::GCString
|
||||
- YAML::Tiny
|
||||
- ExtUtils::CChecker
|
||||
- XS::Parse::Keyword::Builder
|
||||
- Syntax::Keyword::Try
|
||||
- Module::Build
|
||||
provides:
|
||||
- bin/msguntypot
|
||||
- bin/po4a
|
||||
- bin/po4a-display-man
|
||||
- bin/po4a-display-pod
|
||||
- bin/po4a-gettextize
|
||||
- bin/po4a-normalize
|
||||
- bin/po4a-updatepo
|
||||
- bin/podselect
|
||||
test:
|
||||
script:
|
||||
- po4a-updatepo -f latex -m en.tex -p latex.pot
|
||||
- cat latex.pot | grep 'Hello from Tea'
|
||||
- po4a-updatepo -f text -m en.md -p text.pot
|
||||
- cat text.pot | grep 'Hello from Tea'
|
||||
- po4a --version | grep {{version.marketing}}
|
Loading…
Reference in a new issue