Permalink
Browse files

Remove Panda::Builder and Shell::Command deps

  • Loading branch information...
ugexe committed Dec 21, 2016
1 parent 3bdbd4e commit 838d86ec2582410233a85253540970b3ab3c7d11
Showing with 7 additions and 3 deletions.
  1. +7 −3 Build.pm
View
@@ -1,9 +1,7 @@
use v6;
-use Panda::Builder;
-use Shell::Command;
use LibraryMake;
-class Build is Panda::Builder {
+class Build {
method build($dir) {
shell('perl -e "use v5.18;"')
or die "\nPerl 5 version requirement not met\n";
@@ -23,6 +21,12 @@ class Build is Panda::Builder {
shell(%vars<MAKE>);
chdir($goback);
}
+
+ # only needed for older versions of panda
+ method isa($what) {
+ return True if $what.^name eq 'Panda::Builder';
+ callsame;
+ }
}
# vim: ft=perl6

0 comments on commit 838d86e

Please sign in to comment.