blob: d4f8d8ab250f9ae4f3dc33dd1280e0b5873bb3b2 (
plain)
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
|
# Created by: Cheng-Lung Sung <clsung@dragon2.net>
# $FreeBSD$
PORTNAME= Mail-Graph
PORTVERSION= 0.14
PORTREVISION= 7
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl module for drawing graphical stats for mails/spams
RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
p5-GD-Graph>=0:${PORTSDIR}/graphics/p5-GD-Graph \
p5-GD-TextUtil>=0:${PORTSDIR}/graphics/p5-GD-TextUtil \
p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc
BUILD_DEPENDS:= ${RUN_DEPENDS}
USES= perl5
USE_PERL5= configure
EXAMPLESCRIPT= samples/*pl
EXAMPLEDUMMY= samples/index/dummy.txt
EXAMPLEOUTPUT= samples/output/w3c.png samples/output/spam.css
EXAMPLEARCHIVE= samples/archive/*.gz
MAN3= Mail::Graph.3
NO_STAGE= yes
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${EXAMPLESDIR}/archive
@${MKDIR} ${EXAMPLESDIR}/index
@${MKDIR} ${EXAMPLESDIR}/output
cd ${WRKSRC} && \
${INSTALL_SCRIPT} ${EXAMPLESCRIPT} ${EXAMPLESDIR} && \
${INSTALL_SCRIPT} ${EXAMPLEDUMMY} ${EXAMPLESDIR}/index && \
${INSTALL_SCRIPT} ${EXAMPLEOUTPUT} ${EXAMPLESDIR}/output && \
${INSTALL_SCRIPT} ${EXAMPLEARCHIVE} ${EXAMPLESDIR}/archive
.include <bsd.port.mk>
|