# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic toolchain-funcs DESCRIPTION="" HOMEPAGE="http://www.math.pitt.edu/~bard/xpp/xpp.html" SRC_URI="http://www.math.pitt.edu/~bard/bardware/xppaut5.96.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ia64" IUSE="doc" DEPEND="virtual/x11" RDEPEND="" S="${WORKDIR}/${P}" src_unpack() { unpack ${A} cd ${WORKDIR} sed "s:CFLAGS=:CFLAGS= ${CFLAGS}:" -i Makefile } src_compile() { cd ${WORKDIR} emake \ CC="$(tc-getCC)" \ || die "Make failed" } src_install() { dobin ${WORKDIR}/xppaut dodir /usr/share/xppaut if use doc; then dohtml ${WORKDIR}/help/*.html fi insinto /usr/share/xppaut doins ${WORKDIR}/help/odes/* doins ${WORKDIR}/ode/* echo einfo "Example ODE files have been added into" einfo "/usr/share/xppaut" echo }