Created attachment 211045 [details]
Ports shouldn't be patching files multiple times, so here's a patch that adds a warning for that to portlint. I remembered just enough Perl to make it work, please feel free to suggest changes or rework it.
Created attachment 211046 [details]
Oops, smartmatch is broken, avoid it.
Committed to 2.18.11. Thanks.