r39534 - in /branches/upstream/liblocale-msgfmt-perl/current: Changes META.yml Makefile.PL bin/msgfmt.pl lib/Locale/Msgfmt.pm lib/Locale/Msgfmt/Utils.pm lib/Locale/Msgfmt/mo.pm lib/Locale/Msgfmt/po.pm lib/Module/Install/Msgfmt.pm
ryan52-guest at users.alioth.debian.org
ryan52-guest at users.alioth.debian.org
Thu Jul 9 10:05:23 UTC 2009
Author: ryan52-guest
Date: Thu Jul 9 10:05:17 2009
New Revision: 39534
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=39534
Log:
[svn-upgrade] Integrating new upstream version, liblocale-msgfmt-perl (0.14)
Modified:
branches/upstream/liblocale-msgfmt-perl/current/Changes
branches/upstream/liblocale-msgfmt-perl/current/META.yml
branches/upstream/liblocale-msgfmt-perl/current/Makefile.PL
branches/upstream/liblocale-msgfmt-perl/current/bin/msgfmt.pl
branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt.pm
branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/Utils.pm
branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/mo.pm
branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/po.pm
branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm
Modified: branches/upstream/liblocale-msgfmt-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/Changes?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/Changes (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/Changes Thu Jul 9 10:05:17 2009
@@ -1,4 +1,7 @@
Revision history for Locale-Msgfmt
+
+0.14 Jul 09, 2009
+ - fix a mess with Module::Install::Msgfmt :P
0.13 Jul 08, 2009
- act like make when rebuilding, only rebuild things that need to be rebuilt.
Modified: branches/upstream/liblocale-msgfmt-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/META.yml?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/META.yml (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/META.yml Thu Jul 9 10:05:17 2009
@@ -1,31 +1,31 @@
---
name: Locale-Msgfmt
-version: 0.13
+version: 0.14
author:
- 'Ryan Niebur <ryanryan52 at gmail.com>'
abstract: Compile .po files to .mo files
license: perl
resources:
- license: http://dev.perl.org/licenses/
+ license: ~
build_requires:
Test::More: 0
provides:
Locale::Msgfmt:
file: lib/Locale/Msgfmt.pm
- version: 0.13
+ version: 0.14
Locale::Msgfmt::Utils:
file: lib/Locale/Msgfmt/Utils.pm
- version: 0.13
+ version: 0.14
Locale::Msgfmt::mo:
file: lib/Locale/Msgfmt/mo.pm
- version: 0.13
+ version: 0.14
Locale::Msgfmt::po:
file: lib/Locale/Msgfmt/po.pm
- version: 0.13
+ version: 0.14
Module::Install::Msgfmt:
file: lib/Module/Install/Msgfmt.pm
- version: 0.13
-generated_by: Module::Build version 0.33
+ version: 0.14
+generated_by: Module::Build version 0.32
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ url: http://module-build.sourceforge.net/META-spec-v1.2.html
+ version: 1.2
Modified: branches/upstream/liblocale-msgfmt-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/Makefile.PL?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/Makefile.PL (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/Makefile.PL Thu Jul 9 10:05:17 2009
@@ -1,4 +1,4 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.33
+# Note: this file was auto-generated by Module::Build::Compat version 0.32
use ExtUtils::MakeMaker;
WriteMakefile
(
@@ -10,7 +10,6 @@
'INSTALLDIRS' => 'site',
'EXE_FILES' => [
'bin/msgfmt.pl'
- ],
- 'PL_FILES' => {}
+ ]
)
;
Modified: branches/upstream/liblocale-msgfmt-perl/current/bin/msgfmt.pl
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/bin/msgfmt.pl?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/bin/msgfmt.pl (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/bin/msgfmt.pl Thu Jul 9 10:05:17 2009
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-use Locale::Msgfmt 0.13;
+use Locale::Msgfmt 0.14;
use Getopt::Long;
use strict;
Modified: branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt.pm?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt.pm (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt.pm Thu Jul 9 10:05:17 2009
@@ -13,7 +13,17 @@
our @EXPORT = qw/msgfmt/;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
+
+sub do_msgfmt_for_module_install {
+ my $lib = shift;
+ my $sharepath = shift;
+ my $fullpath = File::Spec->catfile( $lib, $sharepath, 'locale' );
+ if ( !-d $fullpath ) {
+ die("$fullpath isn't a directory");
+ }
+ msgfmt( { in => $fullpath, verbose => 1, remove => 1 } );
+}
sub msgfmt {
my $hash = shift;
Modified: branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/Utils.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/Utils.pm?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/Utils.pm (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/Utils.pm Thu Jul 9 10:05:17 2009
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
sub character {
return map { pack "N*", $_ } @_;
Modified: branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/mo.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/mo.pm?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/mo.pm (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/mo.pm Thu Jul 9 10:05:17 2009
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
use Locale::Msgfmt::Utils;
Modified: branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/po.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/po.pm?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/po.pm (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt/po.pm Thu Jul 9 10:05:17 2009
@@ -5,7 +5,7 @@
use strict;
use warnings;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
sub new {
my $class = shift;
Modified: branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm?rev=39534&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm Thu Jul 9 10:05:17 2009
@@ -5,18 +5,19 @@
use Module::Install::Base ();
use Module::Install::Share;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
our @ISA = 'Module::Install::Base';
sub install_share_with_mofiles {
my @orig = (@_);
my $self = shift;
my $class = ref($self);
- my $inc_class = join( '::', @{ $self->_top }{qw(prefix name)} );
+ my $prefix = $self->_top->{prefix};
+ my $name = $self->_top->{name};
my $dir = @_ ? pop : 'share';
my $type = @_ ? shift : 'dist';
my $module = @_ ? shift : '';
- $self->build_requires( 'Locale::Msgfmt' => '0.09' );
+ $self->build_requires( 'Locale::Msgfmt' => '0.14' );
install_share(@orig);
my $distname = "";
@@ -29,20 +30,7 @@
my $path = File::Spec->catfile( 'auto', 'share', $type, $distname );
$self->postamble(<<"END_MAKEFILE");
config ::
-\t\$(NOECHO) \$(PERL) "-M$inc_class" -e "do_msgfmt(q(\$(INST_LIB)), q($path))"
+\t\$(NOECHO) \$(PERL) "-MLocale::Msgfmt" -e "Locale::Msgfmt::do_msgfmt_for_module_install(q(\$(INST_LIB)), q($path))"
END_MAKEFILE
}
-
-# blib/lib/auto/share/dist/Padre/locale/he.po
-sub do_msgfmt {
- my $self = shift;
- my $lib = shift;
- my $sharepath = shift;
- my $fullpath = File::Spec->catfile( $lib, $sharepath, 'locale' );
- if ( !-d $fullpath ) {
- die("$fullpath isn't a directory");
- }
- require Locale::Msgfmt;
- Locale::Msgfmt::msgfmt( { in => $fullpath, verbose => 1, remove => 1 } );
-}
More information about the Pkg-perl-cvs-commits
mailing list