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

inherit rpm

SLOT="0"
LICENSE="|| ( GPL-2 BSD-2 )"

KEYWORDS="~amd64 ~x86"

DESCRIPTION="OpenIB - IBM eServer eHCA Infiniband device driver for Linux on
POWER"
HOMEPAGE="http://www.openfabrics.org/"
OFED_VER="1.3.1"
OFED_P="OFED-${OFED_VER}"
SRC_URI="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_VER}/${OFED_P}.tgz"

IUSE=""

DEPEND="sys-cluster/libibverbs"

src_unpack() {
	unpack ${A} || die "unpack failed"
	rpm_unpack "${OFED_P}/SRPMS/${P}-1.ofed${OFED_VER}.src.rpm"
	tar xzf "${P}.tar.gz"
}

src_compile() {
	econf || die "could not configure"
	emake || die "emake failed"
}

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