Date: Tue, 30 Apr 2013 12:38:21 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports@FreeBSD.org Subject: [BRAINSTORM] shebang fixing framework Message-ID: <20130430103821.GJ3577@ithaqua.etoilebsd.net>
next in thread | raw e-mail | index | archive | help
--2fjX3cMESU3XgGmZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 we are looking for a framework/helpers to help patching scripts shebang so that they fit where the interpreters is on FreeBSD. We also want to get rid of /usr/bin/perl http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170219 and such helpers would help here is what I do propose: http://people.freebsd.org/~bapt/shebangfix.mk.txt How the above works: USES= shebangfix SHEBANG_LANG= perl perl_FILES= *.pl you want to create a custom one for the joescript? USES= shebangfix SHEBANG_LANG= joescript joescript_FILES= *.joe joescript_OLD_CMD= /usr/bin/joe joescript_CMD= ${LOCALBASE}/bin/joe How to fix both python and perl scripts: USES= shebangfix SHEBANG_LANG= perl python perl_FILES= *.pl python_FILES= bin/*.py myscript/script.py the _FILES should be relative to ${WRKSRC} it can be globbing So far what has been proposed already is: - replace ${lang}_FILES by FIX_${lang} - nuke SHEBANG_LANG in favor of USES= shebangfix:perl:python - nuke SHEBANG_LANG in favor of USES= shebangfix:"perl python" - nuke SHEBANG_LANG in favor of USES= shebangfix:perl+python What do you guys think about it, what do you propose. What majority prefers will be implemented and committed during BSDCan! regards, Bapt --2fjX3cMESU3XgGmZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlF/nx0ACgkQ8kTtMUmk6ExHQgCfSq98GCnS/63P1DF4ToWWCuh8 yusAmwUG+mq/6Ik5ZQjkQG5J3VC9DAbh =msZK -----END PGP SIGNATURE----- --2fjX3cMESU3XgGmZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130430103821.GJ3577>