diff options
author | Piotr Luszczek <luszczek@icl.utk.edu> | 2020-03-23 01:10:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 00:10:15 -0500 |
commit | d3c1a4c94bbfe95aacbc473dcc24183b04cdb29f (patch) | |
tree | b7738cd13754be3b6432c23b6e864c6c2e5fed50 /var | |
parent | 0323f84e790c34d8e33672280ad0817b05abe90c (diff) | |
download | spack-d3c1a4c94bbfe95aacbc473dcc24183b04cdb29f.tar.gz spack-d3c1a4c94bbfe95aacbc473dcc24183b04cdb29f.tar.bz2 spack-d3c1a4c94bbfe95aacbc473dcc24183b04cdb29f.tar.xz spack-d3c1a4c94bbfe95aacbc473dcc24183b04cdb29f.zip |
xsdk-examples: add new package at version 0.1.0 (#15621)
* xsdk-examples: add new package at version 0.1.0
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/xsdk-examples/package.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xsdk-examples/package.py b/var/spack/repos/builtin/packages/xsdk-examples/package.py new file mode 100644 index 0000000000..418651ec72 --- /dev/null +++ b/var/spack/repos/builtin/packages/xsdk-examples/package.py @@ -0,0 +1,39 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +from spack import * + + +class XsdkExamples(CMakePackage): + """xSDK Examples show usage of libraries in the xSDK package.""" + + homepage = 'http://xsdk.info' + url = 'https://github.com/xsdk-project/xsdk-examples/archive/v0.1.0.tar.gz' + + maintainers = ['acfisher', 'balay', 'balos1', 'luszczek'] + + version('0.1.0', sha256='d24cab1db7c0872b6474d69e598df9c8e25d254d09c425fb0a6a8d6469b8018f') + + depends_on('xsdk@0.5.0', when='@0.1.0') + + def cmake_args(self): + spec = self.spec + args = [ + '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc, + '-DMPI_DIR=%s' % spec['mpi'].prefix, + '-DSUNDIALS_DIR=%s' % spec['sundials'].prefix, + '-DPETSC_DIR=%s' % spec['petsc'].prefix, + '-DPETSC_INCLUDE_DIR=%s' % spec['petsc'].prefix.include, + '-DPETSC_LIBRARY_DIR=%s' % spec['petsc'].prefix.lib, + '-DSUPERLUDIST_INCLUDE_DIR=%s' % + spec['superlu-dist'].prefix.include, + '-DSUPERLUDIST_LIBRARY_DIR=%s' % spec['superlu-dist'].prefix.lib, + ] + if 'trilinos' in spec: + args.extend([ + '-DTRILINOS_DIR:PATH=%s' % spec['trilinos'].prefix, + ]) + return args |