mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
65 lines
2.0 KiB
Makefile
65 lines
2.0 KiB
Makefile
# Created by: pgl@instinct.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pisg
|
|
PORTVERSION= 0.73
|
|
CATEGORIES= irc
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
COMMENT= A Perl IRC Statistics Generator
|
|
|
|
USES= perl5
|
|
NO_BUILD= YES
|
|
|
|
OPTIONS_DEFINE= LOGCHARSET DOCS
|
|
LOGCHARSET_DESC= Character set for logfiles
|
|
|
|
NO_STAGE= yes
|
|
.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} ${PREFIX}/etc/pisg
|
|
${MKDIR} ${DATADIR}/layout
|
|
${MKDIR} ${DATADIR}/gfx
|
|
${MKDIR} ${SITE_PERL}/Pisg/Parser/Format
|
|
${INSTALL_DATA} ${WRKSRC}/pisg.cfg ${PREFIX}/etc/pisg/pisg.cfg.sample
|
|
${INSTALL_DATA} ${WRKSRC}/gfx/* ${DATADIR}/gfx
|
|
${INSTALL_DATA} ${WRKSRC}/layout/* ${DATADIR}/layout
|
|
${INSTALL_DATA} ${WRKSRC}/lang.txt ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/modules/Pisg.pm ${SITE_PERL}
|
|
${INSTALL_DATA} ${WRKSRC}/modules/Pisg/*.pm ${SITE_PERL}/Pisg
|
|
${INSTALL_DATA} ${WRKSRC}/modules/Pisg/Parser/*.pm ${SITE_PERL}/Pisg/Parser
|
|
${INSTALL_DATA} ${WRKSRC}/modules/Pisg/Parser/Format/*.pm ${SITE_PERL}/Pisg/Parser/Format
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pisg ${PREFIX}/bin
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/pisg-doc.txt ${DOCSDIR}/pisg-doc.txt
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(BATCH)
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "###############################################################################"
|
|
@${ECHO_MSG} " Please create a pisg config file in ${PREFIX}/etc/pisg"
|
|
@${ECHO_MSG} " A sample configuration file is installed as pisg.cfg.sample"
|
|
@${ECHO_MSG} " Remember to move gfx (${DATADIR}/gfx/) to HTML file destination."
|
|
@${ECHO_MSG} "###############################################################################"
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|