aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2004-03-12 08:45:09 +0800
committerlioux <lioux@FreeBSD.org>2004-03-12 08:45:09 +0800
commit1225c493f543d1dfc2ddd8b2dc93a7945a9dc927 (patch)
tree3734ea9115137eff097f3c3eb8f8b1d8300f97d5 /mail
parent41c89978d31b37a72c6a651b7df1befa74780d25 (diff)
downloadfreebsd-ports-gnome-1225c493f543d1dfc2ddd8b2dc93a7945a9dc927.tar.gz
freebsd-ports-gnome-1225c493f543d1dfc2ddd8b2dc93a7945a9dc927.tar.zst
freebsd-ports-gnome-1225c493f543d1dfc2ddd8b2dc93a7945a9dc927.zip
o Add RUSSIAN language support
o Enable support for RUSSIAN, SPANISH, ITALIAN and GERMAN languages o Bump PORTREVISION PR: 53290 Submitted by: lev
Diffstat (limited to 'mail')
-rw-r--r--mail/spamoracle/Makefile2
-rw-r--r--mail/spamoracle/files/patch-Makefile11
-rw-r--r--mail/spamoracle/files/patch-wordsplit.mlp29
3 files changed, 41 insertions, 1 deletions
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 =
+