Since last year pear has changed the package layout. And since several months ago,
I have seen a lot of FreeBSD maintainers removing the CATEGORY flag from their ports.
The problem with that is the packages won’t be installed at the right location anymore.
Here is a patch to fix the problem, feel free to test:
I would be happy if anyone has a better suggestion to replace the flag CAT_IN_WRKSRC…