Alien-automake
view release on metacpan or search on metacpan
EOF
s{echo 'AC''_INIT' > conftest/conftest.ac}{$replace};
$replace = <<'END_OF_PATCH';
printf '%s\n' > conftest/conftest.ac \
'AC'"_PREREQ([$required_autoconf_version])" \
'AC''_INIT([smoke-test], [1])' \
'AC''_OUTPUT'
END_OF_PATCH
s{echo 'AC'"_PREREQ\(\[\$required_autoconf_version\]\)" > conftest/conftest.ac}{$replace};
});
Path::Tiny->new('configure')->chmod(0755);
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20903
# bug in automake: it puts the @datadir@ in double quotes
# in one place in bin/aclocal, which causes Perl to barf
# if prefix has an at sign (@) in it. This is commonly
# the case when using perlbrew.
Path::Tiny->new('bin/aclocal.in')->edit_lines(sub {
s/"\@datadir\@/'\@datadir\@'."/g;
});
( run in 0.359 second using v1.01-cache-2.11-cpan-496ff517765 )