Skip to content
This repository
tag: 1.59_11
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 20 lines (15 sloc) 0.483 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
name 'meta_json';
description 'Support META.json';
author 'Tatsuhiko Miyagawa';

api_version 0.1;

hook pre_configure => sub {
    my $args = shift;

    if (-e "META.json") {
        require JSON;
        $args->{app}->chat("Parsing META.json");
        my $json = do { open my $f, "<", "META.json"; join "", <$f> };
        my $meta = JSON::decode_json($json);
        %{$args->{meta}} = %$meta;
        push @{$args->{deps}}, %{$meta->{configure_requires}};
    }
};

Something went wrong with that request. Please try again.