Search-Xapian
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
my $CCFLAGS = $Config{'ccflags'};
# Perl is built with -Wdeclaration-after-statement on RHEL5 - this isn't
# meaningful for C++ - it only emits a warning but it's easy to fix.
$CCFLAGS =~ s/(?:^|\s+)-Wdeclaration-after-statement(?:\s+|$)/ /;
# The generated code causes "variable may be used uninitialized" warnings
# if Perl was built with -Wall.
$CCFLAGS =~ s/(^|\s+)-Wall(\s+|$)/$1-Wall -Wno-uninitialized$2/;
if (exists $var{CPPFLAGS}) {
$CCFLAGS .= ' ' . $var{CPPFLAGS};
} elsif (exists $ENV{CPPFLAGS}) {
$CCFLAGS .= ' ' . $ENV{CPPFLAGS};
}
if (exists $var{CXXFLAGS}) {
$CCFLAGS .= ' ' . $var{CXXFLAGS};
} elsif (exists $ENV{CXXFLAGS}) {
$CCFLAGS .= ' ' . $ENV{CXXFLAGS};
}
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
push @writemakefile_args, (
'NAME' => 'Search::Xapian',
'VERSION_FROM' => 'Xapian.pm', # finds $VERSION
'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'Xapian.pm', # retrieve abstract from module
t/symbol-test.t view on Meta::CPAN
my ($srcdir) = ($0 =~ m!(.*/)!);
chdir("${srcdir}symbol-test") or die $!;
open ARGS, "../../makefile-pl-args" or die $!;
my @args = <ARGS>;
close ARGS;
chomp @args;
# Avoid inheriting values with Search/Xapian path in.
delete $ENV{LD};
delete $ENV{MAKEFLAGS};
system($^X, "Makefile.PL", @args) == 0 or die $!;
system("make 2>&1") == 0 or die $!;
use lib (
# For shared objects when built with uninstalled xapian-core (libtool):
"blib/arch/auto/SymbolTest/.libs",
# For shared objects when built with installed xapian-core (no libtool):
"blib/arch/auto/SymbolTest",
# For .pm files:
( run in 0.743 second using v1.01-cache-2.11-cpan-8d75d55dd25 )