Page MenuHomeFreeBSD

Add option helper for PLIST_SUB
ClosedPublic

Authored by antoine on Aug 21 2014, 2:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 20, 10:33 AM
Unknown Object (File)
Feb 22 2024, 7:56 PM
Unknown Object (File)
Feb 22 2024, 7:56 PM
Unknown Object (File)
Feb 22 2024, 7:56 PM
Unknown Object (File)
Feb 22 2024, 7:56 PM
Unknown Object (File)
Feb 22 2024, 7:39 PM
Unknown Object (File)
Dec 29 2023, 4:24 AM
Unknown Object (File)
Dec 23 2023, 4:14 AM
Subscribers

Details

Reviewers
mat
Group Reviewers
portmgr
Commits
rP365573: Add an option helper for PLIST_SUB
Summary

Add option helper for PLIST_SUB
Suggested by koobs

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

antoine retitled this revision from to Add option helper for PLIST_SUB.
antoine updated this object.
antoine edited the test plan for this revision. (Show Details)
antoine added a reviewer: koobs.

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
koobs edited edge metadata.
mat added a reviewer: mat.
This revision is now accepted and ready to land.Aug 21 2014, 4:07 PM

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}

antoine edited edge metadata.

Rename a few variables to avoid confusion

This revision is now accepted and ready to land.Aug 21 2014, 5:37 PM

Unqualified to review this shell magic. Taking my name off reviewers (previous change accepted).

koobs removed a reviewer: koobs.
antoine updated this revision to Diff 1203.

Closed by commit rP365573 (authored by @antoine).