652a73317c
devel/p5-Getopt-Long.
42 lines
1,023 B
Makefile
42 lines
1,023 B
Makefile
# New ports collection makefile for: colordiff
|
|
# Date created: 6 Jul 2005
|
|
# Whom: Emanuel Haupt <ehaupt@critical.ch>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= colordiff
|
|
PORTVERSION= 1.0.5
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= A tool to colorize diff output
|
|
|
|
USE_PERL5= yes
|
|
USE_REINPLACE= yes
|
|
NO_BUILD= yes
|
|
|
|
PLIST_DIRS= %%EXAMPLESDIR%%
|
|
PLIST_FILES= bin/colordiff %%EXAMPLESDIR%%/colordiffrc
|
|
MAN1= colordiff.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
BUILD_DEPENDS= ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local/bin/perl|${PERL}|' \
|
|
${WRKSRC}/${PORTNAME}.pl
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/colordiffrc ${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.post.mk>
|