From: Matt S Trout Date: Thu, 25 Mar 2010 09:00:39 +0000 (+0000) Subject: nuke Distar since I don't have time to make this go yet X-Git-Tag: v0.9.4~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd50eab621a6b4c1ccb1de5eb617c0ca48d6126a;p=p5sagit%2FApp-FatPacker.git nuke Distar since I don't have time to make this go yet --- diff --git a/inc/Distar.pm b/inc/Distar.pm deleted file mode 100644 index 4c628a5..0000000 --- a/inc/Distar.pm +++ /dev/null @@ -1,39 +0,0 @@ -package # in case this escapes being no_index'ed in META.yml - inc::Distar; # this horrible little trick hides us from PAUSE. INVISIBUL! - -use strict; -use warnings FATAL => 'all'; - -my $already; - -my $AUTHOR; - -my @do; - -my %whoami; - -sub import { - die "Can't call import() twice, last called from: ${already}" - if $already; - $already = join(' ', caller); - strict->import; - warnings->import(FATAL => 'all'); - my $class = shift; - if (-e 'inc/whoami.pm') { - %whoami = %{do 'inc/whoami.pm' or die "Failed to eval inc/whoami.pm: $@"}; - } else { - $AUTHOR = 1; - require inc::Distar::Guesswork; - %whoami = %{inc::Distar::Guesswork::guess(@_)}; - } - push @do, sub { - require ExtUtils::MakeMaker; - ExtUtils::MakeMaker::WriteMakefile(%whoami) - }; -} - -END { - foreach my $do (@do) { $do->() } -} - -1; diff --git a/inc/Distar/Guesswork.pm b/inc/Distar/Guesswork.pm deleted file mode 100644 index 2d5ece8..0000000 --- a/inc/Distar/Guesswork.pm +++ /dev/null @@ -1,19 +0,0 @@ -package inc::Distar::Guesswork; - -use strict; -use warnings FATAL => 'all'; - -use Cwd qw(cwd); -use File::Spec::Functions qw(splitdir catdir catfile); - -sub guess { - my $here = (splitdir cwd)[-1]; - my @parts = split('-', $here); - my $last = pop @parts; - { - NAME => join('::',@parts,$last), - VERSION_FROM => catfile(catdir('lib', @parts), "${last}.pm"), - } -} - -1;