Date: Sun, 17 Jul 2011 14:31:54 +0200 From: Torfinn Ingolfsen <tingox@gmail.com> To: FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: mail/py-spambayes - a patch to make it work with Python 2.7 Message-ID: <CAJ_iqtYTwdWikdmTmjzwJ=nN8Tr-2YVqhmqNBgjA58LngGT=0Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ_iqtYTwdWikdmTmjzwJ=nN8Tr-2YVqhmqNBgjA58LngGT=0Q>