# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils MY_PV=${PV/_/} DESCRIPTION="Serial graph partitioner" HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/index.html" SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-${MY_PV}.tar.gz" LICENSE="NOT_FREE" IUSE="" SLOT="0" KEYWORDS="~amd64 ~x86" S="${WORKDIR}/metis-${MY_PV}" src_unpack() { unpack ${A} cd ${WORKDIR} epatch "${FILESDIR}"/${P}-autotools.patch cd ${S} eautoreconf } src_compile() { econf || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" dodoc CHANGES.v5 INSTALL.v5 }