diff options
author | lioux <lioux@FreeBSD.org> | 2005-01-04 13:02:02 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2005-01-04 13:02:02 +0800 |
commit | dc9ac765696b967763ccaa9c3295983bebb29347 (patch) | |
tree | 1ef1312cc38448792edbf039d9608537b9247a77 /mail | |
parent | e26964c50712ece27094937b939ba83949093255 (diff) | |
download | freebsd-ports-gnome-dc9ac765696b967763ccaa9c3295983bebb29347.tar.gz freebsd-ports-gnome-dc9ac765696b967763ccaa9c3295983bebb29347.tar.zst freebsd-ports-gnome-dc9ac765696b967763ccaa9c3295983bebb29347.zip |
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)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/py-spambayes/Makefile | 11 |
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} |