Created attachment 154774 [details] patch-add-support-for-USE_REPO_DEPENDS v1.0.0 The attached patch adds support for two new special behaviour variables: USE_REPO_DEPENDS and USE_REPO_DEPENDS_ONLY. They follow the same behaviour pattern as USE_PACKAGE_DEPENDS(_ONLY) and can act as a fallback to USE_PACKAGE_DEPENDS(_ONLY).
Created attachment 154775 [details] patch-add-support-for-USE_REPO_DEPENDS v1.0.1 Fix extra ; after else
Created attachment 158096 [details] Update patch for upstream changes
I think it should be pkg install -yA so that they get cleaned up with pkg autoremove.
This will have to wait for: https://reviews.freebsd.org/D2897 That was my plan to add that afterward, thanks for having done the patch and Yes it would need -A :)
The "-A" is done in the main body of the port. My rational is that some other location of the port's tree may want to use ${PKG_INSTALL} and intend it to be a non-dependency.
Created attachment 160131 [details] Patch v2.0.0 Update patch for changes introduced in https://reviews.freebsd.org/D2897.
Created attachment 164242 [details] Patcch v2.0.1 Update patch for changes in Mk/Scripts/do-depends.sh
Ping, can someone from portmgr please have a look at this?
*** This bug has been marked as a duplicate of bug 208083 ***