Gentoo Archives: gentoo-commits

From: Marius Brehler <marbre@××××××××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/trilinos/
Date: Tue, 12 Jul 2016 19:57:17
Message-Id: 1468069280.f69cc4403115f698e4e0b5f53f1cd5f4c501118b.marbre@gentoo
1 commit: f69cc4403115f698e4e0b5f53f1cd5f4c501118b
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 9 12:54:26 2016 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Sat Jul 9 13:01:20 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f69cc440
7
8 sci-libs/trilinos: remove old versions
9
10 Package-Manager: portage-2.2.28
11
12 sci-libs/trilinos/trilinos-11.10.2.ebuild | 203 --------------------------
13 sci-libs/trilinos/trilinos-11.12.1-r1.ebuild | 203 --------------------------
14 sci-libs/trilinos/trilinos-12.6.2.ebuild | 208 ---------------------------
15 3 files changed, 614 deletions(-)
16
17 diff --git a/sci-libs/trilinos/trilinos-11.10.2.ebuild b/sci-libs/trilinos/trilinos-11.10.2.ebuild
18 deleted file mode 100644
19 index f8cb050..0000000
20 --- a/sci-libs/trilinos/trilinos-11.10.2.ebuild
21 +++ /dev/null
22 @@ -1,203 +0,0 @@
23 -# Copyright 1999-2016 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -# $Id$
26 -
27 -EAPI=5
28 -
29 -inherit cmake-utils toolchain-funcs multilib toolchain-funcs
30 -
31 -DESCRIPTION="Scientific library collection for large scale problems"
32 -HOMEPAGE="http://trilinos.sandia.gov/"
33 -SRC_URI="http://trilinos.org/oldsite/download/files/${P}-Source.tar.gz"
34 -
35 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
36 -
37 -LICENSE="BSD LGPL-2.1"
38 -SLOT="0"
39 -
40 -IUSE="
41 - adolc arprec boost clp cppunit cuda eigen glpk gtest
42 - hdf5 hwloc hypre metis mkl mumps netcdf petsc qd qt4
43 - scalapack scotch sparse superlu taucs tbb test threads
44 - tvmet yaml zlib
45 -"
46 -
47 -# TODO: fix export cmake function for tests
48 -RESTRICT="test"
49 -
50 -RDEPEND="
51 - sys-libs/binutils-libs
52 - virtual/blas
53 - virtual/lapack
54 - virtual/mpi
55 - adolc? ( sci-libs/adolc )
56 - arprec? ( sci-libs/arprec )
57 - boost? ( dev-libs/boost )
58 - clp? ( sci-libs/coinor-clp )
59 - cuda? ( >=dev-util/nvidia-cuda-toolkit-3.2 )
60 - eigen? ( dev-cpp/eigen:3 )
61 - gtest? ( dev-cpp/gtest )
62 - hdf5? ( sci-libs/hdf5[mpi] )
63 - hypre? ( sci-libs/hypre )
64 - hwloc? ( sys-apps/hwloc )
65 - mkl? ( sci-libs/mkl )
66 - metis? ( || ( sci-libs/parmetis sci-libs/metis ) )
67 - mumps? ( sci-libs/mumps )
68 - netcdf? ( sci-libs/netcdf )
69 - petsc? ( sci-mathematics/petsc )
70 - qd? ( sci-libs/qd )
71 - qt4? ( dev-qt/qtgui:4 )
72 - scalapack? ( virtual/scalapack )
73 - scotch? ( sci-libs/scotch )
74 - sparse? ( sci-libs/cxsparse sci-libs/umfpack )
75 - superlu? ( sci-libs/superlu )
76 - taucs? ( sci-libs/taucs )
77 - tbb? ( dev-cpp/tbb )
78 - tvmet? ( dev-libs/tvmet )
79 - yaml? ( dev-cpp/yaml-cpp )
80 - zlib? ( sys-libs/zlib )"
81 -DEPEND="${RDEPEND}
82 - virtual/pkgconfig"
83 -
84 -S="${WORKDIR}/${P}-Source"
85 -
86 -trilinos_conf() {
87 - local dirs libs d
88 - for d in $($(tc-getPKG_CONFIG) --libs-only-L $1); do
89 - dirs="${dirs};${d:2}"
90 - done
91 - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_DIRS=${dirs:1}" )
92 - for d in $($(tc-getPKG_CONFIG) --libs-only-l $1); do
93 - libs="${libs};${d:2}"
94 - done
95 - [[ -n ${libs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_NAMES=${libs:1}" )
96 - dirs=""
97 - for d in $($(tc-getPKG_CONFIG) --cflags-only-I $1); do
98 - dirs="${dirs};${d:2}"
99 - done
100 - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_INCLUDE_DIRS=${dirs:1}" )
101 -}
102 -
103 -trilinos_enable() {
104 - cmake-utils_use $1 TPL_ENABLE_${2:-${1^^}}
105 -}
106 -
107 -src_prepare() {
108 - epatch "${FILESDIR}"/${PN}-11.4.2-fix-install-paths.patch
109 -}
110 -
111 -src_configure() {
112 -
113 - local mycmakeargs=(
114 - -DBUILD_SHARED_LIBS=ON
115 - -DCMAKE_INSTALL_PREFIX="${EPREFIX}"
116 - -DTrilinos_ENABLE_ALL_PACKAGES=ON
117 - -DTrilinos_INSTALL_INCLUDE_DIR="${EPREFIX}/usr/include/trilinos"
118 - -DTrilinos_INSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)/trilinos"
119 - -DTrilinos_INSTALL_CONFIG_DIR="${EPREFIX}/usr/$(get_libdir)/cmake"
120 - -DTPL_ENABLE_BinUtils=ON
121 - -DTPL_ENABLE_MPI=ON
122 - -DTPL_ENABLE_BLAS=ON
123 - -DTPL_ENABLE_LAPACK=ON
124 - $(cmake-utils_use test Trilinos_ENABLE_TESTS)
125 - $(trilinos_enable adolc)
126 - $(trilinos_enable arprec)
127 - $(trilinos_enable boost Boost)
128 - $(trilinos_enable boost BoostLib)
129 - $(trilinos_enable cppunit Cppunit)
130 - $(trilinos_enable clp Clp)
131 - $(trilinos_enable cuda)
132 - $(trilinos_enable cuda CUSPARSE)
133 - $(trilinos_enable cuda Thrust)
134 - $(trilinos_enable eigen Eigen)
135 - $(trilinos_enable gtest gtest)
136 - $(trilinos_enable glpk)
137 - $(trilinos_enable hdf5)
138 - $(trilinos_enable hwloc)
139 - $(trilinos_enable hypre)
140 - $(trilinos_enable metis)
141 - $(trilinos_enable mkl)
142 - $(trilinos_enable mkl PARDISO_MKL)
143 - $(trilinos_enable mumps)
144 - $(trilinos_enable netcdf Netcdf)
145 - $(trilinos_enable petsc)
146 - $(trilinos_enable qd)
147 - $(trilinos_enable qt4 QT)
148 - $(trilinos_enable scalapack)
149 - $(trilinos_enable scalapack BLACS)
150 - $(trilinos_enable scotch Scotch)
151 - $(trilinos_enable sparse AMD)
152 - $(trilinos_enable sparse CSparse)
153 - $(trilinos_enable sparse UMFPACK)
154 - $(trilinos_enable superlu SuperLU)
155 - $(trilinos_enable taucs)
156 - $(trilinos_enable tbb)
157 - $(trilinos_enable threads Pthread)
158 - $(trilinos_enable tvmet)
159 - $(trilinos_enable yaml yaml-cpp)
160 - $(trilinos_enable zlib Zlib)
161 - )
162 -
163 - use eigen && \
164 - mycmakeargs+=(
165 - -DEigen_INCLUDE_DIRS="${EPREFIX}/usr/include/eigen3"
166 - )
167 - use hypre && \
168 - mycmakeargs+=(
169 - -DHYPRE_INCLUDE_DIRS="${EPREFIX}/usr/include/hypre"
170 - )
171 - use scotch && \
172 - mycmakeargs+=(
173 - -DScotch_INCLUDE_DIRS="${EPREFIX}/usr/include/scotch"
174 - )
175 -
176 - # cxsparse is a rewrite of csparse + extras
177 - use sparse && \
178 - mycmakeargs+=(
179 - -DCSparse_LIBRARY_NAMES="cxsparse"
180 - )
181 -
182 - # mandatory blas and lapack
183 - trilinos_conf blas BLAS
184 - trilinos_conf lapack LAPACK
185 - use superlu && trilinos_conf superlu SuperLU
186 - use metis && trilinos_conf metis METIS
187 -
188 - # blacs library is included in scalapack these days
189 - if use scalapack; then
190 - trilinos_conf scalapack SCALAPACK
191 - mycmakeargs+=(
192 - -DBLACS_LIBRARY_NAMES="scalapack"
193 - -DBLACS_INCLUDE_DIRS="${EPREFIX}/usr/include/blacs"
194 - )
195 - fi
196 -
197 - # TODO: do we need that line?
198 - export CC=mpicc CXX=mpicxx && tc-export CC CXX
199 -
200 - # cmake-utils eclass patches the base directory CMakeLists.txt
201 - # which does not work for complex Trilinos CMake modules
202 - CMAKE_BUILD_TYPE=RELEASE cmake-utils_src_configure
203 -
204 - # TODO:
205 - # python bindings with python-r1
206 - # fix hypre bindings
207 - # fix hdf5
208 - # cuda/thrust is untested
209 - # do we always need mpi? and for all packages: blah[mpi] ?
210 - # install docs, examples
211 - # see what packages are related, do we need REQUIRED_USE
212 - # proper use flags description
213 - # add more use flags/packages ?
214 -}
215 -
216 -src_install() {
217 - cmake-utils_src_install
218 -
219 - # register $(get_libdir)/trilinos in LDPATH so that the dynamic linker
220 - # has a chance to pick up the libraries...
221 - cat >> "${T}"/99trilinos <<- EOF
222 - LDPATH="${EPREFIX}/usr/$(get_libdir)/trilinos"
223 - EOF
224 - doenvd "${T}"/99trilinos
225 -}
226
227 diff --git a/sci-libs/trilinos/trilinos-11.12.1-r1.ebuild b/sci-libs/trilinos/trilinos-11.12.1-r1.ebuild
228 deleted file mode 100644
229 index 868045b..0000000
230 --- a/sci-libs/trilinos/trilinos-11.12.1-r1.ebuild
231 +++ /dev/null
232 @@ -1,203 +0,0 @@
233 -# Copyright 1999-2016 Gentoo Foundation
234 -# Distributed under the terms of the GNU General Public License v2
235 -# $Id$
236 -
237 -EAPI=5
238 -
239 -inherit cmake-utils toolchain-funcs multilib toolchain-funcs
240 -
241 -DESCRIPTION="Scientific library collection for large scale problems"
242 -HOMEPAGE="http://trilinos.sandia.gov/"
243 -SRC_URI="http://trilinos.org/oldsite/download/files/${P}-Source.tar.gz"
244 -
245 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
246 -
247 -LICENSE="BSD LGPL-2.1"
248 -SLOT="0"
249 -
250 -IUSE="
251 - adolc arprec boost clp cppunit cuda eigen glpk gtest
252 - hdf5 hwloc hypre metis mkl mumps netcdf petsc qd qt4
253 - scalapack scotch sparse superlu taucs tbb test threads
254 - tvmet yaml zlib
255 -"
256 -
257 -# TODO: fix export cmake function for tests
258 -RESTRICT="test"
259 -
260 -RDEPEND="
261 - sys-libs/binutils-libs
262 - virtual/blas
263 - virtual/lapack
264 - virtual/mpi
265 - adolc? ( sci-libs/adolc )
266 - arprec? ( sci-libs/arprec )
267 - boost? ( dev-libs/boost )
268 - clp? ( sci-libs/coinor-clp )
269 - cuda? ( >=dev-util/nvidia-cuda-toolkit-3.2 )
270 - eigen? ( dev-cpp/eigen:3 )
271 - gtest? ( dev-cpp/gtest )
272 - hdf5? ( sci-libs/hdf5[mpi] )
273 - hypre? ( sci-libs/hypre )
274 - hwloc? ( sys-apps/hwloc )
275 - mkl? ( sci-libs/mkl )
276 - metis? ( || ( sci-libs/parmetis sci-libs/metis ) )
277 - mumps? ( sci-libs/mumps )
278 - netcdf? ( sci-libs/netcdf )
279 - petsc? ( sci-mathematics/petsc )
280 - qd? ( sci-libs/qd )
281 - qt4? ( dev-qt/qtgui:4 )
282 - scalapack? ( virtual/scalapack )
283 - scotch? ( sci-libs/scotch )
284 - sparse? ( sci-libs/cxsparse sci-libs/umfpack )
285 - superlu? ( sci-libs/superlu )
286 - taucs? ( sci-libs/taucs )
287 - tbb? ( dev-cpp/tbb )
288 - tvmet? ( dev-libs/tvmet )
289 - yaml? ( dev-cpp/yaml-cpp )
290 - zlib? ( sys-libs/zlib )"
291 -DEPEND="${RDEPEND}
292 - virtual/pkgconfig"
293 -
294 -S="${WORKDIR}/${P}-Source"
295 -
296 -trilinos_conf() {
297 - local dirs libs d
298 - for d in $($(tc-getPKG_CONFIG) --libs-only-L $1); do
299 - dirs="${dirs};${d:2}"
300 - done
301 - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_DIRS=${dirs:1}" )
302 - for d in $($(tc-getPKG_CONFIG) --libs-only-l $1); do
303 - libs="${libs};${d:2}"
304 - done
305 - [[ -n ${libs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_NAMES=${libs:1}" )
306 - dirs=""
307 - for d in $($(tc-getPKG_CONFIG) --cflags-only-I $1); do
308 - dirs="${dirs};${d:2}"
309 - done
310 - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_INCLUDE_DIRS=${dirs:1}" )
311 -}
312 -
313 -trilinos_enable() {
314 - cmake-utils_use $1 TPL_ENABLE_${2:-${1^^}}
315 -}
316 -
317 -src_prepare() {
318 - epatch "${FILESDIR}"/${P}-fix-install-paths.patch
319 -}
320 -
321 -src_configure() {
322 -
323 - local mycmakeargs=(
324 - -DBUILD_SHARED_LIBS=ON
325 - -DCMAKE_INSTALL_PREFIX="${EPREFIX}"
326 - -DTrilinos_ENABLE_ALL_PACKAGES=ON
327 - -DTrilinos_INSTALL_INCLUDE_DIR="${EPREFIX}/usr/include/trilinos"
328 - -DTrilinos_INSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)/trilinos"
329 - -DTrilinos_INSTALL_CONFIG_DIR="${EPREFIX}/usr/$(get_libdir)/cmake"
330 - -DTPL_ENABLE_BinUtils=ON
331 - -DTPL_ENABLE_MPI=ON
332 - -DTPL_ENABLE_BLAS=ON
333 - -DTPL_ENABLE_LAPACK=ON
334 - $(cmake-utils_use test Trilinos_ENABLE_TESTS)
335 - $(trilinos_enable adolc)
336 - $(trilinos_enable arprec)
337 - $(trilinos_enable boost Boost)
338 - $(trilinos_enable boost BoostLib)
339 - $(trilinos_enable cppunit Cppunit)
340 - $(trilinos_enable clp Clp)
341 - $(trilinos_enable cuda)
342 - $(trilinos_enable cuda CUSPARSE)
343 - $(trilinos_enable cuda Thrust)
344 - $(trilinos_enable eigen Eigen)
345 - $(trilinos_enable gtest gtest)
346 - $(trilinos_enable glpk)
347 - $(trilinos_enable hdf5)
348 - $(trilinos_enable hwloc)
349 - $(trilinos_enable hypre)
350 - $(trilinos_enable metis)
351 - $(trilinos_enable mkl)
352 - $(trilinos_enable mkl PARDISO_MKL)
353 - $(trilinos_enable mumps)
354 - $(trilinos_enable netcdf Netcdf)
355 - $(trilinos_enable petsc)
356 - $(trilinos_enable qd)
357 - $(trilinos_enable qt4 QT)
358 - $(trilinos_enable scalapack)
359 - $(trilinos_enable scalapack BLACS)
360 - $(trilinos_enable scotch Scotch)
361 - $(trilinos_enable sparse AMD)
362 - $(trilinos_enable sparse CSparse)
363 - $(trilinos_enable sparse UMFPACK)
364 - $(trilinos_enable superlu SuperLU)
365 - $(trilinos_enable taucs)
366 - $(trilinos_enable tbb)
367 - $(trilinos_enable threads Pthread)
368 - $(trilinos_enable tvmet)
369 - $(trilinos_enable yaml yaml-cpp)
370 - $(trilinos_enable zlib Zlib)
371 - )
372 -
373 - use eigen && \
374 - mycmakeargs+=(
375 - -DEigen_INCLUDE_DIRS="${EPREFIX}/usr/include/eigen3"
376 - )
377 - use hypre && \
378 - mycmakeargs+=(
379 - -DHYPRE_INCLUDE_DIRS="${EPREFIX}/usr/include/hypre"
380 - )
381 - use scotch && \
382 - mycmakeargs+=(
383 - -DScotch_INCLUDE_DIRS="${EPREFIX}/usr/include/scotch"
384 - )
385 -
386 - # cxsparse is a rewrite of csparse + extras
387 - use sparse && \
388 - mycmakeargs+=(
389 - -DCSparse_LIBRARY_NAMES="cxsparse"
390 - )
391 -
392 - # mandatory blas and lapack
393 - trilinos_conf blas BLAS
394 - trilinos_conf lapack LAPACK
395 - use superlu && trilinos_conf superlu SuperLU
396 - use metis && trilinos_conf metis METIS
397 -
398 - # blacs library is included in scalapack these days
399 - if use scalapack; then
400 - trilinos_conf scalapack SCALAPACK
401 - mycmakeargs+=(
402 - -DBLACS_LIBRARY_NAMES="scalapack"
403 - -DBLACS_INCLUDE_DIRS="${EPREFIX}/usr/include/blacs"
404 - )
405 - fi
406 -
407 - # TODO: do we need that line?
408 - export CC=mpicc CXX=mpicxx && tc-export CC CXX
409 -
410 - # cmake-utils eclass patches the base directory CMakeLists.txt
411 - # which does not work for complex Trilinos CMake modules
412 - CMAKE_BUILD_TYPE=RELEASE cmake-utils_src_configure
413 -
414 - # TODO:
415 - # python bindings with python-r1
416 - # fix hypre bindings
417 - # fix hdf5
418 - # cuda/thrust is untested
419 - # do we always need mpi? and for all packages: blah[mpi] ?
420 - # install docs, examples
421 - # see what packages are related, do we need REQUIRED_USE
422 - # proper use flags description
423 - # add more use flags/packages ?
424 -}
425 -
426 -src_install() {
427 - cmake-utils_src_install
428 -
429 - # register $(get_libdir)/trilinos in LDPATH so that the dynamic linker
430 - # has a chance to pick up the libraries...
431 - cat >> "${T}"/99trilinos <<- EOF
432 - LDPATH="${EPREFIX}/usr/$(get_libdir)/trilinos"
433 - EOF
434 - doenvd "${T}"/99trilinos
435 -}
436
437 diff --git a/sci-libs/trilinos/trilinos-12.6.2.ebuild b/sci-libs/trilinos/trilinos-12.6.2.ebuild
438 deleted file mode 100644
439 index 707a6f1..0000000
440 --- a/sci-libs/trilinos/trilinos-12.6.2.ebuild
441 +++ /dev/null
442 @@ -1,208 +0,0 @@
443 -# Copyright 1999-2016 Gentoo Foundation
444 -# Distributed under the terms of the GNU General Public License v2
445 -# $Id$
446 -
447 -EAPI=5
448 -
449 -inherit cmake-utils toolchain-funcs multilib toolchain-funcs
450 -
451 -DESCRIPTION="Scientific library collection for large scale problems"
452 -HOMEPAGE="http://trilinos.sandia.gov/"
453 -SRC_URI="http://trilinos.org/oldsite/download/files/${P}-Source.tar.gz"
454 -
455 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
456 -
457 -LICENSE="BSD LGPL-2.1"
458 -SLOT="0"
459 -
460 -IUSE="
461 - adolc arprec boost clp cppunit cuda eigen glpk gtest hdf5 hwloc hypre
462 - matio metis mkl mumps netcdf petsc qd qt4 scalapack scotch sparse
463 - superlu taucs tbb test threads tvmet yaml zlib
464 -"
465 -
466 -# TODO: fix export cmake function for tests
467 -RESTRICT="test"
468 -
469 -RDEPEND="
470 - sys-libs/binutils-libs
471 - virtual/blas
472 - virtual/lapack
473 - virtual/mpi
474 - adolc? ( sci-libs/adolc )
475 - arprec? ( sci-libs/arprec )
476 - boost? ( dev-libs/boost )
477 - clp? ( sci-libs/coinor-clp )
478 - cuda? ( >=dev-util/nvidia-cuda-toolkit-3.2 )
479 - eigen? ( dev-cpp/eigen:3 )
480 - gtest? ( dev-cpp/gtest )
481 - hdf5? ( sci-libs/hdf5[mpi] )
482 - hypre? ( sci-libs/hypre )
483 - hwloc? ( sys-apps/hwloc )
484 - matio? ( sci-libs/matio )
485 - mkl? ( sci-libs/mkl )
486 - metis? ( || ( sci-libs/parmetis sci-libs/metis ) )
487 - mumps? ( sci-libs/mumps )
488 - netcdf? ( sci-libs/netcdf )
489 - petsc? ( sci-mathematics/petsc )
490 - qd? ( sci-libs/qd )
491 - qt4? ( dev-qt/qtgui:4 )
492 - scalapack? ( virtual/scalapack )
493 - scotch? ( sci-libs/scotch )
494 - sparse? ( sci-libs/cxsparse sci-libs/umfpack )
495 - superlu? ( sci-libs/superlu )
496 - taucs? ( sci-libs/taucs )
497 - tbb? ( dev-cpp/tbb )
498 - tvmet? ( dev-libs/tvmet )
499 - yaml? ( dev-cpp/yaml-cpp )
500 - zlib? ( sys-libs/zlib )"
501 -DEPEND="${RDEPEND}
502 - virtual/pkgconfig"
503 -
504 -S="${WORKDIR}/${P}-Source"
505 -
506 -trilinos_conf() {
507 - local dirs libs d
508 - for d in $($(tc-getPKG_CONFIG) --libs-only-L $1); do
509 - dirs="${dirs};${d:2}"
510 - done
511 - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_DIRS=${dirs:1}" )
512 - for d in $($(tc-getPKG_CONFIG) --libs-only-l $1); do
513 - libs="${libs};${d:2}"
514 - done
515 - [[ -n ${libs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_NAMES=${libs:1}" )
516 - dirs=""
517 - for d in $($(tc-getPKG_CONFIG) --cflags-only-I $1); do
518 - dirs="${dirs};${d:2}"
519 - done
520 - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_INCLUDE_DIRS=${dirs:1}" )
521 -}
522 -
523 -trilinos_enable() {
524 - cmake-utils_use $1 TPL_ENABLE_${2:-${1^^}}
525 -}
526 -
527 -src_prepare() {
528 - epatch "${FILESDIR}"/${PN}-11.14.1-fix-install-paths.patch \
529 - "${FILESDIR}"/${PN}-12.6.2-fix_install_paths_for_destdir.patch
530 -}
531 -
532 -src_configure() {
533 -
534 - # temporarily disable SEACAS and pyTrilinos compilation
535 - local mycmakeargs=(
536 - -DBUILD_SHARED_LIBS=ON
537 - -DCMAKE_INSTALL_PREFIX="${EPREFIX}"
538 - -DTrilinos_ENABLE_ALL_PACKAGES=ON
539 - -DTrilinos_ENABLE_SEACAS=OFF
540 - -DTrilinos_ENABLE_PyTrilinos=OFF
541 - -DTrilinos_INSTALL_INCLUDE_DIR="${EPREFIX}/usr/include/trilinos"
542 - -DTrilinos_INSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)/trilinos"
543 - -DTrilinos_INSTALL_CONFIG_DIR="${EPREFIX}/usr/$(get_libdir)/cmake"
544 - -DTPL_ENABLE_BinUtils=ON
545 - -DTPL_ENABLE_MPI=ON
546 - -DTPL_ENABLE_BLAS=ON
547 - -DTPL_ENABLE_LAPACK=ON
548 - $(cmake-utils_use test Trilinos_ENABLE_TESTS)
549 - $(trilinos_enable adolc)
550 - $(trilinos_enable arprec)
551 - $(trilinos_enable boost Boost)
552 - $(trilinos_enable boost BoostLib)
553 - $(trilinos_enable cppunit Cppunit)
554 - $(trilinos_enable clp Clp)
555 - $(trilinos_enable cuda)
556 - $(trilinos_enable cuda CUSPARSE)
557 - $(trilinos_enable cuda Thrust)
558 - $(trilinos_enable eigen Eigen)
559 - $(trilinos_enable gtest gtest)
560 - $(trilinos_enable glpk)
561 - $(trilinos_enable hdf5)
562 - $(trilinos_enable hwloc)
563 - $(trilinos_enable hypre)
564 - $(trilinos_enable matio)
565 - $(trilinos_enable metis)
566 - $(trilinos_enable mkl)
567 - $(trilinos_enable mkl PARDISO_MKL)
568 - $(trilinos_enable mumps)
569 - $(trilinos_enable netcdf Netcdf)
570 - $(trilinos_enable petsc)
571 - $(trilinos_enable qd)
572 - $(trilinos_enable qt4 QT)
573 - $(trilinos_enable scalapack)
574 - $(trilinos_enable scalapack BLACS)
575 - $(trilinos_enable scotch Scotch)
576 - $(trilinos_enable sparse AMD)
577 - $(trilinos_enable sparse CSparse)
578 - $(trilinos_enable sparse UMFPACK)
579 - $(trilinos_enable superlu SuperLU)
580 - $(trilinos_enable taucs)
581 - $(trilinos_enable tbb)
582 - $(trilinos_enable threads Pthread)
583 - $(trilinos_enable tvmet)
584 - $(trilinos_enable yaml yaml-cpp)
585 - $(trilinos_enable zlib Zlib)
586 - )
587 -
588 - use eigen && \
589 - mycmakeargs+=(
590 - -DEigen_INCLUDE_DIRS="${EPREFIX}/usr/include/eigen3"
591 - )
592 - use hypre && \
593 - mycmakeargs+=(
594 - -DHYPRE_INCLUDE_DIRS="${EPREFIX}/usr/include/hypre"
595 - )
596 - use scotch && \
597 - mycmakeargs+=(
598 - -DScotch_INCLUDE_DIRS="${EPREFIX}/usr/include/scotch"
599 - )
600 -
601 - # cxsparse is a rewrite of csparse + extras
602 - use sparse && \
603 - mycmakeargs+=(
604 - -DCSparse_LIBRARY_NAMES="cxsparse"
605 - )
606 -
607 - # mandatory blas and lapack
608 - trilinos_conf blas BLAS
609 - trilinos_conf lapack LAPACK
610 - use superlu && trilinos_conf superlu SuperLU
611 - use metis && trilinos_conf metis METIS
612 -
613 - # blacs library is included in scalapack these days
614 - if use scalapack; then
615 - trilinos_conf scalapack SCALAPACK
616 - mycmakeargs+=(
617 - -DBLACS_LIBRARY_NAMES="scalapack"
618 - -DBLACS_INCLUDE_DIRS="${EPREFIX}/usr/include/blacs"
619 - )
620 - fi
621 -
622 - # TODO: do we need that line?
623 - export CC=mpicc CXX=mpicxx && tc-export CC CXX
624 -
625 - # cmake-utils eclass patches the base directory CMakeLists.txt
626 - # which does not work for complex Trilinos CMake modules
627 - CMAKE_BUILD_TYPE=RELEASE cmake-utils_src_configure
628 -
629 - # TODO:
630 - # python bindings with python-r1
631 - # fix hypre bindings
632 - # fix hdf5
633 - # cuda/thrust is untested
634 - # do we always need mpi? and for all packages: blah[mpi] ?
635 - # install docs, examples
636 - # see what packages are related, do we need REQUIRED_USE
637 - # proper use flags description
638 - # add more use flags/packages ?
639 -}
640 -
641 -src_install() {
642 - cmake-utils_src_install
643 -
644 - # register $(get_libdir)/trilinos in LDPATH so that the dynamic linker
645 - # has a chance to pick up the libraries...
646 - cat >> "${T}"/99trilinos <<- EOF
647 - LDPATH="${EPREFIX}/usr/$(get_libdir)/trilinos"
648 - EOF
649 - doenvd "${T}"/99trilinos
650 -}