o Add RUSSIAN language support

o Enable support for RUSSIAN, SPANISH, ITALIAN and GERMAN languages
o Bump PORTREVISION

PR:		53290
Submitted by:	lev
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2004-03-12 00:45:09 +00:00
parent 91256c15ab
commit c9a60ca29e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103709
3 changed files with 41 additions and 1 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= spamoracle
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://cristal.inria.fr/~xleroy/software/
@ -16,7 +17,6 @@ COMMENT= procmail spam filter written in ML using Bayesian classification
BUILD_DEPENDS= ocaml:${PORTSDIR}/lang/ocaml
USE_REINPLACE= yes
USE_SIZE= yes
post-patch:
@${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \

View file

@ -0,0 +1,11 @@
--- Makefile.orig Thu Mar 11 21:39:28 2004
+++ Makefile Thu Mar 11 21:39:32 2004
@@ -1,7 +1,7 @@
### Configuration section
# The laguages you're interested in, besides English
-LANGUAGES=-DFRENCH #-DSPANISH -DITALIAN -DGERMAN
+LANGUAGES=-DFRENCH -DSPANISH -DITALIAN -DGERMAN -DRUSSIAN
# How to invoke the C preprocessor
CPP=gcc -E -P $(LANGUAGES) -

View file

@ -0,0 +1,29 @@
--- spamoracle-1.2-orig/wordsplit.mlp 2002-08-26 13:35:26 +0400
+++ wordsplit.mlp 2002-10-25 21:04:30 +0400
@@ -35,10 +35,10 @@
aaaaaaeceeeeiiii\
ðnooooo÷ouuuuypy"
-let normalize s =
- for i = 0 to String.length s - 1 do
- s.[i] <- tbl.[Char.code s.[i]]
- done
+let normalize s = s
+(* for i = 0 to String.length s - 1 do
+ s.[i] <- tbl.[Char.code s.[i]]
+ done *)
}
@@ -62,6 +62,10 @@
'\164' (* Euro *)
'Ä' 'Ö' 'Ü' 'ä' 'ö' 'ü' 'ß'
#endif
+#ifdef RUSSIAN
+ 'Á' 'Â' '×' 'Ç' 'Ä' 'Å' '£' 'Ö' 'Ú' 'É' 'Ê' 'Ë' 'Ì' 'Í' 'Î' 'Ï' 'Ð' 'Ò' 'Ó' 'Ô' 'Õ' 'Æ' 'È' 'Ã' 'Þ' 'Û' 'Ý' 'ß' 'Ù' 'Ø' 'Ü' 'À' 'Ñ'
+ 'á' 'â' '÷' 'ç' 'ä' 'å' '³' 'ö' 'ú' 'é' 'ê' 'ë' 'ì' 'í' 'î' 'ï' 'ð' 'ò' 'ó' 'ô' 'õ' 'æ' 'è' 'ã' 'þ' 'û' 'ý' 'ÿ' 'ù' 'ø' 'ü' 'à' 'ñ'
+#endif
]
let uppercase_letter =