r37889 - in /trunk/libclass-c3-adopt-next-perl: ./ debian/ inc/Module/ inc/Module/Install/ lib/Class/C3/Adopt/

nhandler-guest at users.alioth.debian.org nhandler-guest at users.alioth.debian.org
Tue Jun 9 01:03:46 UTC 2009


Author: nhandler-guest
Date: Tue Jun  9 01:02:24 2009
New Revision: 37889

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=37889
Log:
* New upstream release
* debian/watch:
  - Remove comments
  - Update to ignore development releases.
* debian/copyright:
  - Remove Disclaimer from dh-make-perl
  - remove 'C' from before Florian Ragwitz's email address
  - Use Module::Install stanza from:
    http://pkg-perl.alioth.debian.org/copyright.html#module__install
  - Add years to upstream Copyright
  - Add License-Alias field to debian/* copyright
* debian/control:
  - Add myself to list of Uploaders

Added:
    trunk/libclass-c3-adopt-next-perl/README
      - copied unchanged from r37888, branches/upstream/libclass-c3-adopt-next-perl/current/README
Modified:
    trunk/libclass-c3-adopt-next-perl/Changes
    trunk/libclass-c3-adopt-next-perl/MANIFEST
    trunk/libclass-c3-adopt-next-perl/META.yml
    trunk/libclass-c3-adopt-next-perl/Makefile.PL
    trunk/libclass-c3-adopt-next-perl/debian/changelog
    trunk/libclass-c3-adopt-next-perl/debian/control
    trunk/libclass-c3-adopt-next-perl/debian/copyright
    trunk/libclass-c3-adopt-next-perl/debian/watch
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install.pm
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Base.pm
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Can.pm
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Fetch.pm
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Makefile.pm
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Metadata.pm
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Win32.pm
    trunk/libclass-c3-adopt-next-perl/inc/Module/Install/WriteAll.pm
    trunk/libclass-c3-adopt-next-perl/lib/Class/C3/Adopt/NEXT.pm

Modified: trunk/libclass-c3-adopt-next-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/Changes?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/Changes (original)
+++ trunk/libclass-c3-adopt-next-perl/Changes Tue Jun  9 01:02:24 2009
@@ -1,3 +1,7 @@
+0.12  Mon, 08 Jun 2009 14:16:34 +0200
+  * Update copyright notice.
+  * A couple of pod whitespace changes.
+
 0.11  Tue, 19 May 2009 18:34:17 +0100
   * Change wording of warning to be more clear.
 

Modified: trunk/libclass-c3-adopt-next-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/MANIFEST?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/MANIFEST (original)
+++ trunk/libclass-c3-adopt-next-perl/MANIFEST Tue Jun  9 01:02:24 2009
@@ -12,6 +12,7 @@
 Makefile.PL
 MANIFEST			This list of files
 META.yml
+README
 t/basic.t
 t/disable.t
 t/disable_regex.t

Modified: trunk/libclass-c3-adopt-next-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/META.yml?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/META.yml (original)
+++ trunk/libclass-c3-adopt-next-perl/META.yml Tue Jun  9 01:02:24 2009
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
-generated_by: 'Module::Install version 0.87'
+generated_by: 'Module::Install version 0.91'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,5 +24,7 @@
   MRO::Compat: 0
   NEXT: 0
 resources:
+  bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Class-C3-Adopt-NEXT
   license: http://dev.perl.org/licenses/
-version: 0.11
+  repository: git://github.com/rafl/class-c3-adopt-next.git
+version: 0.12

Modified: trunk/libclass-c3-adopt-next-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/Makefile.PL?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/Makefile.PL (original)
+++ trunk/libclass-c3-adopt-next-perl/Makefile.PL Tue Jun  9 01:02:24 2009
@@ -11,6 +11,9 @@
 
 test_requires 'Test::Exception' => '0.27';
 
+repository 'git://github.com/rafl/class-c3-adopt-next.git';
+bugtracker 'http://rt.cpan.org/Public/Dist/Display.html?Name=Class-C3-Adopt-NEXT';
+
 extra_tests;
 
 postamble(<<"EOM");

Modified: trunk/libclass-c3-adopt-next-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/debian/changelog?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/debian/changelog (original)
+++ trunk/libclass-c3-adopt-next-perl/debian/changelog Tue Jun  9 01:02:24 2009
@@ -1,8 +1,20 @@
-libclass-c3-adopt-next-perl (0.11-2) UNRELEASED; urgency=low
+libclass-c3-adopt-next-perl (0.12-1) unstable; urgency=low
 
-  * debian/watch: Update to ignore development releases.
+  * New upstream release
+  * debian/watch:
+    - Remove comments
+    - Update to ignore development releases.
+  * debian/copyright:
+    - Remove Disclaimer from dh-make-perl
+    - remove 'C' from before Florian Ragwitz's email address
+    - Use Module::Install stanza from:
+      http://pkg-perl.alioth.debian.org/copyright.html#module__install
+    - Add years to upstream Copyright
+    - Add License-Alias field to debian/* copyright
+  * debian/control:
+    - Add myself to list of Uploaders
 
- -- Nathan Handler <nhandler at ubuntu.com>  Sat, 06 Jun 2009 01:33:06 +0000
+ -- Nathan Handler <nhandler at ubuntu.com>  Tue, 09 Jun 2009 01:02:12 +0000
 
 libclass-c3-adopt-next-perl (0.11-1) unstable; urgency=low
 

Modified: trunk/libclass-c3-adopt-next-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/debian/control?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/debian/control (original)
+++ trunk/libclass-c3-adopt-next-perl/debian/control Tue Jun  9 01:02:24 2009
@@ -5,7 +5,7 @@
 Build-Depends-Indep: perl (>= 5.6.0-12), libmro-compat-perl, liblist-moreutils-perl,
  libtest-exception-perl (>= 0.27)
 Uploaders: Krzysztof Krzyżaniak (eloy) <eloy at debian.org>,
- Ansgar Burchardt <ansgar at 43-1.org>
+ Ansgar Burchardt <ansgar at 43-1.org>, Nathan Handler <nhandler at ubuntu.com>
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Standards-Version: 3.8.1
 Homepage: http://search.cpan.org/dist/Class-C3-Adopt-NEXT/

Modified: trunk/libclass-c3-adopt-next-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/debian/copyright?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/debian/copyright (original)
+++ trunk/libclass-c3-adopt-next-perl/debian/copyright Tue Jun  9 01:02:24 2009
@@ -1,27 +1,24 @@
 Format-Specification:
     http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
-Upstream-Maintainer: Florian Ragwitz C<rafl at debian.org>
+Upstream-Maintainer: Florian Ragwitz <rafl at debian.org>
 Upstream-Source: http://search.cpan.org/dist/Class-C3-Adopt-NEXT/
 Upstream-Name: Class-C3-Adopt-NEXT
-Disclaimer: This copyright info was automatically extracted 
-    from the perl module. It may not be accurate, so you better 
-    check the module sources in order to ensure the module for its 
-    inclusion in Debian or for general legal information. Please, 
-    if licensing information is incorrectly generated, file a bug 
-    on dh-make-perl.
 
 Files: *
-Copyright: Florian Ragwitz C<rafl at debian.org>
+Copyright: 2008, 2009, Florian Ragwitz <rafl at debian.org>
 License-Alias: Perl
 License: Artistic | GPL-1+
 
-Files: inc/*:
-Copyright: © 2002 - 2009 by Brian Ingerson, Audrey Tang 
- and Adam Kennedy.
-License: GPL-1+ | Artistic
+Files: inc/Module/*
+Copyright: 2002-2009, Adam Kennedy <adamk at cpan.org>
+ 2002-2009, Audrey Tang <autrijus at autrijus.org>
+ 2002-2009, Brian Ingerson <ingy at cpan.org>
+License-Alias: Perl
+License: Artistic | GPL-1+
 
 Files: debian/*
 Copyright: 2008-2009 Krzysztof Krzyzaniak (eloy) <eloy at debian.org>
+License-Alias: Perl
 License: Artistic | GPL-1+
 
 License: Artistic

Modified: trunk/libclass-c3-adopt-next-perl/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/debian/watch?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/debian/watch (original)
+++ trunk/libclass-c3-adopt-next-perl/debian/watch Tue Jun  9 01:02:24 2009
@@ -1,4 +1,2 @@
-# format version number, currently 3; this line is compulsory!
 version=3
-# URL to the package page followed by a regex to search
 http://search.cpan.org/dist/Class-C3-Adopt-NEXT/   .*/Class-C3-Adopt-NEXT-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install.pm Tue Jun  9 01:02:24 2009
@@ -28,7 +28,7 @@
 	# This is not enforced yet, but will be some time in the next few
 	# releases once we can make sure it won't clash with custom
 	# Module::Install extensions.
-	$VERSION = '0.87';
+	$VERSION = '0.91';
 
 	# Storage for the pseudo-singleton
 	$MAIN    = undef;
@@ -353,7 +353,7 @@
 	if ( $] >= 5.006 ) {
 		open( FH, '<', $_[0] ) or die "open($_[0]): $!";
 	} else {
-		open( FH, "< $_[0]"  ) or die "open($_[0]): $!";	
+		open( FH, "< $_[0]"  ) or die "open($_[0]): $!";
 	}
 	my $string = do { local $/; <FH> };
 	close FH or die "close($_[0]): $!";
@@ -384,7 +384,7 @@
 	if ( $] >= 5.006 ) {
 		open( FH, '>', $_[0] ) or die "open($_[0]): $!";
 	} else {
-		open( FH, "> $_[0]"  ) or die "open($_[0]): $!";	
+		open( FH, "> $_[0]"  ) or die "open($_[0]): $!";
 	}
 	foreach ( 1 .. $#_ ) {
 		print FH $_[$_] or die "print($_[0]): $!";

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Base.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Base.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Base.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Base.pm Tue Jun  9 01:02:24 2009
@@ -4,7 +4,7 @@
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '0.87';
+	$VERSION = '0.91';
 }
 
 # Suspend handler for "redefined" warnings
@@ -13,42 +13,34 @@
 	$SIG{__WARN__} = sub { $w };
 }
 
-### This is the ONLY module that shouldn't have strict on
-# use strict;
-
-#line 45
+#line 42
 
 sub new {
-	my ($class, %args) = @_;
-
-	foreach my $method ( qw(call load) ) {
-		next if defined &{"$class\::$method"};
-		*{"$class\::$method"} = sub {
-			shift()->_top->$method(@_);
-		};
+	my $class = shift;
+	unless ( defined &{"${class}::call"} ) {
+		*{"${class}::call"} = sub { shift->_top->call(@_) };
 	}
-
-	bless( \%args, $class );
+	unless ( defined &{"${class}::load"} ) {
+		*{"${class}::load"} = sub { shift->_top->load(@_) };
+	}
+	bless { @_ }, $class;
 }
 
-#line 66
+#line 61
 
 sub AUTOLOAD {
-	my $self = shift;
 	local $@;
-	my $autoload = eval {
-		$self->_top->autoload
-	} or return;
-	goto &$autoload;
+	my $func = eval { shift->_top->autoload } or return;
+	goto &$func;
 }
 
-#line 83
+#line 75
 
 sub _top {
 	$_[0]->{_top};
 }
 
-#line 98
+#line 90
 
 sub admin {
 	$_[0]->_top->{admin}
@@ -56,7 +48,7 @@
 	Module::Install::Base::FakeAdmin->new;
 }
 
-#line 114
+#line 106
 
 sub is_admin {
 	$_[0]->admin->VERSION;
@@ -83,4 +75,4 @@
 
 1;
 
-#line 162
+#line 154

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Can.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Can.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Can.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Can.pm Tue Jun  9 01:02:24 2009
@@ -2,16 +2,16 @@
 package Module::Install::Can;
 
 use strict;
-use Module::Install::Base;
-use Config              ();
-use File::Spec          ();
-use ExtUtils::MakeMaker ();
+use Config                ();
+use File::Spec            ();
+use ExtUtils::MakeMaker   ();
+use Module::Install::Base ();
 
-use vars qw{$VERSION $ISCORE @ISA};
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.87';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
 # check if we can load some module

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Fetch.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Fetch.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Fetch.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Fetch.pm Tue Jun  9 01:02:24 2009
@@ -2,13 +2,13 @@
 package Module::Install::Fetch;
 
 use strict;
-use Module::Install::Base;
+use Module::Install::Base ();
 
-use vars qw{$VERSION $ISCORE @ISA};
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.87';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
 sub get_file {

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Makefile.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Makefile.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Makefile.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Makefile.pm Tue Jun  9 01:02:24 2009
@@ -2,14 +2,14 @@
 package Module::Install::Makefile;
 
 use strict 'vars';
-use Module::Install::Base;
-use ExtUtils::MakeMaker ();
-
-use vars qw{$VERSION $ISCORE @ISA};
+use ExtUtils::MakeMaker   ();
+use Module::Install::Base ();
+
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.87';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
 sub Makefile { $_[0] }

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Metadata.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Metadata.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Metadata.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Metadata.pm Tue Jun  9 01:02:24 2009
@@ -2,18 +2,17 @@
 package Module::Install::Metadata;
 
 use strict 'vars';
-use Module::Install::Base;
+use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.87';
-	@ISA     = qw{Module::Install::Base};
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
 
 my @boolean_keys = qw{
 	sign
-	mymeta
 };
 
 my @scalar_keys = qw{
@@ -440,21 +439,21 @@
 	/ixms ) {
 		my $license_text = $1;
 		my @phrases      = (
-			'under the same (?:terms|license) as perl itself' => 'perl',        1,
-			'GNU general public license'                      => 'gpl',         1,
-			'GNU public license'                              => 'gpl',         1,
-			'GNU lesser general public license'               => 'lgpl',        1,
-			'GNU lesser public license'                       => 'lgpl',        1,
-			'GNU library general public license'              => 'lgpl',        1,
-			'GNU library public license'                      => 'lgpl',        1,
-			'BSD license'                                     => 'bsd',         1,
-			'Artistic license'                                => 'artistic',    1,
-			'GPL'                                             => 'gpl',         1,
-			'LGPL'                                            => 'lgpl',        1,
-			'BSD'                                             => 'bsd',         1,
-			'Artistic'                                        => 'artistic',    1,
-			'MIT'                                             => 'mit',         1,
-			'proprietary'                                     => 'proprietary', 0,
+			'under the same (?:terms|license) as (?:perl|the perl programming language) itself' => 'perl', 1,
+			'GNU general public license'         => 'gpl',         1,
+			'GNU public license'                 => 'gpl',         1,
+			'GNU lesser general public license'  => 'lgpl',        1,
+			'GNU lesser public license'          => 'lgpl',        1,
+			'GNU library general public license' => 'lgpl',        1,
+			'GNU library public license'         => 'lgpl',        1,
+			'BSD license'                        => 'bsd',         1,
+			'Artistic license'                   => 'artistic',    1,
+			'GPL'                                => 'gpl',         1,
+			'LGPL'                               => 'lgpl',        1,
+			'BSD'                                => 'bsd',         1,
+			'Artistic'                           => 'artistic',    1,
+			'MIT'                                => 'mit',         1,
+			'proprietary'                        => 'proprietary', 0,
 		);
 		while ( my ($pattern, $license, $osi) = splice(@phrases, 0, 3) ) {
 			$pattern =~ s{\s+}{\\s+}g;
@@ -506,17 +505,29 @@
 	}
 }
 
+sub test_requires_from {
+	my $self     = shift;
+	my $content  = Module::Install::_readperl($_[0]);
+	my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg;
+	while ( @requires ) {
+		my $module  = shift @requires;
+		my $version = shift @requires;
+		$self->test_requires( $module => $version );
+	}
+}
+
 # Convert triple-part versions (eg, 5.6.1 or 5.8.9) to
 # numbers (eg, 5.006001 or 5.008009).
 # Also, convert double-part versions (eg, 5.8)
 sub _perl_version {
 	my $v = $_[-1];
-	$v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf("%d.%03d",$1,$2)/e;	
+	$v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf("%d.%03d",$1,$2)/e;
 	$v =~ s/^([1-9])\.([1-9]\d?\d?)\.(0|[1-9]\d?\d?)$/sprintf("%d.%03d%03d",$1,$2,$3 || 0)/e;
 	$v =~ s/(\.\d\d\d)000$/$1/;
 	$v =~ s/_.+$//;
 	if ( ref($v) ) {
-		$v = $v + 0; # Numify
+		# Numify
+		$v = $v + 0;
 	}
 	return $v;
 }
@@ -526,21 +537,56 @@
 
 
 ######################################################################
-# MYMETA.yml Support
+# MYMETA Support
 
 sub WriteMyMeta {
 	die "WriteMyMeta has been deprecated";
 }
 
-sub write_mymeta {
-	my $self = shift;
-	
-	# If there's no existing META.yml there is nothing we can do
-	return unless -f 'META.yml';
+sub write_mymeta_yaml {
+	my $self = shift;
 
 	# We need YAML::Tiny to write the MYMETA.yml file
 	unless ( eval { require YAML::Tiny; 1; } ) {
 		return 1;
+	}
+
+	# Generate the data
+	my $meta = $self->_write_mymeta_data or return 1;
+
+	# Save as the MYMETA.yml file
+	print "Writing MYMETA.yml\n";
+	YAML::Tiny::DumpFile('MYMETA.yml', $meta);
+}
+
+sub write_mymeta_json {
+	my $self = shift;
+
+	# We need JSON to write the MYMETA.json file
+	unless ( eval { require JSON; 1; } ) {
+		return 1;
+	}
+
+	# Generate the data
+	my $meta = $self->_write_mymeta_data or return 1;
+
+	# Save as the MYMETA.yml file
+	print "Writing MYMETA.json\n";
+	Module::Install::_write(
+		'MYMETA.json',
+		JSON->new->pretty(1)->canonical->encode($meta),
+	);
+}
+
+sub _write_mymeta_data {
+	my $self = shift;
+
+	# If there's no existing META.yml there is nothing we can do
+	return undef unless -f 'META.yml';
+
+	# We need Parse::CPAN::Meta to load the file
+	unless ( eval { require Parse::CPAN::Meta; 1; } ) {
+		return undef;
 	}
 
 	# Merge the perl version into the dependencies
@@ -558,7 +604,7 @@
 	}
 
 	# Load the advisory META.yml file
-	my @yaml = YAML::Tiny::LoadFile('META.yml');
+	my @yaml = Parse::CPAN::Meta::LoadFile('META.yml');
 	my $meta = $yaml[0];
 
 	# Overwrite the non-configure dependency hashs
@@ -572,9 +618,7 @@
 		$meta->{build_requires} = { map { @$_ } @{ $val->{build_requires} } };
 	}
 
-	# Save as the MYMETA.yml file
-	print "Writing MYMETA.yml\n";
-	YAML::Tiny::DumpFile('MYMETA.yml', $meta);	
+	return $meta;
 }
 
 1;

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Win32.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Win32.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Win32.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install/Win32.pm Tue Jun  9 01:02:24 2009
@@ -2,12 +2,12 @@
 package Module::Install::Win32;
 
 use strict;
-use Module::Install::Base;
+use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.87';
-	@ISA     = qw{Module::Install::Base};
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
 

Modified: trunk/libclass-c3-adopt-next-perl/inc/Module/Install/WriteAll.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/inc/Module/Install/WriteAll.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/inc/Module/Install/WriteAll.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/inc/Module/Install/WriteAll.pm Tue Jun  9 01:02:24 2009
@@ -2,11 +2,11 @@
 package Module::Install::WriteAll;
 
 use strict;
-use Module::Install::Base;
+use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.87';
+	$VERSION = '0.91';;
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }
@@ -41,8 +41,18 @@
 
 	# The Makefile write process adds a couple of dependencies,
 	# so write the META.yml files after the Makefile.
-	$self->Meta->write        if $args{meta};
-	$self->Meta->write_mymeta if $self->mymeta;
+	if ( $args{meta} ) {
+		$self->Meta->write;
+	}
+
+	# Experimental support for MYMETA
+	if ( $ENV{X_MYMETA} ) {
+		if ( $ENV{X_MYMETA} eq 'JSON' ) {
+			$self->Meta->write_mymeta_json;
+		} else {
+			$self->Meta->write_mymeta_yaml;
+		}
+	}
 
 	return 1;
 }

Modified: trunk/libclass-c3-adopt-next-perl/lib/Class/C3/Adopt/NEXT.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-c3-adopt-next-perl/lib/Class/C3/Adopt/NEXT.pm?rev=37889&op=diff
==============================================================================
--- trunk/libclass-c3-adopt-next-perl/lib/Class/C3/Adopt/NEXT.pm (original)
+++ trunk/libclass-c3-adopt-next-perl/lib/Class/C3/Adopt/NEXT.pm Tue Jun  9 01:02:24 2009
@@ -8,7 +8,7 @@
 use List::MoreUtils qw/none/;
 use warnings::register;
 
-our $VERSION = '0.11';
+our $VERSION = '0.12';
 
 {
     my %c3_mro_ok;
@@ -115,27 +115,27 @@
 
 =head1 DESCRIPTION
 
-L<NEXT> was a good solution a few
-years ago, but isn't any more.  It's slow, and the order in which it
-re-dispatches methods appears random at times. It also encourages bad
-programming practices, as you end up with code to re-dispatch methods when all
-you really wanted to do was run some code before or after a method fired.
-
-However, if you have a large application, then weaning yourself off C<NEXT> isn't
-easy.
+L<NEXT> was a good solution a few years ago, but isn't any more.  It's slow,
+and the order in which it re-dispatches methods appears random at times. It
+also encourages bad programming practices, as you end up with code to
+re-dispatch methods when all you really wanted to do was run some code before
+or after a method fired.
+
+However, if you have a large application, then weaning yourself off C<NEXT>
+isn't easy.
 
 This module is intended as a drop-in replacement for NEXT, supporting the same
 interface, but using L<Class::C3> to do the hard work. You can then write new
-code without C<NEXT>, and migrate individual source files to use C<Class::C3> or
-method modifiers as appropriate, at whatever pace you're comfortable with.
+code without C<NEXT>, and migrate individual source files to use C<Class::C3>
+or method modifiers as appropriate, at whatever pace you're comfortable with.
 
 =head1 WARNINGS
 
 This module will warn once for each package using NEXT. It uses
 L<warnings::register>, and so can be disabled like by adding C<no warnings
-'Class::C3::Adopt::NEXT';> to each package which generates a warning, or
-adding C<use Class::C3::Adopt::NEXT -no_warn;>, or disable multiple modules at
-once by saying:
+'Class::C3::Adopt::NEXT';> to each package which generates a warning, or adding
+C<use Class::C3::Adopt::NEXT -no_warn;>, or disable multiple modules at once by
+saying:
 
     no Class::C3::Adopt::NEXT qw/ Module1 Module2 Module3 /;
 
@@ -157,7 +157,7 @@
 
     sub yourmethod {
         my $self = shift;
-        
+
         # $self->NEXT::yourmethod(@_); becomes
         $self->maybe::next::method();
     }
@@ -171,10 +171,10 @@
 
 On systems with L<Class::C3::XS> present, this will automatically be used to
 speed up method re-dispatch. If you are running perl version 5.9.5 or greater
-then the C3 method resolution algorithm is included in perl. Correct use
-of L<MRO::Compat> as shown above allows your code to be seamlessly forward
-and backwards compatible, taking advantage of native versions if available,
-but falling back to using pure perl C<Class::C3>.
+then the C3 method resolution algorithm is included in perl. Correct use of
+L<MRO::Compat> as shown above allows your code to be seamlessly forward and
+backwards compatible, taking advantage of native versions if available, but
+falling back to using pure perl C<Class::C3>.
 
 =head2 Writing new code
 
@@ -211,20 +211,20 @@
 cannot be resolved to a simple C3 hierarchy. In that case, this module will
 fall back to using C<NEXT>. In this case a warning will be emitted.
 
-Because calculating the MRO of every class every time C<< ->NEXT::foo >> is used
-from within it is too expensive, runtime manipulations of C<@ISA> are
+Because calculating the MRO of every class every time C<< ->NEXT::foo >> is
+used from within it is too expensive, runtime manipulations of C<@ISA> are
 prohibited.
 
 =head1 FUNCTIONS
 
-This module replaces C<NEXT::AUTOLOAD> with it's own version. If warnings
-are enabled then a warning will be emitted on the first use of C<NEXT> by
-each package.
+This module replaces C<NEXT::AUTOLOAD> with it's own version. If warnings are
+enabled then a warning will be emitted on the first use of C<NEXT> by each
+package.
 
 =head1 SEE ALSO
 
-L<MRO::Compat> and L<Class::C3> for method re-dispatch and L<Moose> for
-method modifiers and L<roles|Moose::Role>.
+L<MRO::Compat> and L<Class::C3> for method re-dispatch and L<Moose> for method
+modifiers and L<roles|Moose::Role>.
 
 L<NEXT> for documentation on the functionality you'll be removing.
 
@@ -236,7 +236,7 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (c) 2008  Florian Ragwitz
+Copyright (c) 2008, 2009  Florian Ragwitz
 
 You may distribute this code under the same terms as Perl itself.
 




More information about the Pkg-perl-cvs-commits mailing list