unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-configure.patch
eautoconf
epatch "${FILESDIR}"/${P}-makefile.patch
eautoreconf
}
src_compile() {
econf --docdir="/usr/share/doc/${PF}"
emake || die "compile failed"
src_install() {
dobin ${PN}
emake DESTDIR="${D}" install || die "install failed"
dodoc README
dohtml manual.html