Ebuild Die Hooks

The register_die_hook function registers one or more names of functions to call when the ebuild fails for any reason, including file collisions with other packages.