blob: 0f7cfc5e944aa602c580e03cf8eb18f4e279617f (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/parmetis/parmetis-3.1.1.ebuild,v 1.1 2009/03/14 11:59:18 bicatali Exp $
EAPI=2
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}/${MYP}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="free-noncomm"
SLOT="0"
IUSE="doc"
DEPEND="virtual/mpi"
RDEPEND="${DEPEND}
!sci-libs/metis"
S="${WORKDIR}/${MYP}"
src_prepare() {
cd "${WORKDIR}"
epatch "${FILESDIR}"/${P}-autotools.patch
cd "${S}"
eautoreconf
export CC=mpicc
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README CHANGES
if use doc; then
insinto /usr/share/doc/${PF}
doins Manual/*.pdf || die
fi
}
|