forked from pool/perl-Text-Hunspell
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-Hunspell?expand=0&rev=3
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
Index: Text-Hunspell-2.02/Makefile.PL
|
|
===================================================================
|
|
--- Text-Hunspell-2.02.orig/Makefile.PL 2010-10-24 13:23:11.000000000 +0200
|
|
+++ Text-Hunspell-2.02/Makefile.PL 2011-04-01 20:11:18.887713482 +0200
|
|
@@ -11,8 +11,8 @@ use Devel::CheckLib;
|
|
my $dlext = $Config{dlext} || 'so';
|
|
my $candidate_lib;
|
|
for (split " " => $Config{libpth}) {
|
|
- my $lib_path = "$_/libhunspell.$dlext";
|
|
- #warn "Checking $lib_path\n";
|
|
+ my $lib_path = glob("$_/libhunspell*.$dlext");
|
|
+ warn "Checking $lib_path\n";
|
|
if (-e $lib_path) {
|
|
$candidate_lib++;
|
|
warn "Found '$lib_path'. Good.\n";
|
|
@@ -33,7 +33,7 @@ if (0 == $candidate_lib) {
|
|
}
|
|
|
|
check_lib_or_exit(
|
|
- lib => 'hunspell',
|
|
+ lib => 'hunspell-1.3',
|
|
header => 'hunspell/hunspell.h',
|
|
);
|
|
|
|
@@ -44,7 +44,7 @@ my $CC = $ENV{"CXX"} || 'g++';
|
|
WriteMakefile(
|
|
NAME => 'Text::Hunspell',
|
|
VERSION_FROM => 'Hunspell.pm',
|
|
- LIBS => ['-lhunspell'],
|
|
+ LIBS => ['-lhunspell-1.3'],
|
|
CC => $CC,
|
|
LD => '$(CC)',
|
|
PREREQ_PM => {}, # e.g., Module::Name => 1.1
|
|
Index: Text-Hunspell-2.02/t/00-prereq.t
|
|
===================================================================
|
|
--- Text-Hunspell-2.02.orig/t/00-prereq.t 2010-10-24 13:02:27.000000000 +0200
|
|
+++ Text-Hunspell-2.02/t/00-prereq.t 2011-04-01 20:11:53.159207337 +0200
|
|
@@ -4,7 +4,7 @@ use lib qw(inc ../inc);
|
|
use Devel::CheckLib;
|
|
|
|
check_lib_or_exit(
|
|
- lib => 'hunspell',
|
|
+ lib => 'hunspell-1.3',
|
|
header => 'hunspell/hunspell.h',
|
|
);
|
|
|