freebsd-ports/sysutils/colorize/Makefile
Dennis Herrmann 68942ae429 - Fix fetch
- Pass maintainership to submitter
- Add pkg-message.in

PR:		ports/159146
Submitted by:	Aex Keda <admin@lissyara.su> (maintainer)
2011-07-23 23:18:18 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: colorize
# Date created: 12 June 2001
# Whom: petef@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= colorize
PORTVERSION= 0.3.4
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.lissyara.su/distfiles/ \
ftp://p3-800.lissyara.su/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= admin@lissyara.su
COMMENT= A robust log colorizer
RUN_DEPENDS= ${SITE_PERL}/Term/ANSIColor.pm:${PORTSDIR}/devel/p5-Term-ANSIColor
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
NO_BUILD= yes
USE_PERL5= yes
SUB_FILES= pkg-message
MAN1= colorize.1
MANCOMPRESSED= yes
post-patch:
@${PERL} -pi -e "s|/etc/colorizerc|${PREFIX}/etc/colorizerc|; \
s|#!/usr/bin/perl|#!${PERL}|g" ${WRKSRC}/colorize
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/colorize ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/etc/colorizerc.dist
.if !exists(${PREFIX}/etc/colorizerc)
@${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/etc/colorizerc
.endif
@${INSTALL_MAN} ${WRKSRC}/colorize.1.gz ${PREFIX}/man/man1
@${SED} -e "s!/usr/local/!${PREFIX}/!" < ${PKGMESSAGE}
.include <bsd.port.mk>