1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/irc/pisg/Makefile
Mathieu Arnold 7c47779cb9 Fix usage of ${PERL5}.
${PERL5} points to a specific version of perl, say, perl5.22.1, it is
fine to use it in a ports Makefile to do Perly things, but ports using
it must use ${PERL}, that points to /usr/local/bin/perl so that if the
minor version is updated, the shebang keep working.

While there, make some ports use shebangfix, regen a few patches, and
bump PORTREVISION where a shebang went from PERL5 to PERL.

PR:		205367
With hat:	portmgr
Sponsored by:	Absolight
2015-12-17 17:19:48 +00:00

52 lines
1.6 KiB
Makefile

# 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 shebangfix
SHEBANG_FILES= pisg
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
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>