During modification of FreshPorts to cater for virtual
categories, I found ports which contained duplicated
entries within the output of make -V CATEGORIES.
The attached patch fixes that.
This looks like the type of thing I like to work on.