Changes suggested by mgorny to bring the ebuild up to Gentoo standards.