Created attachment 257436 [details] [PATCH] Mk/Uses/cabal.mk: support for USE_CABAL in separate Makefile.modules
Hmm, not sure about this. On one hand it is a nice feature that would allow "make make-use-cabal" to create Makefile.modules automatically. On the other hand, only 2 ports in the tree are currently using this approach. The same feature would also be useful for Rust (and probably Go) ports, so I think we should first go through the standardization phase. If you want to push this further, I'd recommend adding Rust support and putting the patch on Phabricator for the portmgr group to review.
In reply to Gleb Popov from comment #1) > On the other hand, only 2 ports in the tree are currently using this approach. It's a chicken-and-egg problem: I hope many (maybe, all) haskell ports will benefit from moving large USE_CABAL stances to separate module files to not to clutter main Makefiles, just the feature needed to come first, and they will follow. > The same feature would also be useful for Rust (and probably Go) ports Rust support is already in the tree [0]. Go ports may also follow if they like to. > If you want to push this further, I'd recommend adding Rust support and putting the patch on Phabricator for the portmgr group to review. Sorry, as a non-committer I have no access to Phabricator. Would you mind to do this yourself, please? I may think you also would be interested to have this land in the tree… [0] https://cgit.freebsd.org/ports/tree/Mk/Uses/cargo.mk#n17