Add option helper for PLIST_SUB
Suggested by koobs
Details
- Reviewers
mat - Group Reviewers
portmgr - Commits
- rP365573: Add an option helper for PLIST_SUB
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
This is super awesome, thanks for creating this @antoine!
Will help remove this kind of thing:
.if ${PORT_OPTIONS:MPYTHON} PLIST_SUB+= PYTHON_VER="${PYTHON_VER}" VERSION="${PORTVERSION}" .endif
Please, also add it to the porter's handbook, in head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml about line 4188 (and add INFO too, it kinda crept through.)
Mk/bsd.apache.mk:${module}_PLIST_SUB= "@comment "
Mk/bsd.apache.mk:${module}_PLIST_SUB= ""
Mk/bsd.apache.mk:PLIST_SUB+= MOD_${module}=${${module}_PLIST_SUB}
x11-themes/slim-themes/Makefile:NEW_PLIST_SUB:= ${PLIST_SUB} ${n}=""
x11-themes/slim-themes/Makefile:PLIST_SUB:= ${NEW_PLIST_SUB}
x11-themes/slim-themes/Makefile:NEW_PLIST_SUB:= ${PLIST_SUB} ${n}="@comment "
x11-themes/slim-themes/Makefile:PLIST_SUB:= ${NEW_PLIST_SUB}
Unqualified to review this shell magic. Taking my name off reviewers (previous change accepted).