Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/libgeodecomp/
Date: Wed, 29 Jan 2014 09:17:58
Message-Id: 1390825880.066dbc41d31f13f7386a0dcfa7cc49364b5c3229.jlec@gentoo
1 commit: 066dbc41d31f13f7386a0dcfa7cc49364b5c3229
2 Author: Andreas Schäfer <gentryx <AT> gmx <DOT> de>
3 AuthorDate: Mon Jan 27 12:31:20 2014 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 12:31:20 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=066dbc41
7
8 updated LibGeoDecomp ebuild to work with changes to the build system from upstream
9
10 ---
11 sci-libs/libgeodecomp/libgeodecomp-9999.ebuild | 36 ++++++++++++++++++++++----
12 1 file changed, 31 insertions(+), 5 deletions(-)
13
14 diff --git a/sci-libs/libgeodecomp/libgeodecomp-9999.ebuild b/sci-libs/libgeodecomp/libgeodecomp-9999.ebuild
15 index c32453a..ffb59f4 100644
16 --- a/sci-libs/libgeodecomp/libgeodecomp-9999.ebuild
17 +++ b/sci-libs/libgeodecomp/libgeodecomp-9999.ebuild
18 @@ -9,11 +9,11 @@ if [ ${PV} == "9999" ] ; then
19 EHG_REPO_URI="http://bitbucket.org/gentryx/libgeodecomp"
20 SRC_URI=""
21 KEYWORDS=""
22 - CMAKE_USE_DIR="${S}/src"
23 + CMAKE_USE_DIR="${S}"
24 else
25 SRC_URI="http://www.libgeodecomp.org/archive/${P}.tar.bz2"
26 KEYWORDS="~amd64 ~ppc ~x86"
27 - S="${WORKDIR}/${P}/src"
28 + S="${WORKDIR}/${P}"
29 fi
30
31 inherit cmake-utils ${_SCM}
32 @@ -23,12 +23,38 @@ HOMEPAGE="http://www.libgeodecomp.org"
33
34 SLOT="0"
35 LICENSE="LGPL-3"
36 -IUSE="doc"
37 +IUSE="cuda doc hpx mpi opencl opencv qt scotch threads visit"
38
39 -RDEPEND=">=dev-libs/boost-1.48"
40 +RDEPEND="
41 + >=dev-libs/boost-1.48
42 + cuda? ( dev-util/nvidia-cuda-toolkit )
43 + hpx? ( =sys-cluster/hpx-9999 )
44 + mpi? ( virtual/mpi )
45 + opencl? ( virtual/opencl )
46 + opencv? ( media-libs/opencv )
47 + qt? ( dev-qt/qtgui )
48 + scotch? ( sci-libs/scotch )
49 + visit? ( sci-visualization/visit )"
50 DEPEND="${RDEPEND}
51 doc? ( app-doc/doxygen )"
52
53 +src_configure() {
54 + local mycmakeargs=(
55 + -DWITH_BOOST_SERIALIZATION=true
56 + $(cmake-utils_use_with cuda CUDA)
57 + $(cmake-utils_use_with hpx HPX)
58 + $(cmake-utils_use_with mpi BOOST_MPI)
59 + $(cmake-utils_use_with mpi MPI)
60 + $(cmake-utils_use_with opencl OPENCL)
61 + $(cmake-utils_use_with opencv OPENCV)
62 + $(cmake-utils_use_with qt QT)
63 + $(cmake-utils_use_with scotch SCOTCH)
64 + $(cmake-utils_use_with threads THREADS)
65 + $(cmake-utils_use_with visit VISIT)
66 + )
67 + cmake-utils_src_configure
68 +}
69 +
70 src_compile() {
71 cmake-utils_src_compile
72 use doc && cmake-utils_src_make doc
73 @@ -42,4 +68,4 @@ src_install() {
74
75 src_test() {
76 cmake-utils_src_make test
77 -}
78 \ No newline at end of file
79 +}