blob: 20e167bba5a6c2dc0a90ff476f2fa07b8701a4d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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!= ${LOCALBASE}/bin/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>
|