freebsd-ports/Mk/Uses
Dmitry Marakasov 67971bd0fb Improve shebangfix framework
- Support multiple values in *_OLD_CMD, i.e. we can now fix both "/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash, ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously) replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is still (correctly) replaced with "${perl_CMD} -tt")

Note that *_OLD_CMD items containing spaces must now be quoted (e.g. perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")

Update shebangfix usage according to new rules in many ports:

- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces

Fix shebangfix usage in many ports (irrelevant to infrastructure change):

- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for exact string

Approved by:	portmgr (bapt)
Differential Revision:	D3756
2015-10-19 14:50:52 +00:00
..
ada.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
alias.mk - Instead of limiting effect of alias.mk to DragonFly, extend it to everything which is not FreeBSD 2015-07-03 16:54:08 +00:00
autoreconf.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
bison.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
blaslapack.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
charsetfix.mk Rewrite the target ordering code. 2015-08-17 13:31:25 +00:00
cmake.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
compiler.mk Drop 8 support. 2015-10-15 14:55:14 +00:00
cpe.mk CPE strings are all lower case. 2015-04-02 15:02:44 +00:00
cran.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
desktop-file-utils.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
desthack.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
display.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
dos2unix.mk Rewrite the target ordering code. 2015-08-17 13:31:25 +00:00
drupal.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
elixir.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
erlang.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
execinfo.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
fakeroot.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
fam.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
fmake.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
fonts.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
fortran.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
fuse.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gecko.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gettext-runtime.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gettext-tools.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gettext.mk Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The 2014-11-29 18:22:32 +00:00
ghostscript.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gmake.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gnustep.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gperf.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
gssapi.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
horde.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
iconv.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
imake.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
jpeg.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
kmod.mk Rewrite the target ordering code. 2015-08-17 13:31:25 +00:00
lha.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
libarchive.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
libedit.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
libtool.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
localbase.mk - Use -isystem instead of -I to add ${LOCALBASE}/include to the list of header search paths 2015-09-15 21:24:42 +00:00
lua.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
makeinfo.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
makeself.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
metaport.mk meta ports are always NO_ARCH 2015-04-01 17:59:57 +00:00
mono.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
motif.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
ncurses.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
ninja.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
objc.mk Drop 8 support. 2015-10-15 14:55:14 +00:00
openal.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
pathfix.mk Rewrite the target ordering code. 2015-08-17 13:31:25 +00:00
pear.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
perl5.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
pgsql.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
pkgconfig.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
pure.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
python.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
qmail.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
qmake.mk Update the Qt4 ports to 4.8.7. 2015-09-16 08:55:04 +00:00
readline.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
scons.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
shared-mime-info.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
shebangfix.mk Improve shebangfix framework 2015-10-19 14:50:52 +00:00
tar.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
tcl.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
terminfo.mk Add a way to cleanly handle terminfo.db file used by devel/ncurses 2015-10-08 14:12:53 +00:00
tk.mk Use USESDIR macro 2015-10-10 17:46:45 +00:00
twisted.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
uidfix.mk Always define GID, this fixes build of uidfix when building as root 2015-06-04 11:53:06 +00:00
uniquefiles.mk Rewrite the target ordering code. 2015-08-17 13:31:25 +00:00
waf.mk Fix a typo 2015-04-08 18:32:18 +00:00
webplugin.mk Rewrite the target ordering code. 2015-08-17 13:31:25 +00:00
xfce.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
zip.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00
zope.mk Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched 2015-10-15 07:36:38 +00:00