1. Shlomi Fish
  2. perl-HTML-Strip-Whitespace

Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed c99d8ff

Added the Build.PL file instead of Makefile.PL and got the tests to
pass.

  • Participants
  • Parent commits b84a96e
  • Branches default

Comments (0)

Files changed (3)

File Build.PL

View file
+use strict;
+use warnings;
+
+use Module::Build;
+
+my $build = Module::Build->new(
+    'module_name' => "HTML::Strip::Whitespace",
+    'requires' => 
+    {
+           'HTML::TokeParser::Simple' => 0,
+
+    },
+    'build_requires' =>
+    {
+        'Test::More' => 0,
+    },
+    'license' => "mit",
+    create_makefile_pl => 'traditional',
+);
+$build->create_build_script;

File Makefile.PL

-use 5.004;
-use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
-WriteMakefile(
-    NAME              => 'HTML::Strip::Whitespace',
-    VERSION_FROM      => 'lib/HTML/Strip/Whitespace.pm', # finds $VERSION
-    PREREQ_PM         => 
-    {
-        'Test::More' => 0,
-        'HTML::TokeParser::Simple' => 0,
-    }, 
-    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
-      (ABSTRACT_FROM  => 'lib/HTML/Strip/Whitespace.pm', # retrieve abstract from module
-       AUTHOR         => 'Shlomi Fish <shlomif@iglu.org.il>') : ()),
-);

File lib/HTML/Strip/Whitespace.pm

View file
 use HTML::TokeParser::Simple;
 
 require Exporter;
-use AutoLoader qw(AUTOLOAD);
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
 @ISA = qw(Exporter);