mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
parent
d2e0aa4e73
commit
df7eaa54b7
1 changed files with 30 additions and 19 deletions
|
@ -1,15 +1,19 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/mquinson/po4a/releases/download/v{{version.marketing}}/po4a-{{version.marketing}}.tar.gz
|
url: https://github.com/mquinson/po4a/archive/refs/tags/{{version.tag}}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: mquinson/po4a
|
github: mquinson/po4a
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
gnu.org/gettext: ^0.22
|
gnu.org/gettext: ^0.22
|
||||||
perl.org: ^5.22
|
perl.org: ^5.22
|
||||||
gnome.org/libxslt: ^1.1
|
gnome.org/libxslt: ^1.1
|
||||||
|
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
PERL5LIB: ${{prefix}}/libexec/lib/perl5:$PERL5LIB
|
PERL5LIB: ${{prefix}}/libexec/lib/perl5:$PERL5LIB
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cpanmin.us: '*'
|
cpanmin.us: '*'
|
||||||
|
@ -17,29 +21,35 @@ build:
|
||||||
curl.se: '*'
|
curl.se: '*'
|
||||||
script:
|
script:
|
||||||
- cpanm -l {{prefix}}/libexec $PKGS
|
- cpanm -l {{prefix}}/libexec $PKGS
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
curl -L "https://cpan.metacpan.org/authors/id/R/RA/RAAB/SGMLSpm-1.1.tar.gz" | tar -xz --strip-components=1
|
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 .
|
cpanm -l {{prefix}}/libexec .
|
||||||
working-directory: pkgs/SGMLSpm
|
working-directory: pkgs/SGMLSpm
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
curl -L "https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-2.38.tar.gz" | tar -xz --strip-components=1
|
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 .
|
cpanm -l {{prefix}}/libexec .
|
||||||
working-directory: pkgs/TermReadKey
|
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
|
# xsltproc fails to parse the remote xsl file; skip xml docs
|
||||||
rm Po4aBuilder.pm.bak
|
- sed -i
|
||||||
|
-e "s|/usr/share/xml/docbook/stylesheet/docbook-xsl|{{deps.docbook.org/xsl.prefix}}/libexec/docbook-xsl-ns|"
|
||||||
|
-e "s/if ( \$\^O ne 'MSWin32' )/if (0)/"
|
||||||
|
Po4aBuilder.pm
|
||||||
|
|
||||||
- perl Build.PL --install_base {{prefix}}/libexec
|
- perl Build.PL --install_base {{prefix}}/libexec
|
||||||
- ./Build
|
- ./Build
|
||||||
- ./Build install
|
- ./Build install
|
||||||
- run: |
|
|
||||||
ln -s ../../libexec/man/man1 man1
|
- run: ln -s ../../libexec/man/man? .
|
||||||
ln -s ../../libexec/man/man3 man3
|
|
||||||
ln -s ../../libexec/man/man7 man7
|
|
||||||
working-directory: ${{prefix}}/share/man
|
working-directory: ${{prefix}}/share/man
|
||||||
- run: |
|
|
||||||
sed -i.bak "s|{{deps.perl.org.prefix}}/bin/perl|/usr/bin/env perl|" *
|
- run: sed -i "s|{{deps.perl.org.prefix}}/bin/perl|/usr/bin/env perl|" *
|
||||||
rm -f *.bak
|
|
||||||
working-directory: ${{prefix}}/libexec/bin
|
working-directory: ${{prefix}}/libexec/bin
|
||||||
|
|
||||||
- run: ln -s ./libexec/bin bin
|
- run: ln -s ./libexec/bin bin
|
||||||
working-directory: ${{prefix}}
|
working-directory: ${{prefix}}
|
||||||
env:
|
env:
|
||||||
|
@ -55,6 +65,7 @@ build:
|
||||||
- XS::Parse::Keyword::Builder
|
- XS::Parse::Keyword::Builder
|
||||||
- Syntax::Keyword::Try
|
- Syntax::Keyword::Try
|
||||||
- Module::Build
|
- Module::Build
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/msguntypot
|
- bin/msguntypot
|
||||||
- bin/po4a
|
- bin/po4a
|
||||||
|
@ -64,8 +75,8 @@ provides:
|
||||||
- bin/po4a-normalize
|
- bin/po4a-normalize
|
||||||
- bin/po4a-updatepo
|
- bin/po4a-updatepo
|
||||||
- bin/podselect
|
- bin/podselect
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
|
||||||
- po4a-updatepo -f latex -m en.tex -p latex.pot
|
- po4a-updatepo -f latex -m en.tex -p latex.pot
|
||||||
- cat latex.pot | grep 'Hello from Tea'
|
- cat latex.pot | grep 'Hello from Tea'
|
||||||
- po4a-updatepo -f text -m en.md -p text.pot
|
- po4a-updatepo -f text -m en.md -p text.pot
|
||||||
|
|
Loading…
Reference in a new issue