summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-04 05:02:02 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-04 05:02:02 +0000
commit62ed0aff9cdf7cf792822dc0bf83b70a3c4186dd (patch)
tree61924c8b7b1d95b3dc0d5f7b487ad3cce718eb20 /mail
parentOfficial MASTER_SITES seem to be down since XMAS with no reason. (diff)
o Current released version 1.0.1 does not work well with python
2.4. Therefore, make sure the port will use a version of python which will work with it, namely python 2.3 o Bump PORTREVISION PR: 75472 Reviewed by: Torfinn Ingolfsen <tingo@start.no> Approved by: portmgr (marcus)
Notes
Notes: svn path=/head/; revision=125706
Diffstat (limited to 'mail')
-rw-r--r--mail/py-spambayes/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/py-spambayes/Makefile b/mail/py-spambayes/Makefile
index c6c7b9d58ecb..a10e281fdb8d 100644
--- a/mail/py-spambayes/Makefile
+++ b/mail/py-spambayes/Makefile
@@ -7,6 +7,7 @@
PORTNAME= spambayes
PORTVERSION= 1.0.1
+PORTREVISION= 1
CATEGORIES= mail python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -18,9 +19,11 @@ COMMENT= A Bayesian anti-spam filter written in Python
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
-USE_PYTHON= yes
+USE_PYTHON= 2.3
USE_PYDISTUTILS= yes
+USE_REINPLACE= yes
+
PORTDOCS= CHANGELOG.txt \
LICENSE.txt \
NEWTRICKS.txt \
@@ -35,6 +38,12 @@ PORTDOCS= CHANGELOG.txt \
post-extract:
@${CHMOD} -Rf u+w ${WRKSRC}
+post-patch:
+ @${FIND} ${WRKSRC} -type f | \
+ ${XARGS} -n 10 -x \
+ ${REINPLACE_CMD} -E \
+ -e 's|/usr/bin/env python|${PYTHONBASE}/bin/${PYTHON_VERSION}|'
+
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}