aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2013-05-01 21:31:36 +0200
committerAndreas Schäfer <gentryx@gmx.de>2013-05-01 21:31:36 +0200
commit73d67da0f5409c7483f6b8fa58bba95406cb4238 (patch)
tree35f7f096b8a9c868493844c844b41825d2204f52 /dev-util/VampirTrace/VampirTrace-5.14.3.ebuild
parentreverting inheritance (diff)
downloadsci-73d67da0f5409c7483f6b8fa58bba95406cb4238.tar.gz
sci-73d67da0f5409c7483f6b8fa58bba95406cb4238.tar.bz2
sci-73d67da0f5409c7483f6b8fa58bba95406cb4238.zip
selectively call cuda.eclass, depending on use flag
Diffstat (limited to 'dev-util/VampirTrace/VampirTrace-5.14.3.ebuild')
-rw-r--r--dev-util/VampirTrace/VampirTrace-5.14.3.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/dev-util/VampirTrace/VampirTrace-5.14.3.ebuild b/dev-util/VampirTrace/VampirTrace-5.14.3.ebuild
index 4331320ee..02a8faa88 100644
--- a/dev-util/VampirTrace/VampirTrace-5.14.3.ebuild
+++ b/dev-util/VampirTrace/VampirTrace-5.14.3.ebuild
@@ -4,9 +4,7 @@
EAPI=5
-use cuda && _CUDA_CLASS=cuda
-
-inherit eutils ${_CUDA_CLASS}
+inherit eutils cuda
DESCRIPTION="An open source library that allows detailed logging of program execution for parallel applications"
HOMEPAGE="http://www.tu-dresden.de/die_tu_dresden/zentrale_einrichtungen/zih/forschung/software_werkzeuge_zur_unterstuetzung_von_programmierung_und_optimierung/vampirtrace"
@@ -21,6 +19,10 @@ 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)
}