diff options
author | az <az@FreeBSD.org> | 2013-07-26 15:33:41 +0800 |
---|---|---|
committer | az <az@FreeBSD.org> | 2013-07-26 15:33:41 +0800 |
commit | 665183f53eb74ec3fb00d82d5e4d998804f85ad2 (patch) | |
tree | e2c71147def7c03ff268350288657b4e7692d180 /misc | |
parent | e80ef1fc474e04a3b1999f45fd39114572d34f44 (diff) | |
download | freebsd-ports-gnome-665183f53eb74ec3fb00d82d5e4d998804f85ad2.tar.gz freebsd-ports-gnome-665183f53eb74ec3fb00d82d5e4d998804f85ad2.tar.zst freebsd-ports-gnome-665183f53eb74ec3fb00d82d5e4d998804f85ad2.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 'misc')
-rw-r--r-- | misc/chord2html/Makefile | 13 | ||||
-rw-r--r-- | misc/explosions/Makefile | 6 | ||||
-rw-r--r-- | misc/p5-Array-IntSpan/Makefile | 8 | ||||
-rw-r--r-- | misc/qlas/Makefile | 13 |
4 files changed, 13 insertions, 27 deletions
diff --git a/misc/chord2html/Makefile b/misc/chord2html/Makefile index f5fa7ebff60a..cbc7ceaf3fe4 100644 --- a/misc/chord2html/Makefile +++ b/misc/chord2html/Makefile @@ -1,11 +1,5 @@ -# Ports collection makefile for: chord2html -# Date created: Sep 11, 2002 -# Whom: ijliao -# +# Created by: ijliao # $FreeBSD$ -# -# $Tecnik: ports/misc/chord2html/Makefile,v 1.3 2005/12/14 11:41:25 itetcu Exp $ -# PORTNAME= chord2html PORTVERSION= 1.3 @@ -20,6 +14,8 @@ RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD USE_PERL5= yes NO_BUILD= yes +USES= shebangfix +SHEBANG_FILES= chord2html MAN1= chord2html.1 @@ -27,8 +23,7 @@ PLIST_FILES= bin/chord2html share/chord2html/chord2html.css PLIST_DIRS= share/chord2html post-patch: - @${PERL} -pi -e "s,/usr/bin/perl,${PERL},g ; \ - s,%%PREFIX%%,${PREFIX},g ; \ + @${REINPLACE_CMD} -i '' -e "s,%%PREFIX%%,${PREFIX},g ; \ s,chord2html.css,${PREFIX}/share/chord2html/chord2html.css," \ ${WRKSRC}/chord2html diff --git a/misc/explosions/Makefile b/misc/explosions/Makefile index 92f853a21f2d..bc474112746a 100644 --- a/misc/explosions/Makefile +++ b/misc/explosions/Makefile @@ -18,10 +18,10 @@ USE_PERL5_BUILD=yes .include <bsd.port.options.mk> post-patch: - @${PERL} -pi -e 's!CFLAGS=-Wall -O2!CFLAGS+=-Wall!; \ - s!sdl-config!${SDL_CONFIG}!' \ + @${REINPLACE_CMD} -i '' -e 's!CFLAGS=-Wall -O2!CFLAGS+=-Wall!; \ + s!sdl-config!${SDL_CONFIG}!' \ ${WRKSRC}/Makefile - @${PERL} -pi -e 's!spark%d.png!${DATADIR}/spark%d.png!' \ + @${REINPLACE_CMD} -i '' -e 's!spark%d.png!${DATADIR}/spark%d.png!' \ ${WRKSRC}/explosions.c do-install: diff --git a/misc/p5-Array-IntSpan/Makefile b/misc/p5-Array-IntSpan/Makefile index 4aabec3ebc48..7708692ec7af 100644 --- a/misc/p5-Array-IntSpan/Makefile +++ b/misc/p5-Array-IntSpan/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: p5-Array-IntSpan -# Date created: 30 Dec 2001 -# Whom: Seamus Venasse <svenasse@polaris.ca> -# +# Created by: Seamus Venasse <svenasse@polaris.ca> # $FreeBSD$ -# PORTNAME= Array-IntSpan PORTVERSION= 2.002 @@ -19,6 +15,6 @@ PERL_CONFIGURE= yes MAN3= Array::IntSpan.3 Array::IntSpan::Fields.3 post-patch: - @${PERL} -pi -e 's/3pm/3/g' ${WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -i '' -e 's/3pm/3/g' ${WRKSRC}/${CONFIGURE_SCRIPT} .include <bsd.port.mk> diff --git a/misc/qlas/Makefile b/misc/qlas/Makefile index 52350050097d..8cad2a84f39d 100644 --- a/misc/qlas/Makefile +++ b/misc/qlas/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: qlas -# Date created: 14 Oct 2000 -# Whom: Denis Shaposhnikov <dsh@vlink.ru> -# +# Created by: Denis Shaposhnikov <dsh@vlink.ru> # $FreeBSD$ -# PORTNAME= qlas PORTVERSION= 1.93 @@ -16,10 +12,9 @@ COMMENT= Qico FIDO mailer log analyzer and statistic builder USE_PERL5= yes NO_WRKSUBDIR= yes NO_BUILD= yes - -post-patch: - @ ${PERL} -pi -e 's!/usr/bin/perl!${PERL}!; tr/\r//d' ${WRKSRC}/qlas - @ ${PERL} -pi -e 'tr/\r//d' ${WRKSRC}/qlas.conf.default +USES= shebangfix +SHEBANG_FILES= qlas +USE_DOS2UNIX= qlas qlas.conf.default do-install: ${INSTALL_SCRIPT} ${WRKSRC}/qlas ${PREFIX}/bin/ |