Skip to content

Instantly share code, notes, and snippets.

@kazeburo
Created April 6, 2012 10:07
Show Gist options
  • Save kazeburo/2318616 to your computer and use it in GitHub Desktop.
Save kazeburo/2318616 to your computer and use it in GitHub Desktop.
common::sense Makefile.PL
--- 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