[Jifty-commit] r6359 - in Template-Declare/trunk: .
Jifty commits
jifty-commit at lists.jifty.org
Thu Feb 19 23:40:36 EST 2009
Author: jesse
Date: Thu Feb 19 23:40:36 2009
New Revision: 6359
Modified:
Template-Declare/trunk/Makefile.PL
Template-Declare/trunk/t/utils.pl
Log:
Make HTML::Lint an optional dependency
Modified: Template-Declare/trunk/Makefile.PL
==============================================================================
--- Template-Declare/trunk/Makefile.PL (original)
+++ Template-Declare/trunk/Makefile.PL Thu Feb 19 23:40:36 2009
@@ -5,9 +5,8 @@
author 'Jesse Vincent <jesse at bestpractical.com>';
all_from 'lib/Template/Declare.pm';
-requires perl => '5.8.2';
+perl_version '5.8.2';
-build_requires 'HTML::Lint';
build_requires 'Test::More';
build_requires 'Test::Warn';
requires 'Class::Accessor::Fast';
@@ -15,4 +14,9 @@
requires 'Class::ISA';
requires 'String::BufferStack' => 1.10;
+
+feature 'HTML Lint testing' =>
+ -default => 0,
+ 'HTML::Lint' => 0;
+auto_install;
WriteAll;
Modified: Template-Declare/trunk/t/utils.pl
==============================================================================
--- Template-Declare/trunk/t/utils.pl (original)
+++ Template-Declare/trunk/t/utils.pl Thu Feb 19 23:40:36 2009
@@ -2,11 +2,15 @@
use strict;
use Test::More;
-use HTML::Lint;
sub ok_lint {
my $html = shift;
-
+
+ if (! eval { require HTML::Lint } ) {
+ ok(1, "HTML::Lint not installed. Skipping");
+ return
+ }
+
{
my $lint = HTML::Lint->new;
$lint->parse($html);
More information about the Jifty-commit
mailing list