Fix Makefile.PL to use Mouse::Spec
[gitmo/Mouse.git] / lib / Squirrel / Role.pm
CommitLineData
ce2ee568 1package Squirrel::Role;
ce2ee568 2use strict;
3use warnings;
4
382b7340 5use base qw(Squirrel);
6
ce2ee568 7sub _choose_backend {
8 if ( $INC{"Moose/Role.pm"} ) {
9 return {
382b7340 10 backend => 'Moose::Role',
ce2ee568 11 import => \&Moose::Role::import,
382b7340 12 unimport => \&Moose::Role::unimport,
ce2ee568 13 }
382b7340 14 }
15 else {
ce2ee568 16 require Mouse::Role;
17 return {
382b7340 18 backend => 'Mouse::Role',
ce2ee568 19 import => \&Mouse::Role::import,
20 unimport => \&Mouse::Role::unimport,
21 }
22 }
23}
24
ce2ee568 251;
26