emake PREFIX=/usr DESTDIR="${D}"LIBDIR="/usr/$(get_libdir)/hevea"LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
if use ocamlopt;then
emake PREFIX=/usr || die "Failed to build native code binaries"
else
emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
fi
}
src_install(){
if use ocamlopt;then
emake DESTDIR="${D}"PREFIX=/usr install || die "Install failed"
else
emake DESTDIR="${D}"PREFIX=/usr TARGET=byte install || die "Install failed"
fi
dodoc README CHANGES
}
# If texmf-update is present this means we have a latex install; update it so
# that hevea.sty can be found
# Do not (r)depend on latex though because hevea does not need it itself
# If latex is installed later, it will see hevea.sty