For my subsurface ebuild I had to modify the Makefile so that it compiles and install cleanly. Please see the provided patches Cheers Martin