| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/metis/metis-4.0.3.ebuild,v 1.5 2012/10/15 22:36:28 naota Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools eutils fortran-2
|
| 8 |
|
| 9 |
DESCRIPTION="A package for unstructured serial graph partitioning"
|
| 10 |
HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/"
|
| 11 |
SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/OLD/${P}.tar.gz"
|
| 12 |
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
| 15 |
LICENSE="free-noncomm"
|
| 16 |
IUSE="doc static-libs"
|
| 17 |
|
| 18 |
DEPEND=""
|
| 19 |
RDEPEND="${DEPEND}
|
| 20 |
!sci-libs/parmetis"
|
| 21 |
|
| 22 |
src_prepare() {
|
| 23 |
epatch "${FILESDIR}"/${PN}-4.0.1-autotools.patch
|
| 24 |
sed -i -e "s/4.0.1/${PV}/" configure.ac || die
|
| 25 |
eautoreconf
|
| 26 |
}
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
econf $(use_enable static-libs static)
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
default
|
| 34 |
use doc && dodoc Doc/manual.ps
|
| 35 |
}
|