pub fn write_ebuild( ebuild_data: EbuildConfig, ebuild_path: &Path, template_path: Option<&Path>) -> Result<()>