summaryrefslogtreecommitdiff
blob: 77028c8dcfaa454b2b76bb837f4b5147616403d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:  $

inherit eutils

DESCRIPTION="Parallel graph partitioner"
HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/parmetis/"
SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/ParMetis-${PV}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="free-noncomm"

SLOT="0"
IUSE="lam mpich"

DEPEND="!mpich? ( !lam? ( sys-cluster/openmpi ) )
	lam? ( sys-cluster/lam-mpi )
	mpich? ( sys-cluster/mpich2 )"
RDEPEND="${DEPEND}"

S=${WORKDIR}/ParMetis-${PV}

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}.patch
}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	dolib *.a *.so *.so.${PV}

	insinto /usr/include
	doins parmetis.h
	insinto /usr/include/metis
	doins METISLib/*.h
	insinto /usr/include/parmetis
	doins ParMETISLib/*.h

	insinto /usr/share/doc/${PF}
	newins Manual/manual.pdf ParMetis.pdf
}