blob: 1806544907e9557bbed5803fab4de56fe7fc2fdf (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit versionator
if [[ ${PV} == "9999" ]] ; then
_SCM=mercurial
EHG_REPO_URI="http://bitbucket.org/gentryx/libgeodecomp"
SRC_URI=""
KEYWORDS=""
CMAKE_USE_DIR="${S}/src"
else
SRC_URI="http://www.libgeodecomp.org/archive/${P}.tar.bz2"
KEYWORDS="~amd64 ~ppc ~x86"
S="${WORKDIR}/${P}/src"
fi
inherit cmake-utils vcs-snapshot ${_SCM}
DESCRIPTION="LibGeoDecomp is an auto-parallelizing library to speed up your stencil code based computer simulations. It runs on virtually all current architectures, be it multi-cores, GPUs, or large scale MPI clusters. "
HOMEPAGE="http://www.libgeodecomp.org"
LICENSE="LGPL-3.0"
SLOT="0"
IUSE="cuda doc mpi opencl"
RDEPEND=">=dev-libs/boost-1.48
cuda? ( dev-util/nvidia-cuda-toolkit )
mpi? ( || (
sys-cluster/openmpi[cxx]
sys-cluster/mpich2[cxx]
) )
opencl? ( virtual/opencl )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
"
# -D FEATURE_QT=false -D FEATURE_OPENCL=false -D FEATURE_CUDA=false mpi
src_compile() {
cmake-utils_src_compile
if ( use doc); then
cmake-utils_src_compile doc
fi
}
src_install() {
cmake-utils_src_install
dodoc README
if ( use doc); then
dohtml doc/html/*
fi
}
|