pantry/projects/po4a.org/package.yml
Andrew 7344ac5a51
+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
2023-12-15 02:28:33 -05:00

73 lines
2.3 KiB
YAML

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}}