]> iEval git - apache2-authzcaps.git/commitdiff
Make mod_perl optional, silence smartmatch warnings
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 21:28:40 +0000 (23:28 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 21:29:15 +0000 (23:29 +0200)
Makefile.PL
lib/Apache2/AuthzCaps.pm

index c3bab38569bad3d26b8405559ad550f6a64ba065..d2cd36f2193a31b326be650de3e66f1a1e72fafa 100644 (file)
@@ -7,10 +7,16 @@ WriteMakefile(
   AUTHOR           => 'Marius Gavrilescu <marius@ieval.ro>',
   MIN_PERL_VERSION => '5.14.0',
   LICENSE          => 'perl',
+  SIGN             => 1,
   PREREQ_PM        => {
-       Apache2::Access => 0,
-       Apache2::Const => 0,
-       Apache2::RequestRec => 0,
-       YAML::Any => 0,
+         qw/YAML::Any 0/,
   },
+  META_MERGE       => {
+         dynamic_config => 0,
+         recommends   => {
+                 qw/Apache2::Access     0
+                        Apache2::Const      0
+                        Apache2::RequestRec 0/,
+         }
+  }
 );
index ac16d17d0cf2b4bbdb3b1c9e0f91ef497f83b129..b0ccffc4da58bab532475e4279cd862be9e7bcf3 100644 (file)
@@ -3,10 +3,12 @@ package Apache2::AuthzCaps 0.001;
 use 5.014000;
 use strict;
 use warnings;
+use subs qw/OK DECLINED/;
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
 
-use Apache2::Access;
-use Apache2::Const qw/OK DECLINED/;
-use Apache2::RequestRec;
+use if $ENV{MOD_PERL}, 'Apache2::Access';
+use if $ENV{MOD_PERL}, 'Apache2::Const' => qw/OK DECLINED/;
+use if $ENV{MOD_PERL}, 'Apache2::RequestRec';
 use YAML::Any qw/LoadFile DumpFile/;
 
 use parent qw/Exporter/;
This page took 0.021269 seconds and 4 git commands to generate.