blob: 152db19e9504da090d9325149542dfb7e18ed77b (
plain) (
tree)
|
|
# New ports collection makefile for: scmail
# Date created: 13 April 2003
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#
PORTNAME= scmail
PORTVERSION= 1.2
CATEGORIES= mail
MASTER_SITES= http://namazu.org/~satoru/scmail/
MAINTAINER= fuyuki@nigredo.org
COMMENT= A mail filter written in Scheme
BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche
RUN_DEPENDS= ${LOCALBASE}/share/gauche/${GAUCHE_VER}/lib/dbm/gdbm.scm:${PORTSDIR}/databases/gauche-gdbm
USE_REINPLACE= yes
MAKE_ARGS= PREFIX="${PREFIX}" DATADIR="${EXAMPLESDIR}"
PORTDOCS= scbayes-ja.html scbayes.html scmail-ja.html scmail.html
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha"
BROKEN= "Does not compile on alpha"
.endif
.if exists(${LOCALBASE}/bin/gauche-config)
GAUCHE_VER!= gauche-config -V
.else
GAUCHE_VER= none
.endif
post-patch:
${REINPLACE_CMD} -E -e "s,cp -f?p,${CP},g;s,/dot.scmail,," \
${WRKSRC}/Makefile
${TOUCH} ${WRKSRC}/scmail/bayesian-filter.scm.in
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.endif
# Maintainer only; it actually forwards mails to @examples.com!
test:
cd ${WRKSRC}; ${MAKE} check
.include <bsd.port.post.mk>
|