blob: 23e67ecdc92e8a149e6cb3681949573148b02d4f (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/parmetis/parmetis-3.2.0.ebuild,v 1.2 2011/08/09 21:34:59 bicatali Exp $
EAPI=4
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"
KEYWORDS="~amd64 ~x86"
LICENSE="free-noncomm"
SLOT="0"
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
}
|