This hook tries to help people when removing ports from the tree.
It checks that
- there are no commented lines containing "=.*category/port".
- there are no moved entries pointing to the removed port
- there is a moved entry removing this port
> git rm -r devel/kf5-extra-cmake-modules [...] > git commit -m "remove devel/kf5-extra-cmake-modules" [pre-commit] ERROR: no MOVED entry for 'devel/kf5-extra-cmake-modules'. [pre-commit] ERROR: ports are marked moved to 'devel/kf5-extra-cmake-modules' in MOVED. [pre-commit] ERROR: port 'devel/kf5-extra-cmake-modules' still referenced in: * deskutils/syncthingtray/Makefile * graphics/drawpile/Makefile [pre-commit] ERROR: port 'devel/kf5-extra-cmake-modules' still referenced in: * Mk/Uses/kde.mk [pre-commit] ERROR: removal of ports is incomplete. Please fix above issues.