summaryrefslogtreecommitdiff
path: root/system/po4a
diff options
context:
space:
mode:
Diffstat (limited to 'system/po4a')
-rw-r--r--system/po4a/APKBUILD22
-rw-r--r--system/po4a/disable-stats.patch22
2 files changed, 37 insertions, 7 deletions
diff --git a/system/po4a/APKBUILD b/system/po4a/APKBUILD
index 9daad6e56..f5cdb0755 100644
--- a/system/po4a/APKBUILD
+++ b/system/po4a/APKBUILD
@@ -1,17 +1,24 @@
# Contributor: Christian Kampka <christian@kampka.net>
-# Maintainer:
+# Maintainer: Zach van Rijn <me@zv.io>
pkgname=po4a
-pkgver=0.56
+pkgver=0.69
pkgrel=0
pkgdesc="Tools for helping translation of documentation"
url="https://po4a.org"
arch="noarch"
-options="!check" # massive incompetence
+# most of t/cfg-* requires GNU extensions to gettext tools
+# t/fmt-sgml requires onsgmls(1), part of opensp
+# t/fmt-tex requires kpsewhich(1), part of TeX
+options="!check"
license="GPL-2.0-only"
-depends="perl gettext-tiny perl-sgmls perl-unicode-linebreak"
+depends="perl gettext-tiny perl-pod-parser perl-sgmls perl-unicode-linebreak
+ perl-yaml-tiny"
makedepends="docbook-xsl perl-module-build diffutils"
-subpackages="$pkgname-doc $pkgname-lang"
-source="https://github.com/mquinson/po4a/releases/download/v$pkgver/po4a-$pkgver.tar.gz"
+# -lang would require Locale::gettext
+subpackages="$pkgname-doc"
+source="https://github.com/mquinson/po4a/releases/download/v$pkgver/po4a-$pkgver.tar.gz
+ disable-stats.patch
+ "
build() {
perl Build.PL installdirs=vendor create_packlist=0
@@ -28,4 +35,5 @@ package() {
find ${pkgdir} -name .packlist -o -name perllocal.pod -delete
}
-sha512sums="4fc1ca5743471577d9e8bd0b80285b9dbd83b964f8e828472787a6deaf8b8388bb7f96e68afab4119c1f5488fe371d3b1fa94b101204a59228d1cc2f0878f3c1 po4a-0.56.tar.gz"
+sha512sums="9cb5eec547ab18d1c3ebdda212b909fc4f5489a74641ba2d7e0a3a1d060f245d23667c16e687c678c5ccc3809c9315d20673266dcc3764172a899caa397238e3 po4a-0.69.tar.gz
+be457a023383c60864bd155b13d8952f8ae523b709a464af2419695a3fb64c1ee6b4176b23811241fa9bed87c2d0c44dbf8c19178046b052b49ea191d03ccc5a disable-stats.patch"
diff --git a/system/po4a/disable-stats.patch b/system/po4a/disable-stats.patch
new file mode 100644
index 000000000..692888460
--- /dev/null
+++ b/system/po4a/disable-stats.patch
@@ -0,0 +1,22 @@
+gettext-tiny msgfmt(1) does not support --statistics.
+
+If we try to generate statistics anyway (purely cosmetic), we receive:
+
+ po/bin (pot: 32912)
+ Unparsable content
+ Illegal division by zero at Po4aBuilder.pm line 297.
+
+This is because stdout/stderr is empty.
+
+--- po4a-0.66/Po4aBuilder.pm.old 2022-01-01 18:10:18.000000000 -0600
++++ po4a-0.66/Po4aBuilder.pm 2022-05-07 19:42:25.316006467 -0500
+@@ -15,7 +15,8 @@
+ $self->depends_on('docs');
+ $self->depends_on('distmeta'); # regenerate META.yml
+ $self->depends_on('man') unless ($^O eq 'MSWin32');
+- $self->depends_on('postats') unless ($^O eq 'MSWin32');
++ # We don't need to show stats at the end.
++ # $self->depends_on('postats') unless $(^O eq 'MSWin32');
+ }
+
+ sub make_files_writable {