# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Worldforge math library." HOMEPAGE="http://www.worldforge.org/dev/eng/libraries/wfmath" SRC_URI="mirror://sourceforge/worldforge/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" RDEPEND="" DEPEND="doc? ( app-doc/doxygen )" src_compile() { econf || die "econf failed" emake || die "emake failed" if use doc; then cd doc && emake doc || die "making doc failed" fi } src_install() { emake DESTDIR="${D}" install || die "install failed" dodoc AUTHORS ChangeLog NEWS README TODO || "installing docs failed" if use doc; then dohtml doc/html/* || "installing html failed" fi }