Alien-Hunspell
view release on metacpan or search on metacpan
# trouble, so we're using a prepatched copy that already has been autoreconf'd
url => "https://github.com/PerlAlien/hunspell/archive/alien-$version.tar.gz",
version => qr/^([0-9\.]+)\\.[0-9]+.tar\.gz$/,
);
plugin 'Extract' => 'tar.gz';
plugin 'Build::Autoconf' => (
ffi => 1,
);
my @acflags;
unshift @acflags, '--disable-nls' if $^O =~ /^(?:MSWin32|darwin|freebsd)/;
build [
"%{configure} --disable-shared --enable-static @acflags",
'%{make}',
'%{make} install',
];
ffi {
build [
"%{configure} --disable-static --enable-shared --libdir=%{.install.autoconf_prefix}/dynamic @acflags",
'%{make}',
'%{make} install',
];
};
};
workflow = linux
workflow = macos-share
workflow = macos-system
workflow = windows
diag_preamble = | $post_diag = sub
diag_preamble = | {
diag_preamble = | eval {
diag_preamble = | require Alien::Hunspell;
diag_preamble = | diag 'Alien::Hunspell->cflags = ' . Alien::Hunspell->cflags;
diag_preamble = | diag 'Alien::Hunspell->libs = ' . Alien::Hunspell->libs;
diag_preamble = | diag 'Alien::Hunspell->dynamic_libs = ', $_ for Alien::Hunspell->dynamic_libs;
diag_preamble = | };
diag_preamble = | eval {
diag_preamble = | require ExtUtils::CppGuess;
diag_preamble = | my %cppguess = ExtUtils::CppGuess->new->module_build_options;
diag_preamble = | diag 'C++ Guess compiler = ' . $cppguess{extra_compiler_flags};
diag_preamble = | diag 'C++ Guess linker = ' . $cppguess{extra_linker_flags};
diag_preamble = | };
diag_preamble = | };
[AlienBuild]
[RemovePrereqs]
remove = strict
remove = warnings
remove = base
remove = lib
t/00_diag.t view on Meta::CPAN
Path::Tiny
Test2::Require
Test2::V0
Test::Alien::CPP
);
$post_diag = sub
{
eval {
require Alien::Hunspell;
diag 'Alien::Hunspell->cflags = ' . Alien::Hunspell->cflags;
diag 'Alien::Hunspell->libs = ' . Alien::Hunspell->libs;
diag 'Alien::Hunspell->dynamic_libs = ', $_ for Alien::Hunspell->dynamic_libs;
};
eval {
require ExtUtils::CppGuess;
my %cppguess = ExtUtils::CppGuess->new->module_build_options;
diag 'C++ Guess compiler = ' . $cppguess{extra_compiler_flags};
diag 'C++ Guess linker = ' . $cppguess{extra_linker_flags};
};
};
my @modules = sort keys %modules;
sub spacer ()
{
diag '';
diag '';
diag '';
( run in 1.689 second using v1.01-cache-2.11-cpan-94b05bcf43c )