freebsd-ports/textproc/colordiff/Makefile

31 lines
806 B
Makefile
Raw Normal View History

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= colordiff
2012-11-18 16:13:12 +01:00
PORTVERSION= 1.0.13
CATEGORIES= textproc
MASTER_SITES= http://www.colordiff.org/ CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Tool to colorize diff output
2011-12-27 16:14:23 +01:00
LICENSE= GPLv2
USES= shebangfix perl5
NO_BUILD= yes
2013-05-07 10:57:37 +02:00
SHEBANG_FILES= colordiff.pl
post-patch:
2013-10-22 23:51:59 +02:00
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${PORTNAME}.1
do-install:
2013-10-22 23:51:59 +02:00
${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>