pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/po4a Initial import of po4a-4.23:
details: https://anonhg.NetBSD.org/pkgsrc/rev/d0335e00cb13
branches: trunk
changeset: 506278:d0335e00cb13
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Jan 13 18:21:56 2006 +0000
description:
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:
textproc/po4a/DESCR | 9 +++++++++
textproc/po4a/Makefile | 25 +++++++++++++++++++++++++
textproc/po4a/PLIST | 1 +
textproc/po4a/distinfo | 6 ++++++
textproc/po4a/patches/patch-aa | 40 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 81 insertions(+), 0 deletions(-)
diffs (101 lines):
diff -r a594d9a664f1 -r d0335e00cb13 textproc/po4a/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/po4a/DESCR Fri Jan 13 18:21:56 2006 +0000
@@ -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 -r a594d9a664f1 -r d0335e00cb13 textproc/po4a/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/po4a/Makefile Fri Jan 13 18:21:56 2006 +0000
@@ -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@localhost
+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 -r a594d9a664f1 -r d0335e00cb13 textproc/po4a/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/po4a/PLIST Fri Jan 13 18:21:56 2006 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/13 18:21:56 wiz Exp $
diff -r a594d9a664f1 -r d0335e00cb13 textproc/po4a/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/po4a/distinfo Fri Jan 13 18:21:56 2006 +0000
@@ -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 -r a594d9a664f1 -r d0335e00cb13 textproc/po4a/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/po4a/patches/patch-aa Fri Jan 13 18:21:56 2006 +0000
@@ -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`;
+ }
+ }
+ }
Home |
Main Index |
Thread Index |
Old Index