Navigation Menu

Skip to content

Commit

Permalink
modernize Makefile.PL
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 8, 2012
1 parent eeaf2f0 commit 028d48e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.58 2012-03-07 00:00:00
2.58 2012-03-08 00:00:00
- Added support for MOJO_LISTEN environment variable.
- Removed listen attribute from Mojo::Server::Morbo.
- Improved documentation.
Expand Down
42 changes: 16 additions & 26 deletions Makefile.PL
Expand Up @@ -7,37 +7,27 @@ use warnings;
# it's not whether you win or lose, it's how drunk you get."
use ExtUtils::MakeMaker;

my ($mm) = $ExtUtils::MakeMaker::VERSION =~ /^([^_]+)/;

WriteMakefile(
NAME => 'Mojolicious',
VERSION_FROM => 'lib/Mojolicious.pm',
ABSTRACT => 'Real-time web framework',
AUTHOR => 'Sebastian Riedel <sri@cpan.org>',

($mm < 6.3002 ? () : ('LICENSE' => 'artistic_2')),

( $mm < 6.46
? ()
: (
META_MERGE => {
requires => {perl => '5.010001'},
resources => {
homepage => 'http://mojolicio.us',
license => 'http://dev.perl.org/licenses/',
MailingList => 'http://groups.google.com/group/mojolicious',
repository => 'http://github.com/kraih/mojo',
bugtracker => 'http://github.com/kraih/mojo/issues'
},
no_index => {directory => [qw/t/]}
},
META_ADD => {
build_requires => {},
configure_requires => {}
},
)
),

LICENSE => 'artistic_2',
META_MERGE => {
requires => {perl => '5.010001'},
resources => {
homepage => 'http://mojolicio.us',
license => 'http://dev.perl.org/licenses/',
MailingList => 'http://groups.google.com/group/mojolicious',
repository => 'http://github.com/kraih/mojo',
bugtracker => 'http://github.com/kraih/mojo/issues'
},
no_index => {directory => [qw/t/]}
},
META_ADD => {
build_requires => {},
configure_requires => {}
},
EXE_FILES => ['script/hypnotoad', 'script/mojo', 'script/morbo'],
test => {TESTS => 't/*.t t/*/*.t'}
);

0 comments on commit 028d48e

Please sign in to comment.