diff options
author | az <az@FreeBSD.org> | 2013-07-26 01:45:09 +0800 |
---|---|---|
committer | az <az@FreeBSD.org> | 2013-07-26 01:45:09 +0800 |
commit | a17aea5b36965f8ed6ecc0ca55f360944e3f46a8 (patch) | |
tree | 17b7739cec5c8bd24318f8970c77d5508f40b335 /ftp/ftpmirror | |
parent | 9bd11f4a568c740d3e38c88bf815647016ecdef7 (diff) | |
download | freebsd-ports-gnome-a17aea5b36965f8ed6ecc0ca55f360944e3f46a8.tar.gz freebsd-ports-gnome-a17aea5b36965f8ed6ecc0ca55f360944e3f46a8.tar.zst freebsd-ports-gnome-a17aea5b36965f8ed6ecc0ca55f360944e3f46a8.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 'ftp/ftpmirror')
-rw-r--r-- | ftp/ftpmirror/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ftp/ftpmirror/Makefile b/ftp/ftpmirror/Makefile index 92d6f5270f54..e0f2da9378b7 100644 --- a/ftp/ftpmirror/Makefile +++ b/ftp/ftpmirror/Makefile @@ -18,15 +18,15 @@ USE_PERL5= yes GNU_CONFIGURE= yes MAKE_JOBS_SAFE= yes +USES= shebangfix +SHEBANG_FILES= ftpmirror rotate + CONFIGURE_ENV+= PERL="${PERL}" INSTALL_PROGRAM="${INSTALL_SCRIPT}" PORTDOCS= README.jis RELEASE.jis post-configure: - @${PERL} -i.bak -pe 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/Fan/Fan.pm -.for f in ftpmirror rotate - @${PERL} -i.bak -pe 's,^#!.*$$,#!${PERL}, if $$. == 1' ${WRKSRC}/${f} -.endfor + @${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Fan/Fan.pm .include <bsd.port.pre.mk> |