Subject: | MS Windows compatibility fix |
Please consider enclosed patch that makes Lingua-Ident-1.7 compatible with dmake used on MS Windows (strawberry perl).
The trouble was "DATA" target in Makefile which was in collision with "data" directory (Windows filesystem is case insensitive) - I have simply renamed Makefile target to DATATARGET
--
kmx
The trouble was "DATA" target in Makefile which was in collision with "data" directory (Windows filesystem is case insensitive) - I have simply renamed Makefile target to DATATARGET
--
kmx
Subject: | Lingua-Ident-1.7_patched.diff |
diff -ru Lingua-Ident-1.7/Makefile.PL Lingua-Ident-1.7_patched/Makefile.PL
--- Lingua-Ident-1.7/Makefile.PL 2010-05-14 16:54:29.000000000 +0200
+++ Lingua-Ident-1.7_patched/Makefile.PL 2015-06-05 09:53:32.426044300 +0200
@@ -16,7 +16,7 @@
sub postamble
{
'
-DATA ::
+DATATARGET ::
$(PERL) trainlid -s de.iso-8859-1 < data/sample.de > data/data.de
$(PERL) trainlid -s de.utf-8 < data/sample.de.utf-8 > data/data.de.utf-8
$(PERL) trainlid -s en.iso-8859-1 < data/sample.en > data/data.en
@@ -34,7 +34,7 @@
my $make = $self->SUPER::test(@_);
# add dependencies for test targets
- $make =~ s/(test ::)(.*)/$1 DATA $2/g;
+ $make =~ s/(test ::)(.*)/$1 DATATARGET $2/g;
return $make;
}