Summary says it all. The swi-prolog-5.6.23.ebuild wants to do this: epatch "${FILESDIR}"/${PN}-CFLAGS-r3.patch but there is no such file.
Fixed in cvs. Thanks Keri