freebsd-ports/textproc/colordiff/Makefile
2013-10-22 21:51:59 +00:00

30 lines
806 B
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= colordiff
PORTVERSION= 1.0.13
CATEGORIES= textproc
MASTER_SITES= http://www.colordiff.org/ CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Tool to colorize diff output
LICENSE= GPLv2
USES= shebangfix perl5
NO_BUILD= yes
SHEBANG_FILES= colordiff.pl
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${PORTNAME}.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/colordiffrc ${STAGEDIR}${PREFIX}/etc/colordiffrc.default
.if !exists(${STAGEDIR}${PREFIX}/etc/colordiffrc)
${INSTALL_DATA} ${WRKSRC}/colordiffrc ${STAGEDIR}${PREFIX}/etc
.endif
.include <bsd.port.mk>