pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/po4a Fix build problems (thanks joerg for the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89d9254cbd65
branches:  trunk
changeset: 648741:89d9254cbd65
user:      mef <mef%pkgsrc.org@localhost>
date:      Wed Mar 18 02:25:23 2015 +0000

description:
Fix build problems (thanks joerg for the report)
 - Add Two DEPENDS
   p5-CPAN-Meta>=2.141170
   p5-PerlIO-utf8_strict-[0-9]*
 - Fix strange issue msgmerge PATH not found problem (by SUBST)
 - Another strange --previous option is said unknown by msgmerge
   (with patch-Po4aBuilder.pm)

diffstat:

 textproc/po4a/Makefile                     |  13 ++++++++++-
 textproc/po4a/distinfo                     |   4 +-
 textproc/po4a/patches/patch-Po4aBuilder.pm |  33 +++++++++++++++++++++++++----
 3 files changed, 42 insertions(+), 8 deletions(-)

diffs (99 lines):

diff -r 6af6b2e5b7d2 -r 89d9254cbd65 textproc/po4a/Makefile
--- a/textproc/po4a/Makefile    Tue Mar 17 23:15:08 2015 +0000
+++ b/textproc/po4a/Makefile    Wed Mar 18 02:25:23 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2014/12/11 23:17:17 joerg Exp $
+# $NetBSD: Makefile,v 1.24 2015/03/18 02:25:23 mef Exp $
 
 DISTNAME=              po4a-0.45
 CATEGORIES=            textproc
@@ -12,11 +12,14 @@
 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
+DEPENDS+=              p5-CPAN-Meta>=2.141170:../../devel/p5-CPAN-Meta
+DEPENDS+=              p5-PerlIO-utf8_strict-[0-9]*:../../devel/p5-PerlIO-utf8_strict
 
 USE_TOOLS+=            pkg-config perl:run msgmerge:run msgfmt:run
 
 PERL5_MODULE_TYPE=     Module::Build
 PERL5_PACKLIST=                auto/po4a/.packlist
+
 REPLACE_PERL=          scripts/msguntypot po4a po4a-gettextize po4a-normalize
 REPLACE_PERL+=         po4a-translate po4a-updatepo
 REPLACE_PERL+=         lib/Locale/Po4a/*
@@ -25,6 +28,14 @@
 
 MAKE_ENV+=             COLUMNS=76
 
+# work around not to set PATH to msgmerge, please somebody to fix correctly
+SUBST_CLASSES+=                path
+SUBST_FILES.path=      po4a
+SUBST_MESSAGE.path=    Fix msgmerge command path (not found)
+SUBST_STAGE.path=      pre-configure
+SUBST_SED.path=                -e 's|\"msgmerge\"|\"${PREFIX}/bin/msgmerge\"|;'
+
 .include "../../lang/perl5/module.mk"
 .include "../../textproc/libxslt/buildlink3.mk"
+.include "../../devel/gettext-tools/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 6af6b2e5b7d2 -r 89d9254cbd65 textproc/po4a/distinfo
--- a/textproc/po4a/distinfo    Tue Mar 17 23:15:08 2015 +0000
+++ b/textproc/po4a/distinfo    Wed Mar 18 02:25:23 2015 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2014/12/03 07:08:36 ryoon Exp $
+$NetBSD: distinfo,v 1.6 2015/03/18 02:25:23 mef Exp $
 
 SHA1 (po4a-0.45.tar.gz) = c38c32d96c2a25f3a6cc5d8afb1fbdde362b7c19
 RMD160 (po4a-0.45.tar.gz) = b2cf67d430363181d1cce93c50e9f25edc7db98b
 Size (po4a-0.45.tar.gz) = 2208959 bytes
-SHA1 (patch-Po4aBuilder.pm) = 0befcdd33a59a7a46046091436b21ff805af7d00
+SHA1 (patch-Po4aBuilder.pm) = 642d3155c5ebd1d85d70dc3359651c602b17fb56
diff -r 6af6b2e5b7d2 -r 89d9254cbd65 textproc/po4a/patches/patch-Po4aBuilder.pm
--- a/textproc/po4a/patches/patch-Po4aBuilder.pm        Tue Mar 17 23:15:08 2015 +0000
+++ b/textproc/po4a/patches/patch-Po4aBuilder.pm        Wed Mar 18 02:25:23 2015 +0000
@@ -1,8 +1,31 @@
-$NetBSD: patch-Po4aBuilder.pm,v 1.1 2014/12/03 07:08:36 ryoon Exp $
+$NetBSD: patch-Po4aBuilder.pm,v 1.2 2015/03/18 02:25:23 mef Exp $
+
+(1) ryoon: remove gzip at initial import
+(2) mef: Add PerlIO::F_UTF8 () macro
+(3) mef: to avoid --previous option is said unknown to msgmerge
+    (but sounds strange)
 
---- Po4aBuilder.pm.orig        2013-08-21 20:11:04.000000000 +0000
-+++ Po4aBuilder.pm
-@@ -253,8 +253,6 @@ sub ACTION_man {
+--- Po4aBuilder.pm.orig        2013-08-22 05:11:04.000000000 +0900
++++ Po4aBuilder.pm     2015-03-18 11:10:49.000000000 +0900
+@@ -8,6 +8,8 @@ use File::stat;
+ 
+ @ISA = qw(Module::Build);
+ 
++sub PerlIO::F_UTF8 () { 0x00008000 } # from perliol.h
++
+ sub ACTION_build {
+     my $self = shift;
+     $self->depends_on('code');
+@@ -104,7 +106,7 @@ sub ACTION_binpo {
+         my $lang = fileparse($_, qw{.po});
+         unless ($self->up_to_date("po/bin/po4a.pot", $_)) {
+             print "XX Sync $_: ";
+-            system("msgmerge --previous $_ po/bin/po4a.pot -o $_.new") && die;
++            system("msgmerge $_ po/bin/po4a.pot -o $_.new") && die;
+             # Typically all that changes was a date. I'd
+             # prefer not to commit such changes, so detect
+             # and ignore them.
+@@ -253,8 +255,6 @@ sub ACTION_man {
          }
          $parser->parse_from_file ($file, $out);
  
@@ -11,7 +34,7 @@
      }
  
      # Install the manpages written in XML DocBook
-@@ -265,9 +263,7 @@ sub ACTION_man {
+@@ -265,9 +265,7 @@ sub ACTION_man {
          if ($file =~ m,(.*/man(.))/([^/]*)\.xml$,) {
              my ($outdir, $section, $outfile) = ($1, $2, $3);
              system("xsltproc -o $outdir/$outfile.$section --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $file") and die;



Home | Main Index | Thread Index | Old Index