r52186 - in /trunk/libdbix-class-datetime-epoch-perl: ./ debian/ debian/source/ inc/Module/ inc/Module/Install/ lib/DBIx/Class/DateTime/

ansgar-guest at users.alioth.debian.org ansgar-guest at users.alioth.debian.org
Fri Feb 5 05:17:12 UTC 2010


Author: ansgar-guest
Date: Fri Feb  5 05:17:02 2010
New Revision: 52186

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=52186
Log:
* New upstream release.
* Drop build-dep on libmodule-build-perl.
* Make b-d-i on perl unversioned.
* debian/copyright: Update years of copyright, minor changes for DEP-5.
* Bump Standards-Version to 3.8.4.
* Use source format 3.0 (quilt).
* Add myself to Uploaders.

Added:
    trunk/libdbix-class-datetime-epoch-perl/debian/source/
    trunk/libdbix-class-datetime-epoch-perl/debian/source/format
Modified:
    trunk/libdbix-class-datetime-epoch-perl/Changes
    trunk/libdbix-class-datetime-epoch-perl/META.yml
    trunk/libdbix-class-datetime-epoch-perl/Makefile.PL
    trunk/libdbix-class-datetime-epoch-perl/README
    trunk/libdbix-class-datetime-epoch-perl/debian/changelog
    trunk/libdbix-class-datetime-epoch-perl/debian/control
    trunk/libdbix-class-datetime-epoch-perl/debian/copyright
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install.pm
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Base.pm
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Can.pm
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Fetch.pm
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Makefile.pm
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Metadata.pm
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Win32.pm
    trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/WriteAll.pm
    trunk/libdbix-class-datetime-epoch-perl/lib/DBIx/Class/DateTime/Epoch.pm

Modified: trunk/libdbix-class-datetime-epoch-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/Changes?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/Changes (original)
+++ trunk/libdbix-class-datetime-epoch-perl/Changes Fri Feb  5 05:17:02 2010
@@ -1,4 +1,7 @@
 Revision history for Perl extension DBIx::Class::DateTime::Epoch.
+
+0.06  Thu Jan 28 2009
+    - make sure regex for "int" is case insensitive (RT #54053)
 
 0.05  Mon Jun 01 2009
     [ THING THAT WILL NO LONGER BREAK YOUR CODE ]

Modified: trunk/libdbix-class-datetime-epoch-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/META.yml?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/META.yml (original)
+++ trunk/libdbix-class-datetime-epoch-perl/META.yml Fri Feb  5 05:17:02 2010
@@ -9,7 +9,7 @@
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
-generated_by: 'Module::Install version 0.91'
+generated_by: 'Module::Install version 0.92'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -27,4 +27,4 @@
 resources:
   license: http://dev.perl.org/licenses/
   repository: http://github.com/bricas/dbix-class-datetime-epoch
-version: 0.05
+version: 0.06

Modified: trunk/libdbix-class-datetime-epoch-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/Makefile.PL?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/Makefile.PL (original)
+++ trunk/libdbix-class-datetime-epoch-perl/Makefile.PL Fri Feb  5 05:17:02 2010
@@ -1,4 +1,4 @@
-use inc::Module::Install 0.87;
+use inc::Module::Install 0.92;
 
 if( -e 'MANIFEST.SKIP' ) {
     system( 'pod2text lib/DBIx/Class/DateTime/Epoch.pm > README' );

Modified: trunk/libdbix-class-datetime-epoch-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/README?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/README (original)
+++ trunk/libdbix-class-datetime-epoch-perl/README Fri Feb  5 05:17:02 2010
@@ -4,10 +4,10 @@
 
 SYNOPSIS
         package MySchema::Foo;
-        
-    use base qw( DBIx::Class );
-        
-    __PACKAGE__->load_components( qw( DateTime::Epoch TimeStamp Core ) );
+    
+        use base qw( DBIx::Class );
+    
+        __PACKAGE__->load_components( qw( DateTime::Epoch TimeStamp Core ) );
         __PACKAGE__->add_columns(
             name => {
                 data_type => 'varchar',
@@ -78,7 +78,7 @@
     Adam Paynter <adapay at cpan.org>
 
 COPYRIGHT AND LICENSE
-    Copyright 2006-2009 by Brian Cassidy
+    Copyright 2006-2010 by Brian Cassidy
 
     This library is free software; you can redistribute it and/or modify it
     under the same terms as Perl itself.

Modified: trunk/libdbix-class-datetime-epoch-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/debian/changelog?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/debian/changelog (original)
+++ trunk/libdbix-class-datetime-epoch-perl/debian/changelog Fri Feb  5 05:17:02 2010
@@ -1,11 +1,21 @@
-libdbix-class-datetime-epoch-perl (0.05-2) UNRELEASED; urgency=low
+libdbix-class-datetime-epoch-perl (0.06-1) unstable; urgency=low
 
+  [ gregor herrmann ]
   * debian/control: Changed: Switched Vcs-Browser field to ViewSVN
     (source stanza).
   * debian/control: Changed: (build-)depend on perl instead of perl-
     modules.
 
- -- gregor herrmann <gregoa at debian.org>  Thu, 09 Jul 2009 23:05:38 +0200
+  [ Ansgar Burchardt ]
+  * New upstream release.
+  * Drop build-dep on libmodule-build-perl.
+  * Make b-d-i on perl unversioned.
+  * debian/copyright: Update years of copyright, minor changes for DEP-5.
+  * Bump Standards-Version to 3.8.4.
+  * Use source format 3.0 (quilt).
+  * Add myself to Uploaders.
+
+ -- Ansgar Burchardt <ansgar at 43-1.org>  Fri, 05 Feb 2010 14:15:42 +0900
 
 libdbix-class-datetime-epoch-perl (0.05-1) unstable; urgency=low
 

Modified: trunk/libdbix-class-datetime-epoch-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/debian/control?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/debian/control (original)
+++ trunk/libdbix-class-datetime-epoch-perl/debian/control Fri Feb  5 05:17:02 2010
@@ -1,16 +1,17 @@
 Source: libdbix-class-datetime-epoch-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7), perl (>= 5.10.0) | libmodule-build-perl
+Build-Depends: debhelper (>= 7)
 Build-Depends-Indep: libdatetime-perl, libdbicx-testdatabase-perl,
  libdbix-class-perl (>= 0.08103), libdbix-class-timestamp-perl (>= 0.07),
- libtest-pod-coverage-perl, libtest-pod-perl, perl (>= 5.8.0)
+ libtest-pod-coverage-perl, libtest-pod-perl, perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Damyan Ivanov <dmn at debian.org>, gregor herrmann <gregoa at debian.org>
+Uploaders: Damyan Ivanov <dmn at debian.org>, gregor herrmann <gregoa at debian.org>,
+ Ansgar Burchardt <ansgar at 43-1.org>
 Homepage: http://search.cpan.org/dist/Dbix-Class-DateTime-Epoch/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/
-Standards-Version: 3.8.1
+Standards-Version: 3.8.4
 
 Package: libdbix-class-datetime-epoch-perl
 Architecture: all

Modified: trunk/libdbix-class-datetime-epoch-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/debian/copyright?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/debian/copyright (original)
+++ trunk/libdbix-class-datetime-epoch-perl/debian/copyright Fri Feb  5 05:17:02 2010
@@ -1,26 +1,23 @@
-Format-Specification:
-    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
-Upstream-Maintainer: Brian Cassidy <bricas at cpan.org>
-Upstream-Source: http://search.cpan.org/dist/DBIx-Class-DateTime-Epoch/
-Upstream-Name: DBIx-Class-DateTime-Epoch
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Maintainer: Brian Cassidy <bricas at cpan.org>
+Source: http://search.cpan.org/dist/DBIx-Class-DateTime-Epoch/
+Name: DBIx-Class-DateTime-Epoch
 
 Files: *
-Copyright: 2006-2009, Brian Cassidy <bricas at cpan.org>
-License-Alias: Perl
-License: Artistic | GPL-1+
+Copyright: 2006-2010, Brian Cassidy <bricas at cpan.org>
+License: Artistic or GPL-1+
 
 Files: inc/*
-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+
+Copyright: 2002-2010, Adam Kennedy <adamk at cpan.org>
+ 2002-2010, Audrey Tang <autrijus at autrijus.org>
+ 2002-2010, Brian Ingerson <ingy at cpan.org>
+License: Artistic or GPL-1+
 
 Files: debian/*
 Copyright: 2008, Ernesto Hernández-Novich (USB) <emhn at usb.ve>
  2008, Damyan Ivanov <dmn at debian.org>
  2009, gregor herrmann <gregoa at debian.org>
-License: Artistic | GPL-1+
+License: Artistic or GPL-1+
 
 License: Artistic
     This program is free software; you can redistribute it and/or modify

Added: trunk/libdbix-class-datetime-epoch-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/debian/source/format?rev=52186&op=file
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/debian/source/format (added)
+++ trunk/libdbix-class-datetime-epoch-perl/debian/source/format Fri Feb  5 05:17:02 2010
@@ -1,0 +1,1 @@
+3.0 (quilt)

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install.pm Fri Feb  5 05:17:02 2010
@@ -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.91';
+	$VERSION = '0.92';
 
 	# Storage for the pseudo-singleton
 	$MAIN    = undef;
@@ -348,17 +348,24 @@
 	return $call;
 }
 
+# Done in evals to avoid confusing Perl::MinimumVersion
+eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
 sub _read {
 	local *FH;
-	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]): $!";
 	return $string;
 }
+END_NEW
+sub _read {
+	local *FH;
+	open( FH, "< $_[0]"  ) or die "open($_[0]): $!";
+	my $string = do { local $/; <FH> };
+	close FH or die "close($_[0]): $!";
+	return $string;
+}
+END_OLD
 
 sub _readperl {
 	my $string = Module::Install::_read($_[0]);
@@ -379,18 +386,26 @@
 	return $string;
 }
 
+# Done in evals to avoid confusing Perl::MinimumVersion
+eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
 sub _write {
 	local *FH;
-	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]): $!";
 	}
 	close FH or die "close($_[0]): $!";
 }
+END_NEW
+sub _write {
+	local *FH;
+	open( FH, "> $_[0]"  ) or die "open($_[0]): $!";
+	foreach ( 1 .. $#_ ) {
+		print FH $_[$_] or die "print($_[0]): $!";
+	}
+	close FH or die "close($_[0]): $!";
+}
+END_OLD
 
 # _version is for processing module versions (eg, 1.03_05) not
 # Perl versions (eg, 5.8.1).
@@ -427,4 +442,4 @@
 
 1;
 
-# Copyright 2008 - 2009 Adam Kennedy.
+# Copyright 2008 - 2010 Adam Kennedy.

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Base.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Base.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Base.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Base.pm Fri Feb  5 05:17:02 2010
@@ -4,7 +4,7 @@
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '0.91';
+	$VERSION = '0.92';
 }
 
 # Suspend handler for "redefined" warnings

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Can.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Can.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Can.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Can.pm Fri Feb  5 05:17:02 2010
@@ -9,7 +9,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.91';
+	$VERSION = '0.92';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Fetch.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Fetch.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Fetch.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Fetch.pm Fri Feb  5 05:17:02 2010
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.91';
+	$VERSION = '0.92';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Makefile.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Makefile.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Makefile.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Makefile.pm Fri Feb  5 05:17:02 2010
@@ -7,7 +7,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.91';
+	$VERSION = '0.92';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
@@ -34,6 +34,17 @@
 	}
 }
 
+# Store a cleaned up version of the MakeMaker version,
+# since we need to behave differently in a variety of
+# ways based on the MM version.
+my $makemaker = eval $ExtUtils::MakeMaker::VERSION;
+
+# If we are passed a param, do a "newer than" comparison.
+# Otherwise, just return the MakeMaker version.
+sub makemaker {
+	( @_ < 2 or $makemaker >= eval($_[1]) ) ? $makemaker : 0
+}
+
 sub makemaker_args {
 	my $self = shift;
 	my $args = ( $self->{makemaker_args} ||= {} );
@@ -44,7 +55,7 @@
 # For mm args that take multiple space-seperated args,
 # append an argument to the current list.
 sub makemaker_append {
-	my $self = sShift;
+	my $self = shift;
 	my $name = shift;
 	my $args = $self->makemaker_args;
 	$args->{name} = defined $args->{$name}
@@ -130,12 +141,13 @@
 		# an underscore, even though its own version may contain one!
 		# Hence the funny regexp to get rid of it.  See RT #35800
 		# for details.
-		$self->build_requires( 'ExtUtils::MakeMaker' => $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/ );
-		$self->configure_requires( 'ExtUtils::MakeMaker' => $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/ );
+		my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/;
+		$self->build_requires(     'ExtUtils::MakeMaker' => $v );
+		$self->configure_requires( 'ExtUtils::MakeMaker' => $v );
 	} else {
 		# Allow legacy-compatibility with 5.005 by depending on the
 		# most recent EU:MM that supported 5.005.
-		$self->build_requires( 'ExtUtils::MakeMaker' => 6.42 );
+		$self->build_requires(     'ExtUtils::MakeMaker' => 6.42 );
 		$self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 );
 	}
 
@@ -152,42 +164,62 @@
 		$args->{ABSTRACT} = $self->abstract;
 		$args->{AUTHOR}   = $self->author;
 	}
-	if ( eval($ExtUtils::MakeMaker::VERSION) >= 6.10 ) {
+	if ( $self->makemaker(6.10) ) {
 		$args->{NO_META} = 1;
 	}
-	if ( eval($ExtUtils::MakeMaker::VERSION) > 6.17 and $self->sign ) {
+	if ( $self->makemaker(6.17) and $self->sign ) {
 		$args->{SIGN} = 1;
 	}
 	unless ( $self->is_admin ) {
 		delete $args->{SIGN};
 	}
 
-	# Merge both kinds of requires into prereq_pm
 	my $prereq = ($args->{PREREQ_PM} ||= {});
 	%$prereq = ( %$prereq,
-		map { @$_ }
+		map { @$_ } # flatten [module => version]
 		map { @$_ }
 		grep $_,
-		($self->configure_requires, $self->build_requires, $self->requires)
+		($self->requires)
 	);
 
 	# Remove any reference to perl, PREREQ_PM doesn't support it
 	delete $args->{PREREQ_PM}->{perl};
 
-	# merge both kinds of requires into prereq_pm
+	# Merge both kinds of requires into BUILD_REQUIRES
+	my $build_prereq = ($args->{BUILD_REQUIRES} ||= {});
+	%$build_prereq = ( %$build_prereq,
+		map { @$_ } # flatten [module => version]
+		map { @$_ }
+		grep $_,
+		($self->configure_requires, $self->build_requires)
+	);
+
+	# Remove any reference to perl, BUILD_REQUIRES doesn't support it
+	delete $args->{BUILD_REQUIRES}->{perl};
+
+	# Delete bundled dists from prereq_pm
 	my $subdirs = ($args->{DIR} ||= []);
 	if ($self->bundles) {
 		foreach my $bundle (@{ $self->bundles }) {
 			my ($file, $dir) = @$bundle;
 			push @$subdirs, $dir if -d $dir;
-			delete $prereq->{$file};
+			delete $build_prereq->{$file}; #Delete from build prereqs only
 		}
+	}
+
+	unless ( $self->makemaker('6.55_03') ) {
+		%$prereq = (%$prereq,%$build_prereq);
+		delete $args->{BUILD_REQUIRES};
 	}
 
 	if ( my $perl_version = $self->perl_version ) {
 		eval "use $perl_version; 1"
 			or die "ERROR: perl: Version $] is installed, "
 			. "but we need version >= $perl_version";
+
+		if ( $self->makemaker(6.48) ) {
+			$args->{MIN_PERL_VERSION} = $perl_version;
+		}
 	}
 
 	$args->{INSTALLDIRS} = $self->installdirs;
@@ -265,4 +297,4 @@
 
 __END__
 
-#line 394
+#line 426

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Metadata.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Metadata.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Metadata.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Metadata.pm Fri Feb  5 05:17:02 2010
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.91';
+	$VERSION = '0.92';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
@@ -230,6 +230,8 @@
 		die("The path '$file' does not exist, or is not a file");
 	}
 
+    $self->{values}{all_from} = $file;
+
 	# Some methods pull from POD instead of code.
 	# If there is a matching .pod, use that instead
 	my $pod = $file;
@@ -385,11 +387,10 @@
 	}
 }
 
-sub perl_version_from {
-	my $self = shift;
+sub _extract_perl_version {
 	if (
-		Module::Install::_read($_[0]) =~ m/
-		^
+		$_[0] =~ m/
+		^\s*
 		(?:use|require) \s*
 		v?
 		([\d_\.]+)
@@ -398,6 +399,16 @@
 	) {
 		my $perl_version = $1;
 		$perl_version =~ s{_}{}g;
+		return $perl_version;
+	} else {
+		return;
+	}
+}
+
+sub perl_version_from {
+	my $self = shift;
+	my $perl_version=_extract_perl_version(Module::Install::_read($_[0]));
+	if ($perl_version) {
 		$self->perl_version($perl_version);
 	} else {
 		warn "Cannot determine perl version info from $_[0]\n";
@@ -425,13 +436,12 @@
 	}
 }
 
-sub license_from {
-	my $self = shift;
+sub _extract_license {
 	if (
-		Module::Install::_read($_[0]) =~ m/
+		$_[0] =~ m/
 		(
 			=head \d \s+
-			(?:licen[cs]e|licensing|copyright|legal)\b
+			(?:licen[cs]e|licensing|copyrights?|legal)\b
 			.*?
 		)
 		(=head\\d.*|=cut.*|)
@@ -439,7 +449,8 @@
 	/ixms ) {
 		my $license_text = $1;
 		my @phrases      = (
-			'under the same (?:terms|license) as (?:perl|the perl programming language) itself' => 'perl', 1,
+			'under the same (?:terms|license) as (?:perl|the perl programming language)' => 'perl', 1,
+			'under the terms of (?: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,
@@ -456,20 +467,32 @@
 			'proprietary'                        => 'proprietary', 0,
 		);
 		while ( my ($pattern, $license, $osi) = splice(@phrases, 0, 3) ) {
-			$pattern =~ s{\s+}{\\s+}g;
+			$pattern =~ s#\s+#\\s+#gs;
 			if ( $license_text =~ /\b$pattern\b/i ) {
-				$self->license($license);
-				return 1;
+			        return $license;
 			}
 		}
-	}
-
-	warn "Cannot determine license info from $_[0]\n";
-	return 'unknown';
+	} else {
+	        return;
+	}
+}
+
+sub license_from {
+	my $self = shift;
+	if (my $license=_extract_license(Module::Install::_read($_[0]))) {
+		$self->license($license);
+	} else {
+		warn "Cannot determine license info from $_[0]\n";
+		return 'unknown';
+	}
 }
 
 sub _extract_bugtracker {
-	my @links   = $_[0] =~ m#L<(\Qhttp://rt.cpan.org/\E[^>]+)>#g;
+	my @links   = $_[0] =~ m#L<(
+	 \Qhttp://rt.cpan.org/\E[^>]+|
+	 \Qhttp://github.com/\E[\w_]+/[\w_]+/issues|
+	 \Qhttp://code.google.com/p/\E[\w_\-]+/issues/list
+	 )>#gx;
 	my %links;
 	@links{@links}=();
 	@links=keys %links;
@@ -485,7 +508,7 @@
 		return 0;
 	}
 	if ( @links > 1 ) {
-		warn "Found more than on rt.cpan.org link in $_[0]\n";
+		warn "Found more than one bugtracker link in $_[0]\n";
 		return 0;
 	}
 

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Win32.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Win32.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Win32.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/Win32.pm Fri Feb  5 05:17:02 2010
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.91';
+	$VERSION = '0.92';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/WriteAll.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/WriteAll.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/WriteAll.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/inc/Module/Install/WriteAll.pm Fri Feb  5 05:17:02 2010
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.91';;
+	$VERSION = '0.92';;
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }

Modified: trunk/libdbix-class-datetime-epoch-perl/lib/DBIx/Class/DateTime/Epoch.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-datetime-epoch-perl/lib/DBIx/Class/DateTime/Epoch.pm?rev=52186&op=diff
==============================================================================
--- trunk/libdbix-class-datetime-epoch-perl/lib/DBIx/Class/DateTime/Epoch.pm (original)
+++ trunk/libdbix-class-datetime-epoch-perl/lib/DBIx/Class/DateTime/Epoch.pm Fri Feb  5 05:17:02 2010
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.05';
+our $VERSION = '0.06';
 
 use base qw( DBIx::Class );
 
@@ -39,7 +39,7 @@
 sub _inflate_to_datetime {
     my( $self, $value, $info, @rest ) = @_;
     $self->next::method( $value, $info, @rest )
-        unless $info->{ data_type } =~ m{int} || $info->{ inflate_datetime } eq 'epoch';
+        unless $info->{ data_type } =~ m{int}i || $info->{ inflate_datetime } eq 'epoch';
 
     return DateTime->from_epoch( epoch => $value );
 }
@@ -47,7 +47,7 @@
 sub _deflate_from_datetime {
     my( $self, $value, $info, @rest ) = @_;
     $self->next::method( $value, $info, @rest )
-        unless $info->{ data_type } =~ m{int} || $info->{ inflate_datetime } eq 'epoch';
+        unless $info->{ data_type } =~ m{int}i || $info->{ inflate_datetime } eq 'epoch';
 
     return $value->epoch;
 }
@@ -134,11 +134,11 @@
 
 =over 4
 
-=item * DBIx::Class
+=item * L<DBIx::Class>
 
-=item * DBIx::Class::TimeStamp
+=item * L<DBIx::Class::TimeStamp>
 
-=item * DateTime
+=item * L<DateTime>
 
 =back
 
@@ -150,7 +150,7 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006-2009 by Brian Cassidy
+Copyright 2006-2010 by Brian Cassidy
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself. 




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