mail/py-spambayes - a patch to make it work with Python 2.7

Torfinn Ingolfsen tingox at gmail.com
Sun Jul 17 12:31:56 UTC 2011


Hi,

Time flies fast. WE now have Python 2.7 and 3.2 in our system, not Python 2.6.
The following patch makes mail/py-spambayes use Python 2.7.
root at kg-v2# diff -u Makefile.org Makefile
--- Makefile.org	2009-08-22 02:27:53.000000000 +0200
+++ Makefile	2011-07-17 14:22:51.000000000 +0200
@@ -18,7 +18,7 @@
 # bypass infrastructure bug
 OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options

-OPTIONS=	PYTHON26	"Build with Python 2.6 (with unofficial patch)"	off
+OPTIONS=	PYTHON27	"Build with Python 2.7 (with unofficial patch)"	off

 USE_PYDISTUTILS=	yes
 USE_RC_SUBR=	pyspamd
@@ -81,8 +81,8 @@

 .include <bsd.port.options.mk>

-.if defined(WITH_PYTHON26)
-USE_PYTHON=		2.6
+.if defined(WITH_PYTHON27)
+USE_PYTHON=		2.7
 RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
 EXTRA_PATCHES+=		${FILESDIR}/extra-patch-python26
 .else

AFAICT, spambayes works fine with this patch.
Not sure if the patch is good enough, so I haven't sent a PR yet.

-- 
Regards,
Torfinn Ingolfsen


More information about the freebsd-ports mailing list