unbreak build when p5-JSON is installed
from RD Thrush, thanks
This commit is contained in:
parent
2713d05afc
commit
52b21e32fe
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-Makefile_PL,v 1.5 2012/09/15 10:27:22 jasper Exp $
|
||||
--- Makefile.PL.orig Sat Sep 15 12:26:05 2012
|
||||
+++ Makefile.PL Sat Sep 15 12:26:21 2012
|
||||
$OpenBSD: patch-Makefile_PL,v 1.6 2012/09/24 14:33:54 jasper Exp $
|
||||
--- Makefile.PL.orig Fri Jun 15 17:46:45 2012
|
||||
+++ Makefile.PL Mon Sep 24 16:33:20 2012
|
||||
@@ -28,8 +28,7 @@ else
|
||||
" 'perl Makefile.PL -n' to skip installation\n";
|
||||
foreach my $prompt (@prompts)
|
||||
@ -11,3 +11,12 @@ $OpenBSD: patch-Makefile_PL,v 1.5 2012/09/15 10:27:22 jasper Exp $
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +143,7 @@ sub add_prereqs_to_mymeta
|
||||
rename $MYYAML, $YAML;
|
||||
if( eval { require JSON; })
|
||||
{ my $json= JSON->new()->pretty->canonical;
|
||||
- my $meta= $json->decode( slurp( $MYJSON));
|
||||
+ my $meta= $json->decode( slurp( $JSON));
|
||||
$meta->{prereqs}= $prereqs;
|
||||
spit( $JSON, $json->encode( $meta));
|
||||
warn "updated prereqs in $JSON\n";
|
||||
|
Loading…
Reference in New Issue
Block a user