From c9a60ca29e3d7d57ff7b7102d2c1337332d7718d Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Fri, 12 Mar 2004 00:45:09 +0000 Subject: o Add RUSSIAN language support o Enable support for RUSSIAN, SPANISH, ITALIAN and GERMAN languages o Bump PORTREVISION PR: 53290 Submitted by: lev --- mail/spamoracle/Makefile | 2 +- mail/spamoracle/files/patch-Makefile | 11 +++++++++++ mail/spamoracle/files/patch-wordsplit.mlp | 29 +++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 mail/spamoracle/files/patch-Makefile create mode 100644 mail/spamoracle/files/patch-wordsplit.mlp diff --git a/mail/spamoracle/Makefile b/mail/spamoracle/Makefile index c8d663154efc..0c1bf2441d66 100644 --- a/mail/spamoracle/Makefile +++ b/mail/spamoracle/Makefile @@ -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}|' \ diff --git a/mail/spamoracle/files/patch-Makefile b/mail/spamoracle/files/patch-Makefile new file mode 100644 index 000000000000..13b19689af9d --- /dev/null +++ b/mail/spamoracle/files/patch-Makefile @@ -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) - diff --git a/mail/spamoracle/files/patch-wordsplit.mlp b/mail/spamoracle/files/patch-wordsplit.mlp new file mode 100644 index 000000000000..795bed332ab7 --- /dev/null +++ b/mail/spamoracle/files/patch-wordsplit.mlp @@ -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 = + -- cgit v1.2.3