The idea is to tag pages about packages that are also in the portage tree using the category mechanism of Mediawiki. Do this by placing a page about a particular ebuild in a category corresponding to its portage tree category. For example, put
[[Category:app-shells]] on the page for
bash. If it is a category that is not in Mediawiki yet, put
[[Category:ebuilds]] on the category created.