With hat: portmgr
It uses gperf from base if it exists and its version is 3.x.x Otherwise it uses gperf from ports