| 1 | use strict; use warnings; | ||
| 2 | package Module::Compile::Opt; | ||
| 3 | |||
| 4 | # TODO; What is this module for? | ||
| 5 | # sub import { | ||
| 6 | # my ($class, @args) = @_; | ||
| 7 | # my $opts = $class->get_options(@args) | ||
| 8 | # if $class->can('get_options'); | ||
| 9 | # $class->sanity_check($opts); | ||
| 10 | # require Module::Compile; | ||
| 11 | # require Module::Compile::Ext; | ||
| 12 | # Module::Compile::Ext->import(@{$opts->{ext}}); | ||
| 13 | # | ||
| 14 | # # put coderef into @INC | ||
| 15 | # # Store PERL5OPT in .author | ||
| 16 | # # In Module::Compile, complain if PERL5OPT != .author/PERL5OPT | ||
| 17 | # } | ||
| 18 | |||
| 19 | sub sanity_check { | ||
| 20 | my $class = shift; | ||
| 21 | die unless -e 'inc' and -e 'Makefile.PL'; | ||
| 22 | } | ||
| 23 | |||
| 24 | 1; |