[Reproducible-commits] [libextutils-depends-perl] 69/187: [svn-upgrade] Integrating new upstream version, libextutils-depends-perl (0.302)

Maria Valentina Marin Rodrigues akira-guest at moszumanska.debian.org
Wed Jan 21 21:16:50 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 4a9d4492552532385883b816a4088383746bc153
Author: Ryan Niebur <ryan at debian.org>
Date:   Sat Jul 4 18:24:19 2009 +0000

    [svn-upgrade] Integrating new upstream version, libextutils-depends-perl (0.302)
---
 .cvsignore                     |  4 ----
 Changes                        |  4 ++++
 MANIFEST                       |  2 +-
 MANIFEST.SKIP                  |  5 +++++
 META.yml                       | 40 ++++++++++++++++++++++++++++++----------
 Makefile.PL                    | 35 ++++++++++++++++++++++++++++-------
 lib/ExtUtils/Depends.pm        | 36 ++++++++++++++++++++++++++++++++----
 t/inc/DepTest/libDepTest.dll.a |  0
 8 files changed, 100 insertions(+), 26 deletions(-)

diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index 18ddcc1..0000000
--- a/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-blib
-pm_to_blib
-perl-ExtUtils-Depends.spec
diff --git a/Changes b/Changes
index 522ad41..25ca167 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Revision history for Perl extension ExtUtils::Depends.
 
+0.302 Sat Jul  4 15:28:35 CEST 2009
+	- Create import libraries if necessary to fix linking when gcc is used
+	  on MSWin32 (Strawberry Perl, for example).
+
 0.301 Sat Sep  6 20:11:01 CEST 2008
 	- On Cygwin, link directly against the DLLs of dependencies.  Patch by
           Yaakov.
diff --git a/MANIFEST b/MANIFEST
index 1130473..f5ae1f5 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,8 +1,8 @@
-.cvsignore
 Changes
 lib/ExtUtils/Depends.pm
 Makefile.PL
 MANIFEST
+MANIFEST.SKIP
 META.yml
 perl-ExtUtils-Depends.spec.in
 README
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
new file mode 100644
index 0000000..1dea7f4
--- /dev/null
+++ b/MANIFEST.SKIP
@@ -0,0 +1,5 @@
+^blib
+^MAINTAINERS$
+^Makefile$
+^pm_to_blib$
+^\.git
diff --git a/META.yml b/META.yml
index 123cca2..e3ef240 100644
--- a/META.yml
+++ b/META.yml
@@ -1,12 +1,32 @@
 --- #YAML:1.0
-name:                ExtUtils-Depends
-version:             0.301
-abstract:            ~
-license:             ~
-author:              ~
-generated_by:        ExtUtils::MakeMaker version 6.44
-distribution_type:   module
-requires:     
+name:               ExtUtils-Depends
+version:            0.302
+abstract:           ~
+author:  []
+license:            perl
+distribution_type:  module
+configure_requires:
+    ExtUtils::MakeMaker:  0
+build_requires:
+    ExtUtils::MakeMaker:  0
+    Test::More:           0
+requires:
+    Data::Dumper:  0
+    File::Spec:    0
+    IO::File:      0
+    perl:          5.006
+resources:
+    repository:  http://git.gnome.org/cgit/perl-ExtUtils-Depends
+no_index:
+    directory:
+        - t
+        - inc
+    package:  ExtUtils::MM
+generated_by:       ExtUtils::MakeMaker version 6.52
 meta-spec:
-    url:     http://module-build.sourceforge.net/META-spec-v1.3.html
-    version: 1.3
+    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
+    version:  1.4
+keywords:
+    - XS
+    - XS extensions
+    - dependency
diff --git a/Makefile.PL b/Makefile.PL
index ce5d4f5..c6b3634 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -6,13 +6,34 @@ use 5.006;
 use ExtUtils::MakeMaker;
 
 WriteMakefile(
-    'dist'	=> {
-	            PREOP	=> 'pod2text lib/ExtUtils/Depends.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
-	            COMPRESS	=> 'gzip -9v',
-	            SUFFIX	=> '.gz',
-	           },
-    'NAME'	=> 'ExtUtils::Depends',
-    'VERSION_FROM' => 'lib/ExtUtils/Depends.pm',
+	dist => {
+		$^O eq 'MSWin32'
+			? ()
+			: (PREOP => 'pod2text lib/ExtUtils/Depends.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;'),
+		COMPRESS => 'gzip -9v',
+		SUFFIX => '.gz',
+	},
+	NAME => 'ExtUtils::Depends',
+	VERSION_FROM => 'lib/ExtUtils/Depends.pm',
+	PREREQ_PM => {
+		'File::Spec' => 0,
+		'Data::Dumper' => 0,
+		'IO::File' => 0,
+	},
+	MIN_PERL_VERSION => 5.006, #for META.yml
+	META_MERGE => {
+		build_requires => {
+			'Test::More' => 0,
+		},
+		resources => {
+			repository => 'http://git.gnome.org/cgit/perl-ExtUtils-Depends',
+		},
+		keywords => ['XS', 'XS extensions', 'dependency'],
+		no_index => {
+			package => 'ExtUtils::MM',
+		},
+	},
+	LICENSE => 'perl',
 );
 
 use Cwd;
diff --git a/lib/ExtUtils/Depends.pm b/lib/ExtUtils/Depends.pm
index 54e9501..c16440d 100644
--- a/lib/ExtUtils/Depends.pm
+++ b/lib/ExtUtils/Depends.pm
@@ -1,5 +1,5 @@
 #
-# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/ExtUtils-Depends/lib/ExtUtils/Depends.pm,v 1.20 2008/09/06 18:13:47 kaffeetisch Exp $
+# $Id$
 #
 
 package ExtUtils::Depends;
@@ -11,7 +11,7 @@ use File::Find;
 use File::Spec;
 use Data::Dumper;
 
-our $VERSION = '0.301';
+our $VERSION = '0.302';
 
 sub import {
 	my $class = shift;
@@ -282,6 +282,8 @@ sub get_makefile_vars {
 		TYPEMAPS => [@typemaps],
 	);
 
+	$self->build_dll_lib(\%vars) if $^O =~ /MSWin32/;
+
 	# we don't want to provide these if there is no data in them;
 	# that way, the caller can still get default behavior out of
 	# MakeMaker when INC, LIBS and TYPEMAPS are all that are required.
@@ -297,12 +299,19 @@ sub get_makefile_vars {
 	%vars;
 }
 
+sub build_dll_lib {
+	my ($self, $vars) = @_;
+	$vars->{macro} ||= {};
+	$vars->{macro}{'INST_DYNAMIC_LIB'} =
+		'$(INST_ARCHAUTODIR)/$(BASEEXT)$(LIB_EXT)';
+}
+
 sub find_extra_libs {
 	my $self = shift;
 
 	my %mappers = (
-		MSWin32 => sub { $_[0] . '.lib' },
-		cygwin  => sub { $_[0] . '.dll'},
+		MSWin32 => sub { $_[0] . '\.(?:lib|a)' },
+		cygwin	=> sub { $_[0] . '\.dll'},
 	);
 	my $mapper = $mappers{$^O};
 	return () unless defined $mapper;
@@ -331,6 +340,25 @@ sub find_extra_libs {
 	return @found_libs;
 }
 
+# Hook into ExtUtils::MakeMaker to create an import library on MSWin32 when gcc
+# is used.  FIXME: Ideally, this should be done in EU::MM itself.
+package # wrap to fool the CPAN indexer
+	ExtUtils::MM;
+use Config;
+sub static_lib {
+	my $base = shift->SUPER::static_lib(@_);
+
+	return $base unless $^O =~ /MSWin32/ && $Config{cc} =~ /^gcc/i;
+
+	return <<'__EOM__';
+# This isn't actually a static lib, it just has the same name on Win32.
+$(INST_DYNAMIC_LIB): $(INST_DYNAMIC)
+	dlltool --def $(EXPORT_LIST) --output-lib $@ --dllname $(BASEEXT).$(SO) $(INST_DYNAMIC)
+
+dynamic:: $(INST_DYNAMIC_LIB)
+__EOM__
+}
+
 1;
 
 __END__
diff --git a/t/inc/DepTest/libDepTest.dll.a b/t/inc/DepTest/libDepTest.dll.a
new file mode 100644
index 0000000..e69de29

-- 
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