blob: 7568554113629bce5669086fd65e67b44e9bcfb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= colordiff
PORTVERSION= 1.0.16
CATEGORIES= textproc
MASTER_SITES= http://www.colordiff.org/ LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Tool to colorize diff output
LICENSE= GPLv2
USES= shebangfix perl5
NO_BUILD= yes
NO_ARCH= yes
SHEBANG_FILES= colordiff.pl
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
${WRKSRC}/${PORTNAME}.pl ${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.sample
.if !exists(${STAGEDIR}${PREFIX}/etc/colordiffrc)
${INSTALL_DATA} ${WRKSRC}/colordiffrc ${STAGEDIR}${PREFIX}/etc
.endif
.include <bsd.port.mk>
|