diff options
author | az <az@FreeBSD.org> | 2013-07-28 00:06:25 +0800 |
---|---|---|
committer | az <az@FreeBSD.org> | 2013-07-28 00:06:25 +0800 |
commit | 0a9e5efb9de6b8811964b263c03b83ec89719f71 (patch) | |
tree | af6266e338105f6caa968f90afd0c4e98288d6f5 /net-p2p | |
parent | 161ee4e405ddee7d6c945754c827684829ef8e90 (diff) | |
download | freebsd-ports-gnome-0a9e5efb9de6b8811964b263c03b83ec89719f71.tar.gz freebsd-ports-gnome-0a9e5efb9de6b8811964b263c03b83ec89719f71.tar.zst freebsd-ports-gnome-0a9e5efb9de6b8811964b263c03b83ec89719f71.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 'net-p2p')
-rw-r--r-- | net-p2p/mldonkey-perlreactor/Makefile | 12 | ||||
-rw-r--r-- | net-p2p/mldonkey-urlslave/Makefile | 11 |
2 files changed, 7 insertions, 16 deletions
diff --git a/net-p2p/mldonkey-perlreactor/Makefile b/net-p2p/mldonkey-perlreactor/Makefile index baca0990d0b1..14becbaaf4c0 100644 --- a/net-p2p/mldonkey-perlreactor/Makefile +++ b/net-p2p/mldonkey-perlreactor/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: mldonkey perlreactor -# Date created: Sat Feb 23 13:13:08 BRT 2002 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# +# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # $FreeBSD$ -# PORTNAME= mldonkey PORTVERSION= 0.2 @@ -20,13 +16,13 @@ BUILD_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww USE_PERL5= yes NO_BUILD= yes NO_WRKSUBDIR= yes +USES= shebangfix +SHEBANG_FILES$=${BINARY_NAME} BINARY_NAME= perlreactor post-patch: - @${PERL} -pi -e 's|#!/usr/bin/perl\n||; \ - s|/usr/local/bin/perl|${PERL}|' \ - ${WRKSRC}/${BINARY_NAME} + @${REINPLACE_CMD} -i '' -e '1d' ${WRKSRC}/${BINARY_NAME} do-install: .ifndef(NOPORTDOCS) diff --git a/net-p2p/mldonkey-urlslave/Makefile b/net-p2p/mldonkey-urlslave/Makefile index 1a78b368b90f..4918922325d0 100644 --- a/net-p2p/mldonkey-urlslave/Makefile +++ b/net-p2p/mldonkey-urlslave/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: mldonkey link submitter -# Date created: Fri Feb 21 14:11:00 UTC 2003 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# +# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # $FreeBSD$ -# PORTNAME= mldonkey PORTVERSION= 0.0.1 @@ -20,15 +16,14 @@ BUILD_DEPENDS= p5-Gtk>=0:${PORTSDIR}/x11-toolkits/p5-Gtk USE_PERL5= yes NO_BUILD= yes +USES= shebangfix +SHEBANG_FILES= ${BINARY_NAME} BINARY_NAME= mlurlslave post-extract: @${GREP} '^#' ${WRKSRC}/${BINARY_NAME} | ${GREP} -v '/usr/bin/perl' > ${WRKDIR}/README -post-patch: - @${PERL} -pi -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/${BINARY_NAME} - do-install: .ifndef(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} |