aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-03-12 00:45:09 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-03-12 00:45:09 +0000
commitc9a60ca29e3d7d57ff7b7102d2c1337332d7718d (patch)
tree589a39ff3e5395516859beb7cb38ee5bb69462e3
parent91256c15abd46d40cbeaa635f27316d74851e522 (diff)
downloadports-c9a60ca29e3d7d57ff7b7102d2c1337332d7718d.tar.gz
ports-c9a60ca29e3d7d57ff7b7102d2c1337332d7718d.zip
Notes
-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 =
+