[Reproducible-commits] [libextutils-depends-perl] 11/187: moved to new ExtUtils::PkgConfig module

Maria Valentina Marin Rodrigues akira-guest at moszumanska.debian.org
Wed Jan 21 21:16:43 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 1b3684c8bbfc3d3674ddc1fdac4c05769a82bd24
Author: x-rwmcfa1 <x-rwmcfa1 at localhost>
Date:   Wed Sep 17 04:07:37 2003 +0000

    moved to new ExtUtils::PkgConfig module
    
    	* Glib/PkgConfig.pm: moved to new ExtUtils::PkgConfig module
    
    	* Glib/MANIFEST: PkgConfig.pm removed from manifest
    
    	* ExtUtils-Depends/Makefile.PL, ExtUtils-PkgConfig/Makefile.PL,
    	Glade/Makefile.PL, Glib/Makefile.PL, Gnome2/Makefile.PL,
    	GnomeCanvas/Makefile.PL, GnomePrint2/Makefile.PL, Gtk2/Makefile.PL,
    	GtkSpell/Makefile.PL: new auto-dependancy system implemented
    
    	* Glade/perl-Gtk2-GladeXML.spec.in, Glib/perl-Glib.spec.in,
    	Gnome2/perl-Gnome2.spec.in, GnomeCanvas/perl-Gnome2-Canvas.spec.in,
    	GnomePrint2/perl-Gnome2-Print.spec.in, Gtk2/perl-Gtk2.spec.in,
    	GtkSpell/perl-Gtk2-Spell.spec.in: use new auto-dependancy system
    
    	* ExtUtils-PkgConfig/.cvsignore, ExtUtils-PkgConfig/README: initial
    	import
    
    svn path=/trunk/; revision=17
---
 Makefile.PL | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 6b4b908..1ba4ee0 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -18,15 +18,26 @@ sub postamble
 		      rpms/SPECS rpms/SRPMS};
 	my $cwd = getcwd();
 
+	my %subs = (
+		'VERSION' => '$(VERSION)',
+		'SOURCE' => '$(DISTNAME)-$(VERSION).tar.gz',
+	);
+	
+	my $substitute = '$(PERL) -npe \''.join('; ', map {
+			"s/\\\@$_\\\@/$subs{$_}/g";
+		} keys %subs).'\'';
+
 "
 realclean ::
-	-rm -f perl-\$(DISTNAME).spec
+	-\$(RM_F) perl-\$(DISTNAME).spec
 
 rpms/:
 	-mkdir @dirs
 
+SUBSTITUTE=$substitute
+
 perl-\$(DISTNAME).spec: perl-\$(DISTNAME).spec.in \$(VERSION_FROM) Makefile
-	sed -e \"s/\@VERSION\@/\$(VERSION)/g\" -e \"s/\@SOURCE\@/\$(DISTNAME)-\$(VERSION).tar.gz/g\" \$< > \$@
+	\$(SUBSTITUTE) \$+ > \$@
 
 dist-rpms: Makefile dist perl-\$(DISTNAME).spec rpms/
 	cp \$(DISTNAME)-\$(VERSION).tar.gz rpms/SOURCES/

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