Commit graph

14 commits

Author SHA1 Message Date
Mathieu Arnold
e8796ef612 Rewrite the target ordering code.
The targets now have priority assigned to them, and, when the dependency
ordering magic is done at the end of bsd.port.mk, they are sorted
according to their priority.

This allows USES to add targets easily and have them run whenever they
want without touching bsd.port.mk.

To add a target that runs just before post-configure run, do:

_USES_configure+=  695:my-post-configure
my-post-configure:
	do something

To fine tune when the target is ran, look at the values in the *_SEQ
variables at the end of bsd.port.mk, and the other USES.

Allow ports Makefiles to override the priority of targets with the
TARGET_ORDER_OVERRIDE variable.  For example, to get post-install
running earlier, (its default is 700) do:

TARGET_ORDER_OVERRIDE=	  650:post-install

While there, add options target helpers for the do-* targets when they
exist.

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3099
2015-08-17 13:31:25 +00:00
Antoine Brodin
6e381a9d53 Switch default python_CMD used by shebangfix to ${PYTHON_CMD} for ports
using python

PR:		201077
Reviewed by:	mat
With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D2955
2015-07-29 22:09:53 +00:00
Antoine Brodin
a6f984bc2e Fix a typo 2015-06-12 19:51:23 +00:00
Antoine Brodin
844ee7f594 Add ksh support to USES=shebangfix
PR:		ports/192781
Submitted by:	timp87
With hat:	portmgr
2014-08-18 19:34:46 +00:00
Gerald Pfeifer
5b4f2ad658 Move MAINTAINER lines to the end of the initial comment block and
make things a bit more consistent.

Approved by:	portmgr (bapt)
2014-03-15 10:31:54 +00:00
Pietro Cerutti
a3ccc1320a - Add 'tcl' and 'tk' support in SHEBANG_LANG
By default, /usr/bin/tclsh and /usr/bin/wish will be substituted with ${TCLSH}
and ${WISH}, respectively. This only works when USES contains 'tcl' or 'tk'.

Approved by:	portmgr (bapt)
2014-02-17 16:38:14 +00:00
Dag-Erling Smørgrav
0d15e5b853 Add java_CMD. Although Java programs don't use shebangs, it is sometimes
useful to have a centrally located list of interpreters for other purposes.

Approved by:	portmgr (mat)
2014-02-15 09:20:53 +00:00
Baptiste Daroussin
b420248356 Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
Gerald Pfeifer
545eced26f Extend description of USE=shebangfix. Improve grammar and formatting.
Approved by:	portmgr (bapt)
2013-11-28 23:57:53 +00:00
Baptiste Daroussin
8635d31369 Mark some targets .PHONY 2013-11-20 07:29:08 +00:00
Marcus von Appen
fecac8453d - Fix a documentation typo 2013-08-25 16:14:28 +00:00
Baptiste Daroussin
6c4c1fc2e9 Add some more comment to explain how SHEBANG_FILES works
Requested by:	kwm (gnome)
2013-06-10 10:18:59 +00:00
Baptiste Daroussin
5bf94309a6 Do not leave .bak files after converting shebangs 2013-05-29 10:34:57 +00:00
Baptiste Daroussin
358325c418 Add new USES: shebangfix
use it to fix shebang on files specified by SHEBANG_FILES macro, by default it
proposes default values for bash, perl, php, python, ruby, it can be customized
and extended
2013-05-06 22:23:09 +00:00