summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2018-02-09 10:49:31 -0800
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-02-09 19:49:31 +0100
commitdeb1a93f8137d9d14c5bf5b1cf601599c74d1243 (patch)
treebc43e30eae91b9bc2fbb58bc2e4f709159f4598e
parent5defe9ab00912259d9eb2ec69e647305d7a8402e (diff)
downloadspack-deb1a93f8137d9d14c5bf5b1cf601599c74d1243.tar.gz
spack-deb1a93f8137d9d14c5bf5b1cf601599c74d1243.tar.bz2
spack-deb1a93f8137d9d14c5bf5b1cf601599c74d1243.tar.xz
spack-deb1a93f8137d9d14c5bf5b1cf601599c74d1243.zip
xbraid@2.2.0: new package (#7205)
-rw-r--r--var/spack/repos/builtin/packages/xbraid/package.py68
1 files changed, 68 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xbraid/package.py b/var/spack/repos/builtin/packages/xbraid/package.py
new file mode 100644
index 0000000000..05032ce128
--- /dev/null
+++ b/var/spack/repos/builtin/packages/xbraid/package.py
@@ -0,0 +1,68 @@
+##############################################################################
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+import glob
+import os.path
+
+
+class Xbraid(MakefilePackage):
+ """XBraid: Parallel time integration with Multigrid"""
+
+ homepage = "https://computation.llnl.gov/projects/parallel-time-integration-multigrid/software"
+ url = "https://computation.llnl.gov/projects/parallel-time-integration-multigrid/download/braid_2.2.0.tar.gz"
+
+ version('2.2.0', '0a9c2fc3eb8f605f73cce78ab0d8a7d9')
+
+ depends_on('mpi')
+
+ def build(self, spec, prefix):
+ make('libbraid.a')
+
+ # XBraid doesn't have a real install target, so it has to be done
+ # manually
+ def install(self, spec, prefix):
+ # Install headers
+ mkdirp(prefix.include)
+ headers = glob.glob('*.h')
+ for f in headers:
+ install(f, join_path(prefix.include, os.path.basename(f)))
+
+ # Install library
+ mkdirp(prefix.lib)
+ library = 'libbraid.a'
+ install(library, join_path(prefix.lib, library))
+
+ # Install other material (e.g., examples, tests, docs)
+ mkdirp(prefix.share)
+ install('makefile.inc', prefix.share)
+ install_tree('examples', prefix.share.examples)
+ install_tree('drivers', prefix.share.drivers)
+
+ # TODO: Some of the scripts in 'test' are useful, even for
+ # users; some could be deleted from an installation because
+ # they're not useful to users
+ install_tree('test', prefix.share.test)
+ install_tree('user_utils', prefix.share.user_utils)
+ install_tree('docs', prefix.share.docs)