summaryrefslogtreecommitdiff
blob: cc44899551bc387081a661f1eaddce8390eca488 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

DESCRIPTION="Library for creating and manipulating (un)directed graphs."
HOMEPAGE="http://igraph.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64-linux"
IUSE="+arpack +blas debug +gmp +graphml +lapack profile shell"

DEPEND="sys-devel/libtool
	graphml? ( dev-libs/libxml2 )
	gmp? ( dev-libs/gmp )
	blas? ( virtual/blas )
	lapack? ( virtual/lapack )
	arpack? ( sci-libs/arpack )"
RDEPEND="${DEPEND}"

src_configure() {
	econf \
		$(use_enable graphml) \
		$(use_enable gmp) \
		$(use_enable shell) \
		$(use_enable profile profiling) \
		$(use_enable debug) \
		$(use_with blas external-blas) \
		$(use_with lapack external-lapack) \
		$(use_with arpack external-arpack) \
		|| die "configure failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"
}