[Reproducible-commits] [libextutils-depends-perl] 170/187: Imported Upstream version 0.401
Maria Valentina Marin Rodrigues
akira-guest at moszumanska.debian.org
Wed Jan 21 21:17:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
akira-guest pushed a commit to branch pu/reproducible_builds
in repository libextutils-depends-perl.
commit 5c8ad2c333c2cbc8d080dac80509415d30f55989
Author: gregor herrmann <gregoa at debian.org>
Date: Sun Aug 24 20:27:00 2014 -0700
Imported Upstream version 0.401
---
Changes | 7 ++++++
MANIFEST | 2 ++
META.json | 2 +-
META.yml | 2 +-
META.json => MYMETA.json | 4 ++--
META.yml => MYMETA.yml | 4 ++--
lib/ExtUtils/Depends.pm | 2 +-
t/02_save_load.t | 58 +++++++++++++++++++++++++-----------------------
8 files changed, 46 insertions(+), 35 deletions(-)
diff --git a/Changes b/Changes
index d60bba6..60ee1dd 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,12 @@
Revision history for Perl extension ExtUtils::Depends.
+0.401 Sat Aug 23 14:20:11 IRKT 2014
+ - Add README changes created by 'make dist' from the POD
+ - Rename test modules
+ - Test old/new schemes with .pm files
+ - Move old/new scheme tests from middle of other stuff to end
+ - Rename test packages to 8.3 unique
+
0.400 Sun Aug 10 13:58:24 CEST 2014
- In addition to the package variables $inc, $libs and @typemaps, write an
'Inline' method to <package>::Install::Files for easier interoperability
diff --git a/MANIFEST b/MANIFEST
index 13b4a10..eea3748 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -3,6 +3,8 @@ lib/ExtUtils/Depends.pm
Makefile.PL
MANIFEST This list of files
MANIFEST.SKIP
+MYMETA.json
+MYMETA.yml
perl-ExtUtils-Depends.spec.in
README
t/01_load.t
diff --git a/META.json b/META.json
index 19f2739..9780c2b 100644
--- a/META.json
+++ b/META.json
@@ -73,5 +73,5 @@
},
"x_MailingList" : "https://mail.gnome.org/mailman/listinfo/gtk-perl-list"
},
- "version" : "0.400"
+ "version" : "0.401"
}
diff --git a/META.yml b/META.yml
index 3c5c7a7..74bfc68 100644
--- a/META.yml
+++ b/META.yml
@@ -38,4 +38,4 @@ resources:
homepage: http://gtk2-perl.sourceforge.net
license: http://dev.perl.org/licenses/
repository: git://git.gnome.org/perl-ExtUtils-Depends
-version: '0.400'
+version: '0.401'
diff --git a/META.json b/MYMETA.json
similarity index 97%
copy from META.json
copy to MYMETA.json
index 19f2739..8855c4f 100644
--- a/META.json
+++ b/MYMETA.json
@@ -3,7 +3,7 @@
"author" : [
"Gtk2-Perl Team <gtk-perl-list at gnome dot org>"
],
- "dynamic_config" : 1,
+ "dynamic_config" : 0,
"generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.141520",
"keywords" : [
"XS",
@@ -73,5 +73,5 @@
},
"x_MailingList" : "https://mail.gnome.org/mailman/listinfo/gtk-perl-list"
},
- "version" : "0.400"
+ "version" : "0.401"
}
diff --git a/META.yml b/MYMETA.yml
similarity index 96%
copy from META.yml
copy to MYMETA.yml
index 3c5c7a7..9ca1ef0 100644
--- a/META.yml
+++ b/MYMETA.yml
@@ -10,7 +10,7 @@ configure_requires:
ExtUtils::MakeMaker: '0'
File::Spec: '0'
IO::File: '0'
-dynamic_config: 1
+dynamic_config: 0
generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.141520'
keywords:
- XS
@@ -38,4 +38,4 @@ resources:
homepage: http://gtk2-perl.sourceforge.net
license: http://dev.perl.org/licenses/
repository: git://git.gnome.org/perl-ExtUtils-Depends
-version: '0.400'
+version: '0.401'
diff --git a/lib/ExtUtils/Depends.pm b/lib/ExtUtils/Depends.pm
index 22291fd..05ba8d4 100644
--- a/lib/ExtUtils/Depends.pm
+++ b/lib/ExtUtils/Depends.pm
@@ -12,7 +12,7 @@ use File::Find;
use File::Spec;
use Data::Dumper;
-our $VERSION = '0.400';
+our $VERSION = '0.401';
sub import {
my $class = shift;
diff --git a/t/02_save_load.t b/t/02_save_load.t
index 3e52c7d..eaf1f72 100644
--- a/t/02_save_load.t
+++ b/t/02_save_load.t
@@ -7,6 +7,8 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/lib";
use TestHelper;
+use File::Path 'mkpath';
+use File::Spec::Functions 'catdir';
use ExtUtils::Depends;
@@ -40,34 +42,6 @@ my @installed_files = qw(dep.h
dep-private.h);
$dep_info->install (@installed_files);
-my $INC_FRAG = '-Ddistinctive';
-map { make_fake($_) } qw(Fakenew Fakeold);
-sub Fakenew::Install::Files::Inline { +{ INC => $INC_FRAG } }
-sub Fakenew::Install::Files::deps { qw(Fakeold) }
-{
- no warnings 'once';
- @Fakeold::Install::Files::deps = qw(Fakenew);
- $Fakeold::Install::Files::inc = $INC_FRAG;
- $Fakeold::Install::Files::libs = '';
-}
-sub make_fake {
- my $class = shift . '::Install::Files';
- my @pieces = split '::', $class;
- require File::Spec;
- my $pm = join('/', @pieces) . '.pm';
- $INC{$pm} = File::Spec->catdir(qw(build fake), split '/', $pm);
-}
-sub test_load {
- my ($info, $msg) = @_;
- my $install_part = qr|Fake.*Install|;
- like ($info->{inc}, $install_part, "$msg inc generic");
- like ($info->{inc}, qr/$INC_FRAG/, "$msg inc specific");
- ok (scalar(grep { /Fake/ } @{$info->{deps}}), $msg);
- ok (exists $info->{libs}, $msg);
-}
-test_load (ExtUtils::Depends::load('Fakenew'), 'load new scheme');
-test_load (ExtUtils::Depends::load('Fakeold'), 'load old scheme');
-
use Data::Dumper;
$Data::Dumper::Terse = 1;
$dep_info->save_config (catfile $tmp_inc, qw(DepTest Install Files.pm));
@@ -148,4 +122,32 @@ is_deeply ([ DepTest::Install::Files->deps ], [], 'api check deps method');
# --------------------------------------------------------------------------- #
+my $INC_FRAG = '-Ddistinctive';
+make_test_pkg('PSnew', <<EOF);
+sub Inline { +{ INC => '$INC_FRAG' } }
+sub deps { qw(PSold) }
+EOF
+make_test_pkg('PSold', "\@deps = qw(PSnew); \$inc = '$INC_FRAG';");
+sub make_test_pkg {
+ my ($base, $text) = @_;
+ my $dir = catdir($tmp_inc, $base, qw(Install));
+ mkpath($dir, 0, 0711);
+ local *FH;
+ open FH, '>', catfile($dir, 'Files.pm');
+ print FH sprintf "package %s;\n%s\n1;\n", $base . '::Install::Files', $text;
+ close FH;
+}
+sub test_load {
+ my ($info, $msg) = @_;
+ my $install_part = qr|PS.*Install|;
+ like ($info->{inc}, $install_part, "$msg inc generic");
+ like ($info->{inc}, qr/$INC_FRAG/, "$msg inc specific");
+ ok (scalar(grep { /PS/ } @{$info->{deps}}), $msg);
+ ok (exists $info->{libs}, $msg);
+}
+test_load (ExtUtils::Depends::load('PSnew'), 'load new scheme');
+test_load (ExtUtils::Depends::load('PSold'), 'load old scheme');
+
+# --------------------------------------------------------------------------- #
+
done_testing;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/libextutils-depends-perl.git
More information about the Reproducible-commits
mailing list