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

EAPI=5

inherit autotools-utils

MY_P="${PN^^[gasn]}-${PV}"
DESCRIPTION="networking middleware layer to implementing partitioned global address space (PGAS) language"
HOMEPAGE="http://gasnet.lbl.gov/"
SRC_URI="http://gasnet.lbl.gov/${MY_P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="mpi threads"

DEPEND="mpi? ( virtual/mpi )"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	find . \( -name Makefile.am -or -name "*.mak" \) -exec sed -i '/^docdir/s/^/#/' {} + || die
	AUTOTOOLS_AUTORECONF=yes
	autotools-utils_src_prepare
}

src_configure() {
	local myeconfargs=(
		$(use_enable threads pthreads)
		$(use_enable mpi)
	)
	autotools-utils_src_configure
}