At times a package wants to do a few things before and after it's removal (adding/removing groups, removing config files etc...) for this we should have functions in the EAPI that will be executed before and after removal. Reproducible: Always Steps to Reproduce:
Wouldn't the existing pkg_prerm and pkg_postrm functions be suitable for this? The REPLACED_BY_VERSION variable in EAPI 4 could also be helpful (see bug 273646).
Unfortunately I want aware of that (the pages were newly added?) So this one needs to be closed.