summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
author Didier Spaier <didier at slint dot fr>2021-02-26 16:09:20 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-02-27 08:24:27 +0700
commit15e7e9e34fb823078e210257b0beeaa682b30015 (patch)
tree2f340b80fe404bd716d821776b2d7da2716e86d4 /misc
parent174d284551ef67d0a1e1d8f721a3b8ce94494d57 (diff)
downloadslackbuilds-15e7e9e34fb823078e210257b0beeaa682b30015.tar.gz
slackbuilds-15e7e9e34fb823078e210257b0beeaa682b30015.tar.xz
misc/po4a: Updated for version 0.63.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/po4a/README55
-rw-r--r--misc/po4a/po4a.SlackBuild8
-rw-r--r--misc/po4a/po4a.info6
-rw-r--r--misc/po4a/slack-desc8
4 files changed, 54 insertions, 23 deletions
diff --git a/misc/po4a/README b/misc/po4a/README
index 2c45c97a50..460ea0c578 100644
--- a/misc/po4a/README
+++ b/misc/po4a/README
@@ -4,25 +4,39 @@ po4a (PO for anything) eases translations and their maintenance,
allowing gettext's usage on unexpected areas like documentation.
In po4a each documentation format is handled by a module, that
-converts this format to/from PO. Formats included in po4a-0.47 are:
-AsciiDoc, BibTex, Dia, Halibut, KernelHelp, LaTeX, Man, POD, SGML, TeX,
-Texinfo, Text, WML, XHTML, XML, Yaml
+converts this format to/from PO. Formats handled by po4a-0.63
-man pages are encoded in UTF-8. To read them in other languages than English,
-do this for instance:
-LANG=ru_RU.utf8 GROFF_ENCODING=utf8 man <man page>
+. asciidoc: AsciiDoc format.
+. dia: uncompressed Dia diagrams.
+. docbook: DocBook XML.
+. guide: Gentoo Linux's XML documentation format.
+. ini: INI format.
+. kernelhelp: Help messages of each kernel compilation option.
+. latex: LaTeX format.
+. man: Good old manual page format.
+. pod: Perl Online Documentation format.
+. sgml: either DebianDoc or DocBook DTD.
+. texinfo: The info page format.
+. tex: generic TeX documents (see also latex).
+. text: simple text document.
+. wml: WML documents.
+. xhtml: XHTML documents.
+. xml: generic XML documents (see also docbook).
+. yaml: YAML documents.
-WARNING: run po4a.SlackBuild as root (su -) not with only root privileges
-(su), otherwise test #24 will fail.
+man pages are encoded in UTF-8. To read them in other languages than
+English, do this for instance:
+LANG=ru_RU.utf8 GROFF_ENCODING=utf8 man <man page>
-Dependencies tree is as follows (all dependencies listed are available at
-http://slackbuilds.org).
+Dependencies tree is as follows (all dependencies listed are available
+at http://slackbuilds.org).
-Po4a-0.47
+Po4a-0.63
|
|-- perl-Module-Build
|-- perl-YAML-Tiny. mandatory for the YAML module.
-|-- perl-text-WrapI18N to format po4a's warnings and error messages. Optional.
+|-- perl-text-WrapI18N to format po4a's warnings and error messages.
+| | Optional.
| |-- Text::CharWidth. Mandatory
|-- perl-Unicode-LineBreak, includes module Unicode::GCString to compute
text width, neeeded by AsciiDoc to determine two line titles in
@@ -32,3 +46,20 @@ Po4a-0.47
|-- perl-Encode-HanExtra. Optional.
|-- perl-Encode-JISX0213. Optional
|-- perl-Encode-ISO2022. Mandatory
+
+In addition, perl-Test-Pod allows to run the test for the POFD format
+
+Note: by default the SlackBuild does not run ./Build test, because these
+tests:
+t/cfg-multi.t
+t/cfg-single.t
+t/cfg-split.t
+fail if the script is run by root or even using fakeroot, which has been
+acknowledged upstream.
+
+All tests have been successfully passed running '/Build test' by the
+maintainer as regular user. If you want to check by yourself, un-comment
+the lines 85 and 86 in the SlackBuild. You will then need to comment
+them out to run the script again as root to actually build the package.
+
+WARNING: run this script with LANG set to an UTF-8 locale.
diff --git a/misc/po4a/po4a.SlackBuild b/misc/po4a/po4a.SlackBuild
index 4baaff9478..9e3a00e70f 100644
--- a/misc/po4a/po4a.SlackBuild
+++ b/misc/po4a/po4a.SlackBuild
@@ -22,13 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.ritten by Didier Spaier <didier dot spaier at epsm dot fr>
-# WARNING: run this script as real root (su -) else some tests will fail
-# WARNING: run this script using an UTF-8 locale. If you don't use one
+# WARNING: run this script using an UTF-8 locale. If you don't use one
# usually, run it like this e.g.
# LC_ALL=en_US.utf8 ./po4a.SlackBuild
PRGNAM=po4a
-VERSION=${VERSION:-0.55}
+VERSION=${VERSION:-0.63}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -81,7 +80,8 @@ perl Build.PL \
installdirs=vendor \
destdir=$PKG
./Build
-./Build test
+# ./Build test
+# exit
./Build install \
--install_path bindoc=/usr/man/man1 \
--install_path libdoc=/usr/man/man3
diff --git a/misc/po4a/po4a.info b/misc/po4a/po4a.info
index be015694f7..f699d19960 100644
--- a/misc/po4a/po4a.info
+++ b/misc/po4a/po4a.info
@@ -1,8 +1,8 @@
PRGNAM="po4a"
-VERSION="0.55"
+VERSION="0.63"
HOMEPAGE="https://po4a.org/"
-DOWNLOAD="https://github.com/mquinson/po4a/releases/download/v0.55/po4a-0.55.tar.gz"
-MD5SUM="cecc2a4190f97bf0430d78a5cb07071b"
+DOWNLOAD="https://github.com/mquinson/po4a/releases/download/v0.63/po4a-0.63.tar.gz"
+MD5SUM="25881c0a02c1180ffdec4bf452b4ff0f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-Unicode-LineBreak perl-Module-Build perl-YAML-Tiny"
diff --git a/misc/po4a/slack-desc b/misc/po4a/slack-desc
index 72d0020d1e..d81b32f609 100644
--- a/misc/po4a/slack-desc
+++ b/misc/po4a/slack-desc
@@ -12,8 +12,8 @@ po4a: po4a (PO for anything) eases translations and their maintenance,
po4a: allowing gettext's usage on unexpected areas like documentation.
po4a:
po4a: In po4a each documentation format is handled by a module, that
-po4a: converts this format to/from PO. Formats included in po4a-0.45 are:
-po4a: BibTex, Dia, Halibut, Kernelhelp, LaTeX, Man, POD, SGML, TeX,
-po4a: Texinfo, Text, WML, XHTML, XML.
-po4a:
+po4a: converts this format to/from PO. Formats included in po4a-0.63 are:
+po4a: man pages, POD, XML (generic, DocBook, XHTML, Dia, Guide, WML), SGML
+po4a: Tex (generic, LaTeX, Texinfo), text (simple with few formatting,
+po4a: markdown, Asciidoc), INI, KernelHelp
po4a: