Permalink
Browse files

* set resources.repository in META.yml

  • Loading branch information...
1 parent 18f3b3d commit 6954116241358725f8d3d2a95bd1425502ae1bdc @eserte committed Sep 13, 2010
Showing with 14 additions and 2 deletions.
  1. +14 −2 Makefile.PL
View
@@ -1,11 +1,23 @@
use ExtUtils::MakeMaker;
-use Config;
+
+eval {
+ if ((getpwuid($<))[0] eq 'eserte' && $ExtUtils::MakeMaker::VERSION < 6.54) {
+ warn <<EOF;
+**********************************************************************
+* WARNING:
+* ExtUtils::MakeMaker too old. META.yml will be imcomplete
+**********************************************************************
+EOF
+ }
+};
WriteMakefile(
'NAME' => 'Tie::Watch',
'VERSION_FROM' => 'Watch.pm',
($] >= 5.005 ?
(ABSTRACT => 'Place watchpoints on Perl (and Tk) variables',
AUTHOR => 'Steve Lidie (Stephen.O.Lidie@Lehigh.EDU)') : ()),
- 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'}
+ 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'},
+ ($ExtUtils::MakeMaker::VERSION >= 6.54 ?
+ (META_ADD => { resources => { repository => 'git://github.com/eserte/Tie-Watch.git' } }) : ()),
);

0 comments on commit 6954116

Please sign in to comment.