1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # Copyright 1999-2015 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=5
- inherit eutils autotools
- MYP=ParMetis-${PV}
- DESCRIPTION="Parallel graph partitioner"
- HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/parmetis/"
- SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/OLD/${MYP}.tar.gz"
- SLOT="0"
- LICENSE="free-noncomm"
- KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
- IUSE="doc static-libs"
- DEPEND="virtual/mpi"
- RDEPEND="${DEPEND}
- !sci-libs/metis"
- S="${WORKDIR}/${MYP}"
- src_prepare() {
- epatch "${FILESDIR}"/${PN}-3.1.1-autotools.patch
- sed -i -e "s/3.1.1/${PV}/" configure.ac || die
- sed -i -e 's/order.c//' -e 's/lmatch.c//' ParMETISLib/Makefile.am || die
- eautoreconf
- export CC=mpicc
- }
- src_configure() {
- econf $(use_enable static-libs static)
- }
- src_install() {
- default
- use doc && dodoc Manual/*.pdf
- }
|