From b9cf42305004edcd8f6467ced5afa0861a544eff Mon Sep 17 00:00:00 2001
From: Andrej Zverev <az@FreeBSD.org>
Date: Fri, 26 Jul 2013 10:46:37 +0000
Subject: - switch simple inline replacement from perl to sed   and remove
 where is no need in this anymore. - trim Makefile header

Approved by:  bapt@ (portmrg@)
---
 sysutils/colorize/Makefile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

(limited to 'sysutils')

diff --git a/sysutils/colorize/Makefile b/sysutils/colorize/Makefile
index 3ea83f26d52f..1796ff2aaa9d 100644
--- a/sysutils/colorize/Makefile
+++ b/sysutils/colorize/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	colorize
-# Date created:				12 June 2001
-# Whom:					petef@FreeBSD.org
-#
+# Created by: petef@FreeBSD.org
 # $FreeBSD$
-#
 
 PORTNAME=	colorize
 PORTVERSION=	0.3.4
@@ -22,13 +18,15 @@ WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
 NO_BUILD=	yes
 USE_PERL5=	yes
 SUB_FILES=	pkg-message
+USES=		shebangfix
+SHEBANG_FILES=	colorize
 
 MAN1=		colorize.1
 MANCOMPRESSED=	yes
 
 post-patch:
-	@${PERL} -pi -e "s|/etc/colorizerc|${PREFIX}/etc/colorizerc|; \
-		s|#!/usr/bin/perl|#!${PERL}|g" ${WRKSRC}/colorize
+	@${REINPLACE_CMD} -i '' -e 's|/etc/colorizerc|${PREFIX}/etc/colorizerc|' \
+		${WRKSRC}/colorize
 
 do-install:
 	@${INSTALL_SCRIPT} ${WRKSRC}/colorize ${PREFIX}/bin
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0