summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz>2006-01-13 18:21:56 +0000
committerwiz <wiz>2006-01-13 18:21:56 +0000
commitd58aad5ab7ab3b6ca4f3cf67b16184f1fee28b1d (patch)
treec929dc7abc5b299ca3e0285e7c4049b5520ce7ee /textproc
parent0a74f078587c3ae552cecbee8c3f33c54f4ef535 (diff)
downloadpkgsrc-d58aad5ab7ab3b6ca4f3cf67b16184f1fee28b1d.tar.gz
Initial import of po4a-4.23:
The po4a (po for anything) project goal is to ease translations (and more interestingly, the maintenance of translations) using gettext tools on areas where they were not expected like documentation. In po4a each documentation format is handled by a module. For now, there exist modules for the pod format (in which the perl documentation is written), the good old man pages, and the documentation of the kernel compilation options. Some other modules are underway, like for sgml, xml, or texinfo.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/po4a/DESCR9
-rw-r--r--textproc/po4a/Makefile25
-rw-r--r--textproc/po4a/PLIST1
-rw-r--r--textproc/po4a/distinfo6
-rw-r--r--textproc/po4a/patches/patch-aa40
5 files changed, 81 insertions, 0 deletions
diff --git a/textproc/po4a/DESCR b/textproc/po4a/DESCR
new file mode 100644
index 00000000000..7e901debe03
--- /dev/null
+++ b/textproc/po4a/DESCR
@@ -0,0 +1,9 @@
+The po4a (po for anything) project goal is to ease translations (and
+more interestingly, the maintenance of translations) using gettext
+tools on areas where they were not expected like documentation.
+
+In po4a each documentation format is handled by a module. For now,
+there exist modules for the pod format (in which the perl documentation
+is written), the good old man pages, and the documentation of the
+kernel compilation options. Some other modules are underway, like
+for sgml, xml, or texinfo.
diff --git a/textproc/po4a/Makefile b/textproc/po4a/Makefile
new file mode 100644
index 00000000000..66bd792d958
--- /dev/null
+++ b/textproc/po4a/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/13 18:21:56 wiz Exp $
+#
+
+DISTNAME= po4a-0.23
+CATEGORIES= textproc
+MASTER_SITES= http://alioth.debian.org/download.php/1317/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://alioth.debian.org/projects/po4a/
+COMMENT= Tool for using gettext where it was not intended to be used
+
+DEPENDS+= p5-gettext>=1.01:../../devel/p5-gettext
+DEPENDS+= p5-SGMLS-[0-9]*:../../textproc/p5-SGMLS
+DEPENDS+= p5-Term-ReadKey-[0-9]*:../../devel/p5-Term-ReadKey
+DEPENDS+= p5-Text-WrapI18N-[0-9]*:../../textproc/p5-Text-WrapI18N
+
+USE_TOOLS+= pkg-config perl:run
+
+PERL5_MODULE_TYPE= Module::Build
+PERL5_PACKLIST= auto/po4a/.packlist
+REPLACE_PERL= msguntypot po4a po4a-gettextize po4a-normalize \
+ po4a-translate po4a-updatepo
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/po4a/PLIST b/textproc/po4a/PLIST
new file mode 100644
index 00000000000..66965cae9a2
--- /dev/null
+++ b/textproc/po4a/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/13 18:21:56 wiz Exp $
diff --git a/textproc/po4a/distinfo b/textproc/po4a/distinfo
new file mode 100644
index 00000000000..29ccc1b6490
--- /dev/null
+++ b/textproc/po4a/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/13 18:21:56 wiz Exp $
+
+SHA1 (po4a-0.23.tar.gz) = 749a7823c976befc6a84d443ef7225bd41477b59
+RMD160 (po4a-0.23.tar.gz) = 79174c0ed576ac793495be7addb407d919f3daf9
+Size (po4a-0.23.tar.gz) = 736399 bytes
+SHA1 (patch-aa) = 501a5fc0265d06285c13f3501793ad2a92c95081
diff --git a/textproc/po4a/patches/patch-aa b/textproc/po4a/patches/patch-aa
new file mode 100644
index 00000000000..c74dfd68880
--- /dev/null
+++ b/textproc/po4a/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/01/13 18:21:56 wiz Exp $
+
+--- Build.PL.orig 2005-12-09 17:24:46.000000000 +0000
++++ Build.PL
+@@ -164,8 +164,6 @@ my $builder = Module::Build->subclass
+ if (-e "blib/man/$file") {
+ system("mkdir -p blib/man/$lang/man1") && die;
+ $parser->parse_from_file ("blib/man/$file", "blib/man/$lang/man1/$file.1p");
+- system("gzip -9 blib/man/$lang/man1/$file.1p") && die;
+- system("rm -f blib/man/$file")&& die;
+ }
+ }
+ }
+@@ -186,9 +184,6 @@ my $builder = Module::Build->subclass
+ system ("mkdir -p blib/man/$lang/man3") && die;
+ $parser->parse_from_file ("blib/man/$filename",
+ "blib/man/$lang/man3/Locale::Po4a::$filename.3pm") || die;
+- system ("gzip -9 blib/man/$lang/man3/Locale::Po4a::$filename.3pm")
+- && die "Cannot gzip blib/man/$lang/man3/Locale::Po4a::$filename.3pm";
+- system ("rm -f blib/man/$filename") && die;
+ }
+ }
+ }
+@@ -203,7 +198,6 @@ my $builder = Module::Build->subclass
+ print "X Generate the man version of $file\n";
+ system("mkdir -p blib/man/man7") && die;
+ $parser->parse_from_file ($file, "blib/man/man7/$filename");
+- system ("gzip -9 -f blib/man/man7/$filename") && die;
+ foreach $lang (@langs) {
+ my $charset = defined $charsets{$lang} ? $charsets{$lang} : $charsets{'default'};
+ print "X Translate $file to $lang\n";
+@@ -212,8 +206,6 @@ my $builder = Module::Build->subclass
+ if (-e "blib/man/$filename") {
+ `mkdir -p blib/man/$lang/man7`;
+ $parser->parse_from_file ("blib/man/$filename", "blib/man/$lang/man7/$filename");
+- `gzip -9 blib/man/$lang/man7/$filename`;
+- `rm -f blib/man/$filename`;
+ }
+ }
+ }