aboutsummaryrefslogtreecommitdiffstats
path: root/irc/pisg/Makefile
blob: f62412f395b0fc8f8238536ce631857b06dc253a (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
# Created by: pgl@instinct.org
# $FreeBSD$

PORTNAME=   pisg
PORTVERSION=    0.73
PORTREVISION=   1
CATEGORIES= irc
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    Perl IRC Statistics Generator

USES=       perl5
NO_BUILD=   YES

OPTIONS_DEFINE= LOGCHARSET DOCS
LOGCHARSET_DESC=    Character set for logfiles

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLOGCHARSET}
RUN_DEPENDS+=   p5-Text-Iconv>=0:${PORTSDIR}/converters/p5-Text-Iconv
.endif

do-build:

pre-patch:
    @${REINPLACE_CMD} -e 's|lang.txt|${PREFIX}/share/pisg/lang.txt|; \
        s|layout/|${PREFIX}/share/pisg/layout/|' \
        ${WRKSRC}/modules/Pisg.pm
    @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/pisg

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/etc/pisg
    ${MKDIR} ${STAGEDIR}${DATADIR}/layout
    ${MKDIR} ${STAGEDIR}${DATADIR}/gfx
    ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Pisg/Parser/Format
    ${INSTALL_DATA} ${WRKSRC}/pisg.cfg ${STAGEDIR}${PREFIX}/etc/pisg/pisg.cfg.sample
    ${INSTALL_DATA} ${WRKSRC}/gfx/* ${STAGEDIR}${DATADIR}/gfx
    ${INSTALL_DATA} ${WRKSRC}/layout/* ${STAGEDIR}${DATADIR}/layout
    ${INSTALL_DATA} ${WRKSRC}/lang.txt ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/modules/Pisg.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
    ${INSTALL_DATA} ${WRKSRC}/modules/Pisg/*.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Pisg
    ${INSTALL_DATA} ${WRKSRC}/modules/Pisg/Parser/*.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Pisg/Parser
    ${INSTALL_DATA} ${WRKSRC}/modules/Pisg/Parser/Format/*.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Pisg/Parser/Format
    ${INSTALL_SCRIPT} ${WRKSRC}/pisg ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/pisg-doc.txt ${STAGEDIR}${DOCSDIR}/pisg-doc.txt


.include <bsd.port.mk>