aboutsummaryrefslogtreecommitdiff
blob: 956afcbe024fc3d16393dd69368ab951f499b0ed (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
40
41
42
43
44
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils cuda

MY_PV="${PV}-gpu2"
MY_P="${PN}-${MY_PV}"

DESCRIPTION="An open source library that allows detailed logging of program execution for parallel applications"
HOMEPAGE="http://tu-dresden.de/die_tu_dresden/zentrale_einrichtungen/zih/forschung/projekte/vampirtrace/accelerator"
SRC_URI="http://wwwpub.zih.tu-dresden.de/~mlieber/dcount/dcount.php?package=gputrace&get=${MY_P}.tar.gz"

SLOT="0"
LICENSE="vampir"
KEYWORDS="~amd64"
IUSE="cuda"

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

DEPEND="
	virtual/mpi
	cuda? ( >=dev-util/nvidia-cuda-toolkit-4.0.0 )"

src_prepare() {
	use cuda && cuda_src_prepare
}

src_configure() {
	econf $(use_with cuda cuda-dir "${EPREFIX}"/opt/cuda)
}

src_install() {
	default
	# avoid collisions with app-text/lcdf-typetools:
	mv "${D}/usr/bin/otfinfo" "${D}/usr/bin/otfinfo.vampir" || die
	if [ -e "${D}/usr/lib/debug/usr/bin/otfinfo.debug" ]; then
		mv "${D}/usr/lib/debug/usr/bin/otfinfo.debug" "${D}/usr/lib/debug/usr/bin/otfinfo.vampir.debug" || die
	fi
	# libtool is already installed:
	rm "${D}/usr/share/libtool" || die
}