Your patch makes both whitespace changes and functional changes, which makes the functional changes difficult to spot. We would like to have those two separate things as two separate diffs so they can be committed separately.
Also—out of curiosity, because this situation seems to arise often and I don't understand why it arises—why didn't you attach your patch to the existing ticket #41174? Why did you open a duplicate ticket? If your intention is to give visibility to a ticket that seems to have been forgotten, then the correct procedure is to write to the macports-dev mailing list and remind us to look at the original ticket, not file a duplicate.