-# $Id$
use strict;
use warnings;
-use inc::Module::Install 0.91;
+use inc::Module::Install 1;
name 'Class-Accessor-Grouped';
license 'perl';
-perl_version '5.006001';
+perl_version '5.006002';
all_from 'lib/Class/Accessor/Grouped.pm';
requires 'Carp';
requires 'Scalar::Util';
-requires 'MRO::Compat';
+requires 'MRO::Compat' if $] < 5.009_005;
requires 'Class::Inspector';
-requires 'Sub::Name' => '0.04';
-feature 'XS Accessor Support',
- -default => 0,
- 'Class::XSAccessor' => 0;
+if (can_cc or $Module::Install::AUTHOR) {
+ requires 'Sub::Name' => '0.05';
-test_requires 'Sub::Identify';
+ # when changing don't forget to adjust lib/Class/Accessor/Grouped.pm as well
+ requires 'Class::XSAccessor' => '1.13'
+ if $] > '5.008';
+}
+
+test_requires 'Test::More' => '0.94';
+test_requires 'Test::Exception' => '0.31';
clean_files "Class-Accessor-Grouped-* t/var";
if (-e 'MANIFEST.SKIP') {
system('pod2text lib/Class/Accessor/Grouped.pm > README');
+ realclean_files 'README';
}
-auto_provides;
auto_install;
-resources repository =>
-'http://dev.catalyst.perl.org/repos/bast/trunk/Class-Accessor-Grouped/';
+resources repository => 'git://git.shadowcat.co.uk/p5sagit/Class-Accessor-Grouped.git';
WriteAll;
+if ($Module::Install::AUTHOR) {
+ @{Meta->{values}{requires}} = grep
+ { $_->[0] !~ /^ (?: Class\:\:XSAccessor | Sub\:\:Name | MRO\:\:Compat ) $/x }
+ @{Meta->{values}{requires}}
+ ;
+ print "Regenerating META with XS requires excluded\n";
+ Meta->write;
+}