Missing '}' after the end of src_unpack(): src_unpack() { unpack ${A} cd ${S} patch -p0 < ${FILESDIR}/${P}-gentoo.patch src_compile() {
sorry about that. fixed in portage.