Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use Module::Install.

  • Loading branch information...
commit 452afd7810e31696a5dc13bc3f118c8adbf3b1c5 1 parent 84b42b9
@nekokak authored
Showing with 14 additions and 51 deletions.
  1. +14 −45 Makefile.PL
  2. +0 −6 t/00_compile.t
View
59 Makefile.PL
@@ -1,49 +1,18 @@
-use 5.006;
-use ExtUtils::MakeMaker;
-WriteMakefile1(
- LICENSE => 'perl',
- MIN_PERL_VERSION => '5.006',
- META_MERGE => {
- resources => {
- repository => 'http://github.com/nekokak/CGI-Application-Plugin-DebugScreen',
- },
- },
- BUILD_REQUIRES => {
- 'Test::More' => 0,
- },
+use inc::Module::Install;
+name 'CGI-Application-Plugin-DebugScreen';
+all_from 'lib/CGI/Application/Plugin/DebugScreen.pm';
- NAME => 'CGI::Application::Plugin::DebugScreen',
- VERSION_FROM => 'lib/CGI/Application/Plugin/DebugScreen.pm',
- PREREQ_PM => {
- HTML::Template => 0,
- Devel::StackTrace => 0,
- IO::File => 0,
- CGI::Application => 4.0,
- CGI::Application::Plugin::ViewCode => 0,
- UNIVERSAL::require => '0.10',
- },
-);
+requires 'HTML::Template';
+requires 'Devel::StackTrace';
+requires 'IO::File';
+requires 'CGI::Application' => '4.0';
+requires 'CGI::Application::Plugin::ViewCode';
+requires 'UNIVERSAL::require';
-sub WriteMakefile1 { #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
- my %params=@_;
- my $eumm_version=$ExtUtils::MakeMaker::VERSION;
- $eumm_version=eval $eumm_version;
- die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
- die "License not specified" if not exists $params{LICENSE};
- if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
- #EUMM 6.5502 has problems with BUILD_REQUIRES
- $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
- delete $params{BUILD_REQUIRES};
- }
- delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
- delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
- delete $params{META_MERGE} if $eumm_version < 6.46;
- delete $params{META_ADD} if $eumm_version < 6.46;
- delete $params{LICENSE} if $eumm_version < 6.31;
- delete $params{AUTHOR} if $] < 5.005;
- delete $params{ABSTRACT_FROM} if $] < 5.005;
- delete $params{BINARY_LOCATION} if $] < 5.005;
+test_requires 'Test::More';
- WriteMakefile(%params);
-}
+tests 't/*.t';
+
+auto_set_repository;
+WriteAll;
View
6 t/00_compile.t
@@ -1,9 +1,3 @@
-package DebugScreen::Test;
-
use Test::More tests => 1;
-
-use base qw(CGI::Application);
-use lib '../lib';
use_ok('CGI::Application::Plugin::DebugScreen');
-
1;

0 comments on commit 452afd7

Please sign in to comment.
Something went wrong with that request. Please try again.