aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoraz <az@FreeBSD.org>2013-07-26 18:46:37 +0800
committeraz <az@FreeBSD.org>2013-07-26 18:46:37 +0800
commit425a912423003f8cf48eb9dc516a4d77b8a20cf2 (patch)
tree4e432cd7adf68b48f6abe895819485849ed8f886 /sysutils
parent1079766f17b5d6a4c7cf98bd67a211c4e64e0017 (diff)
downloadfreebsd-ports-gnome-425a912423003f8cf48eb9dc516a4d77b8a20cf2.tar.gz
freebsd-ports-gnome-425a912423003f8cf48eb9dc516a4d77b8a20cf2.tar.zst
freebsd-ports-gnome-425a912423003f8cf48eb9dc516a4d77b8a20cf2.zip
- switch simple inline replacement from perl to sed
and remove where is no need in this anymore. - trim Makefile header Approved by: bapt@ (portmrg@)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/colorize/Makefile12
1 files changed, 5 insertions, 7 deletions
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