/[ports]
ViewVC logotype

Revision 399684


Jump to revision: Previous Next
Author: amdmi3
Date: Mon Oct 19 14:50:52 2015 UTC (8 years, 8 months ago)
Changed paths: 93
Log Message:
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


Changed paths

Path Details
Directoryhead/Mk/Uses/shebangfix.mk modified , text changed
Directoryhead/astro/weather/Makefile modified , text changed
Directoryhead/audio/lollypop/Makefile modified , text changed
Directoryhead/audio/mma/Makefile modified , text changed
Directoryhead/audio/pulseaudio/Makefile modified , text changed
Directoryhead/audio/py-tagpy/Makefile modified , text changed
Directoryhead/audio/ripit/Makefile modified , text changed
Directoryhead/audio/sphinx/Makefile modified , text changed
Directoryhead/chinese/pyzy/Makefile modified , text changed
Directoryhead/chinese/ydict/Makefile modified , text changed
Directoryhead/databases/luadbi/Makefile modified , text changed
Directoryhead/databases/nagios-check_mongodb/Makefile modified , text changed
Directoryhead/databases/pgtune/Makefile modified , text changed
Directoryhead/databases/postgresql_autodoc/Makefile modified , text changed
Directoryhead/databases/skytools/Makefile modified , text changed
Directoryhead/deskutils/tel/Makefile modified , text changed
Directoryhead/deskutils/tnote/Makefile modified , text changed
Directoryhead/deskutils/virt-manager/Makefile modified , text changed
Directoryhead/devel/cvs2svn/Makefile modified , text changed
Directoryhead/devel/doxygen/Makefile modified , text changed
Directoryhead/devel/libnxt/Makefile modified , text changed
Directoryhead/devel/lua-alien/Makefile modified , text changed
Directoryhead/devel/py-gflags/Makefile modified , text changed
Directoryhead/devel/py-ice/Makefile modified , text changed
Directoryhead/devel/py-ioflo/Makefile modified , text changed
Directoryhead/devel/py-pip/Makefile modified , text changed
Directoryhead/devel/py-pymtbl/Makefile modified , text changed
Directoryhead/devel/renpy/Makefile modified , text changed
Directoryhead/emulators/pipelight/Makefile modified , text changed
Directoryhead/games/childsplay/Makefile modified , text changed
Directoryhead/games/linux-enemyterritory-jaymod/Makefile modified , text changed
Directoryhead/games/linux-enemyterritory-jaymod-21/Makefile modified , text changed
Directoryhead/games/lostfeathers/Makefile modified , text changed
Directoryhead/games/oneisenough/Makefile modified , text changed
Directoryhead/games/schwarzweiss/Makefile modified , text changed
Directoryhead/games/starfighter/Makefile modified , text changed
Directoryhead/games/super_mario_bros_python/Makefile modified , text changed
Directoryhead/graphics/imgv/Makefile modified , text changed
Directoryhead/graphics/inkscape/Makefile modified , text changed
Directoryhead/graphics/py-cairo/Makefile modified , text changed
Directoryhead/graphics/py-gdal/Makefile modified , text changed
Directoryhead/graphics/py3-cairo/Makefile modified , text changed
Directoryhead/japanese/kcode/Makefile modified , text changed
Directoryhead/japanese/man/Makefile modified , text changed
Directoryhead/lang/cjs/Makefile modified , text changed
Directoryhead/lang/go/Makefile modified , text changed
Directoryhead/lang/go14/Makefile modified , text changed
Directoryhead/lang/python-tools/Makefile modified , text changed
Directoryhead/lang/v8/Makefile modified , text changed
Directoryhead/mail/bsfilter/Makefile modified , text changed
Directoryhead/mail/fetchmail/Makefile modified , text changed
Directoryhead/mail/postfix/Makefile modified , text changed
Directoryhead/mail/postfix-current/Makefile modified , text changed
Directoryhead/mail/postfix-policyd-weight/Makefile modified , text changed
Directoryhead/mail/postfix-postfwd/Makefile modified , text changed
Directoryhead/mail/tumgreyspf/Makefile modified , text changed
Directoryhead/math/mosesdecoder/Makefile modified , text changed
Directoryhead/misc/gimp-help-en/Makefile modified , text changed
Directoryhead/multimedia/lives/Makefile modified , text changed
Directoryhead/multimedia/pymp/Makefile modified , text changed
Directoryhead/net/cloud-init/Makefile modified , text changed
Directoryhead/net/get_iplayer/Makefile modified , text changed
Directoryhead/net/polyorb/Makefile modified , text changed
Directoryhead/net/py-pynmsg/Makefile modified , text changed
Directoryhead/net/py-pysphere/Makefile modified , text changed
Directoryhead/net/samba4/Makefile modified , text changed
Directoryhead/net/samba41/Makefile modified , text changed
Directoryhead/net/samba42/Makefile modified , text changed
Directoryhead/net-im/prosody/Makefile modified , text changed
Directoryhead/net-mgmt/netams/Makefile modified , text changed
Directoryhead/news/nzbget/Makefile modified , text changed
Directoryhead/news/xpn/Makefile modified , text changed
Directoryhead/print/texlive-texmf/Makefile modified , text changed
Directoryhead/security/cops/Makefile modified , text changed
Directoryhead/sysutils/racktables/Makefile modified , text changed
Directoryhead/sysutils/sd-agent/Makefile modified , text changed
Directoryhead/sysutils/tdir/Makefile modified , text changed
Directoryhead/sysutils/zfs-stats/Makefile modified , text changed
Directoryhead/textproc/asciidoc/Makefile modified , text changed
Directoryhead/textproc/google-ctemplate/Makefile modified , text changed
Directoryhead/textproc/py2html/Makefile modified , text changed
Directoryhead/textproc/sigil/Makefile modified , text changed
Directoryhead/www/calendarserver/Makefile modified , text changed
Directoryhead/www/joomla25/Makefile modified , text changed
Directoryhead/www/joomla31/Makefile modified , text changed
Directoryhead/www/libhpack/Makefile modified , text changed
Directoryhead/www/py-GinGin/Makefile modified , text changed
Directoryhead/www/py-djblets/Makefile modified , text changed
Directoryhead/www/varnish4/Makefile modified , text changed
Directoryhead/x11/eaglemode/Makefile modified , text changed
Directoryhead/x11/scripts/Makefile modified , text changed
Directoryhead/x11/wbarconf/Makefile modified , text changed
Directoryhead/x11-wm/ede/Makefile modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27