freebsd-ports/textproc/colordiff/Makefile

34 lines
798 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
USE_PERL5= yes
NO_BUILD= yes
MAN1= colordiff.1
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local/bin/perl|${PERL}|; s|/etc|${PREFIX}/etc|' \
${WRKSRC}/${PORTNAME}.pl \
${WRKSRC}/${MAN1}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/colordiffrc ${PREFIX}/etc/colordiffrc.default
.if !exists(${PREFIX}/etc/colordiffrc)
${INSTALL_DATA} ${WRKSRC}/colordiffrc ${PREFIX}/etc
.endif
.include <bsd.port.mk>