62ed0aff9c
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)
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
# New ports collection makefile for: spambayes
|
|
# Date created: Sat Feb 1 17:23:02 UTC 2003
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= spambayes
|
|
PORTVERSION= 1.0.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail python
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:C/(.)\.(..)\.(.)$/\1\2\3/}
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
COMMENT= A Bayesian anti-spam filter written in Python
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
|
|
|
|
USE_PYTHON= 2.3
|
|
USE_PYDISTUTILS= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
PORTDOCS= CHANGELOG.txt \
|
|
LICENSE.txt \
|
|
NEWTRICKS.txt \
|
|
POP3PROXY.txt \
|
|
README-DEVEL.txt \
|
|
README.txt \
|
|
TESTING.txt \
|
|
WHAT_IS_NEW.txt \
|
|
utilities/ \
|
|
contrib/
|
|
|
|
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}
|
|
.for file in ${PORTDOCS}
|
|
@if [ -f ${WRKSRC}/${file} ]; then \
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} ; \
|
|
fi
|
|
.endfor
|
|
@${MKDIR} ${DOCSDIR}/contrib
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/* ${DOCSDIR}/contrib
|
|
@${MKDIR} ${DOCSDIR}/utilities
|
|
@${INSTALL_DATA} ${WRKSRC}/utilities/* ${DOCSDIR}/utilities
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|