Lingua-NATools
view release on metacpan or search on metacpan
inc/MyBuilder.pm view on Meta::CPAN
warn "libnatools will install on $usrlib. Be sure to add it to your LIBRARY_PATH\n"
}
## XXX
# if ($^O ne "MSWin32") {
# # Create and prepare for installation the .pc file if not under windows.
# _interpolate('jspell.pc.in' => 'jspell.pc',
# VERSION => $self->notes('version'),
# EXECPREFIX => $self->install_destination('bin'),
# LIBDIR => $self->install_destination('usrlib'));
# $self->copy_if_modified( from => "jspell.pc",
# to_dir => catdir('blib','pcfile'),
# flatten => 1 );
# $self->copy_if_modified( from => catfile('src','jslib.h'),
# to_dir => catdir('blib','incdir'),
# flatten => 1);
# }
}
sub ACTION_fakeinstall {
my $self = shift;
$self->dispatch("pre_install");
$self->SUPER::ACTION_fakeinstall;
inc/MyBuilder.pm view on Meta::CPAN
my $exe = "nat-$app$EXE";
my $exepath = "_build/apps/$exe";
next if $self->up_to_date(\@deps, $exepath);
_LOG_ " [ld] $exe";
_LD_ $libbuilder => (exe_file => $exepath,
objects => \@deps,
extra_linker_flags => $libs);
$self->copy_if_modified(from => $exepath, to_dir => "blib/script", flatten => 1);
}
}
sub ACTION_create_library {
my $self = shift;
my $libbuilder = $self->notes('libbuilder');
my $LIBEXT = $libbuilder->{libext};
my @objects = map { "_build/objects/$_" } keys %lib_deps;
inc/MyBuilder.pm view on Meta::CPAN
if (!$result) {
print STDERR $stderr;
print STDOUT $stdout;
exit 1;
}
}
my $libdir = catdir($self->blib, 'usrlib');
mkpath( $libdir, 0, 0777 ) unless -d $libdir;
$self->copy_if_modified( from => $libfile,
to_dir => $libdir,
flatten => 1 );
}
sub ACTION_create_test_binaries {
my $self = shift;
my %tests = (
'words' => ['words_t.c'],
'corpus' => ['corpus_t.c'],
( run in 1.537 second using v1.01-cache-2.11-cpan-39bf76dae61 )