r39397 - in /branches/upstream/liblocale-msgfmt-perl/current: Changes MANIFEST META.yml lib/Locale/Msgfmt.pm lib/Locale/Msgfmt/Utils.pm lib/Locale/Msgfmt/mo.pm lib/Locale/Msgfmt/po.pm lib/Module/ lib/Module/Install/ lib/Module/Install/Msgfmt.pm

ryan52-guest at users.alioth.debian.org ryan52-guest at users.alioth.debian.org
Mon Jul 6 06:03:05 UTC 2009


Author: ryan52-guest
Date: Mon Jul  6 06:02:58 2009
New Revision: 39397

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=39397
Log:
[svn-upgrade] Integrating new upstream version, liblocale-msgfmt-perl (0.10)

Added:
    branches/upstream/liblocale-msgfmt-perl/current/lib/Module/
    branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/
    branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm
Modified:
    branches/upstream/liblocale-msgfmt-perl/current/Changes
    branches/upstream/liblocale-msgfmt-perl/current/MANIFEST
    branches/upstream/liblocale-msgfmt-perl/current/META.yml
    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

Modified: branches/upstream/liblocale-msgfmt-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/Changes?rev=39397&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/Changes (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/Changes Mon Jul  6 06:02:58 2009
@@ -1,6 +1,9 @@
 Revision history for Locale-Msgfmt
 
-0.09    unreleased
+0.10    Jul 5, 2009
+        - actually upload with Module::Install::Msgfmt this time.
+
+0.09    Jul 5, 2009
         - still require the newer version of Locale::Maketext::Gettext
           when running under CPAN Testers
         - use is_deeply instead of making a string out of the hash and

Modified: branches/upstream/liblocale-msgfmt-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/liblocale-msgfmt-perl/current/MANIFEST?rev=39397&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/MANIFEST (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/MANIFEST Mon Jul  6 06:02:58 2009
@@ -9,9 +9,8 @@
 lib/Locale/Msgfmt/mo.pm
 lib/Locale/Msgfmt/po.pm
 lib/Locale/Msgfmt/Utils.pm
-Makefile.PL
+lib/Module/Install/Msgfmt.pm
 MANIFEST			This list of files
-META.yml
 README
 t/00-load.t
 t/interface.t
@@ -27,3 +26,5 @@
 t/samples/ja.po
 t/samples/ngettext.mo
 t/samples/ngettext.po
+Makefile.PL
+META.yml

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=39397&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/META.yml (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/META.yml Mon Jul  6 06:02:58 2009
@@ -1,6 +1,6 @@
 ---
 name: Locale-Msgfmt
-version: 0.09
+version: 0.10
 author:
   - 'Ryan Niebur <ryanryan52 at gmail.com>'
 abstract: Compile .po files to .mo files
@@ -12,16 +12,19 @@
 provides:
   Locale::Msgfmt:
     file: lib/Locale/Msgfmt.pm
-    version: 0.09
+    version: 0.10
   Locale::Msgfmt::Utils:
     file: lib/Locale/Msgfmt/Utils.pm
-    version: 0.09
+    version: 0.10
   Locale::Msgfmt::mo:
     file: lib/Locale/Msgfmt/mo.pm
-    version: 0.09
+    version: 0.10
   Locale::Msgfmt::po:
     file: lib/Locale/Msgfmt/po.pm
-    version: 0.09
+    version: 0.10
+  Module::Install::Msgfmt:
+    file: lib/Module/Install/Msgfmt.pm
+    version: 0.10
 generated_by: Module::Build version 0.33
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html

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=39397&op=diff
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt.pm (original)
+++ branches/upstream/liblocale-msgfmt-perl/current/lib/Locale/Msgfmt.pm Mon Jul  6 06:02:58 2009
@@ -12,7 +12,7 @@
 
 our @EXPORT = qw/msgfmt/;
 
-our $VERSION = '0.09';
+our $VERSION = '0.10';
 
 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=39397&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 Mon Jul  6 06:02:58 2009
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.09';
+our $VERSION = '0.10';
 
 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=39397&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 Mon Jul  6 06:02:58 2009
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.09';
+our $VERSION = '0.10';
 
 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=39397&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 Mon Jul  6 06:02:58 2009
@@ -5,7 +5,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.09';
+our $VERSION = '0.10';
 
 sub new {
 	my $class = shift;

Added: 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=39397&op=file
==============================================================================
--- branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm (added)
+++ branches/upstream/liblocale-msgfmt-perl/current/lib/Module/Install/Msgfmt.pm Mon Jul  6 06:02:58 2009
@@ -1,0 +1,48 @@
+package Module::Install::Msgfmt;
+
+use strict;
+use File::Spec;
+use Module::Install::Base ();
+use Module::Install::Share;
+
+our $VERSION = '0.10';
+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 $dir       = @_ ? pop : 'share';
+	my $type      = @_ ? shift : 'dist';
+	my $module    = @_ ? shift : '';
+	$self->build_requires( 'Locale::Msgfmt' => '0.09' );
+	install_share(@orig);
+	my $distname = "";
+
+	if ( $type eq 'dist' ) {
+		$distname = $self->name;
+	} else {
+		$distname = Module::Install::_CLASS($module);
+		$distname =~ s/::/-/g;
+	}
+	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))"
+
+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