Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 20 lines (15 sloc) 0.483 kb
b9faf18 @miyagawa Added a plugin to parse META.json
authored
1 name 'meta_json';
2 description 'Support META.json';
3 author 'Tatsuhiko Miyagawa';
4
5 api_version 0.1;
6
7 hook pre_configure => sub {
8 my $args = shift;
9
10 if (-e "META.json") {
11 require JSON;
12 $args->{app}->chat("Parsing META.json");
13 my $json = do { open my $f, "<", "META.json"; join "", <$f> };
14 my $meta = JSON::decode_json($json);
15 %{$args->{meta}} = %$meta;
16 push @{$args->{deps}}, %{$meta->{configure_requires}};
17 }
18 };
19
Something went wrong with that request. Please try again.