Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use Module::Install.

  • Loading branch information...
commit 452afd7810e31696a5dc13bc3f118c8adbf3b1c5 1 parent 84b42b9
Atsushi Kobayashi authored

Showing 2 changed files with 14 additions and 51 deletions. Show diff stats Hide diff stats

  1. +14 45 Makefile.PL
  2. +0 6 t/00_compile.t
59 Makefile.PL
... ... @@ -1,49 +1,18 @@
1   -use 5.006;
2   -use ExtUtils::MakeMaker;
3   -WriteMakefile1(
4   - LICENSE => 'perl',
5   - MIN_PERL_VERSION => '5.006',
6   - META_MERGE => {
7   - resources => {
8   - repository => 'http://github.com/nekokak/CGI-Application-Plugin-DebugScreen',
9   - },
10   - },
11   - BUILD_REQUIRES => {
12   - 'Test::More' => 0,
13   - },
  1 +use inc::Module::Install;
  2 +name 'CGI-Application-Plugin-DebugScreen';
  3 +all_from 'lib/CGI/Application/Plugin/DebugScreen.pm';
14 4
15   - NAME => 'CGI::Application::Plugin::DebugScreen',
16   - VERSION_FROM => 'lib/CGI/Application/Plugin/DebugScreen.pm',
17   - PREREQ_PM => {
18   - HTML::Template => 0,
19   - Devel::StackTrace => 0,
20   - IO::File => 0,
21   - CGI::Application => 4.0,
22   - CGI::Application::Plugin::ViewCode => 0,
23   - UNIVERSAL::require => '0.10',
24   - },
25   -);
  5 +requires 'HTML::Template';
  6 +requires 'Devel::StackTrace';
  7 +requires 'IO::File';
  8 +requires 'CGI::Application' => '4.0';
  9 +requires 'CGI::Application::Plugin::ViewCode';
  10 +requires 'UNIVERSAL::require';
26 11
27   -sub WriteMakefile1 { #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
28   - my %params=@_;
29   - my $eumm_version=$ExtUtils::MakeMaker::VERSION;
30   - $eumm_version=eval $eumm_version;
31   - die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
32   - die "License not specified" if not exists $params{LICENSE};
33   - if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
34   - #EUMM 6.5502 has problems with BUILD_REQUIRES
35   - $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
36   - delete $params{BUILD_REQUIRES};
37   - }
38   - delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
39   - delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
40   - delete $params{META_MERGE} if $eumm_version < 6.46;
41   - delete $params{META_ADD} if $eumm_version < 6.46;
42   - delete $params{LICENSE} if $eumm_version < 6.31;
43   - delete $params{AUTHOR} if $] < 5.005;
44   - delete $params{ABSTRACT_FROM} if $] < 5.005;
45   - delete $params{BINARY_LOCATION} if $] < 5.005;
  12 +test_requires 'Test::More';
46 13
47   - WriteMakefile(%params);
48   -}
  14 +tests 't/*.t';
  15 +
  16 +auto_set_repository;
  17 +WriteAll;
49 18
6 t/00_compile.t
... ... @@ -1,9 +1,3 @@
1   -package DebugScreen::Test;
2   -
3 1 use Test::More tests => 1;
4   -
5   -use base qw(CGI::Application);
6   -use lib '../lib';
7 2 use_ok('CGI::Application::Plugin::DebugScreen');
8   -
9 3 1;

0 comments on commit 452afd7

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