[MacPorts] #22147: Variable in script need to be updated for MacPorts