svn commit: r319003 - head/mail/imaptools

Boris Samorodov bsam at passap.ru
Sat May 25 07:16:33 UTC 2013


25.05.2013 00:59, Jason Helfman пишет:

> Can shebangfix from Mk/Uses be employed here?

Thanks for suggestion, I did not realise that it may be employed
here! However after some invesigation it seems it's not worth,
since a single reinplace command should be replaced by for knobs:
USES+SHEBANG_FILES as well as WRKSRC and NO_BUILD:
-----
Index: Makefile
===================================================================
--- Makefile    (revision 319012)
+++ Makefile    (working copy)
@@ -16,12 +16,12 @@

 CONFLICTS=     imaputils-[0-9]*

+WRKSRC=                ${WRKDIR}
+USES=          shebangfix
+SHEBANG_FILES= *.pl
+NO_BUILD=      yes
 USE_PERL5_RUN= yes

-do-build:
-       ${REINPLACE_CMD} \
-               -e 's|/usr/bin/perl|${PERL}|g' ${WRKDIR}/*.pl
-
 do-install:
        ${INSTALL_SCRIPT} ${WRKDIR}/*.pl ${PREFIX}/bin

-----

What do you think? What benefits are to use the shebangfix here?
-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve


More information about the svn-ports-head mailing list