summaryrefslogtreecommitdiff
path: root/Mk/Uses/cran.mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-08-17 13:31:25 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-08-17 13:31:25 +0000
commite8796ef61223223030544d2fe1b51be11e5e648b (patch)
tree15b8ce30f8e7f1a99871e40ce43b8bd49254597d /Mk/Uses/cran.mk
parent- Fix *_DEPENDS (diff)
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
Notes
Notes: svn path=/head/; revision=394503
Diffstat (limited to 'Mk/Uses/cran.mk')
-rw-r--r--Mk/Uses/cran.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mk/Uses/cran.mk b/Mk/Uses/cran.mk
index 350a23001876..dd6006409330 100644
--- a/Mk/Uses/cran.mk
+++ b/Mk/Uses/cran.mk
@@ -70,11 +70,10 @@ do-install:
.endif
.if ${cran_ARGS:Mauto-plist}
-.if !target(post-install-script)
-post-install-script:
+_USES_install+= 750:cran-auto-plist
+cran-auto-plist:
@${FIND} -ds ${STAGEDIR}${PREFIX}/${R_MOD_DIR} \( -type f -or -type l \) -print | \
${SED} -E -e 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
.endif
-.endif
.endif #_INCLUDE_USES_CRAN_MK