Created
April 6, 2012 10:07
-
-
Save kazeburo/2318616 to your computer and use it in GitHub Desktop.
common::sense Makefile.PL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- common-sense-3.4.orig/Makefile.PL 2011-01-14 15:36:18.000000000 +0900 | |
+++ common-sense-3.4/Makefile.PL 2012-04-06 18:57:09.000000000 +0900 | |
@@ -1,5 +1,7 @@ | |
use ExtUtils::MakeMaker; | |
+my $version = MM->parse_version("sense.pm.PL"); | |
+ | |
WriteMakefile( | |
dist => { | |
PREOP => 'pod2text sense.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', | |
@@ -7,8 +9,16 @@ | |
SUFFIX => '.gz', | |
}, | |
NAME => "common::sense", | |
- VERSION_FROM => "sense.pm.PL", | |
+ VERSION => $version, | |
PM => { "sense.pm" => '$(INST_LIB)/common/sense.pm' }, | |
clean => { FILES => "sense.pm" }, | |
+ META_ADD => { | |
+ provides => { | |
+ 'common::sense' => { | |
+ file => 'lib/common/sense.pm', | |
+ version => $version, | |
+ } | |
+ } | |
+ } | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment