summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/override-context-templates/package.py42
-rw-r--r--var/spack/repos/builtin.mock/packages/override-module-templates/package.py39
-rw-r--r--var/spack/repos/builtin/packages/r-rmpi/package.py4
-rw-r--r--var/spack/repos/builtin/packages/tut/package.py2
4 files changed, 85 insertions, 2 deletions
diff --git a/var/spack/repos/builtin.mock/packages/override-context-templates/package.py b/var/spack/repos/builtin.mock/packages/override-context-templates/package.py
new file mode 100644
index 0000000000..64e34b13eb
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/override-context-templates/package.py
@@ -0,0 +1,42 @@
+##############################################################################
+# 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/llnl/spack
+# Please also see the LICENSE file 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 *
+
+
+class OverrideContextTemplates(Package):
+ """This package updates the context for TCL modulefiles.
+
+ And additional lines that shouldn't be in the short description.
+ """
+ homepage = "http://www.fake-spack-example.org"
+ url = "http://www.fake-spack-example.org/downloads/fake-1.0.tar.gz"
+
+ version('1.0', 'foobarbaz')
+
+ tcl_template = 'extension.tcl'
+ tcl_context = {'sentence': "sentence from package"}
+
+ def install(self, spec, prefix):
+ pass
diff --git a/var/spack/repos/builtin.mock/packages/override-module-templates/package.py b/var/spack/repos/builtin.mock/packages/override-module-templates/package.py
new file mode 100644
index 0000000000..dbe40d6f00
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/override-module-templates/package.py
@@ -0,0 +1,39 @@
+##############################################################################
+# 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/llnl/spack
+# Please also see the LICENSE file 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 *
+
+
+class OverrideModuleTemplates(Package):
+ homepage = "http://www.fake-spack-example.org"
+ url = "http://www.fake-spack-example.org/downloads/fake-1.0.tar.gz"
+
+ version('1.0', 'foobarbaz')
+
+ dotkit_template = 'override.txt'
+ tcl_template = 'override.txt'
+ lmod_template = 'override.txt'
+
+ def install(self, spec, prefix):
+ pass
diff --git a/var/spack/repos/builtin/packages/r-rmpi/package.py b/var/spack/repos/builtin/packages/r-rmpi/package.py
index f096faa362..50f79a861b 100644
--- a/var/spack/repos/builtin/packages/r-rmpi/package.py
+++ b/var/spack/repos/builtin/packages/r-rmpi/package.py
@@ -43,7 +43,9 @@ class RRmpi(RPackage):
conflicts('^mvapich2')
conflicts('^spectrum-mpi')
- def configure_args(self, spec, prefix):
+ def configure_args(self):
+ spec = self.spec
+
mpi_name = spec['mpi'].name
# The type of MPI. Supported values are:
diff --git a/var/spack/repos/builtin/packages/tut/package.py b/var/spack/repos/builtin/packages/tut/package.py
index 72ca2e1ff4..1ed8f82aad 100644
--- a/var/spack/repos/builtin/packages/tut/package.py
+++ b/var/spack/repos/builtin/packages/tut/package.py
@@ -33,7 +33,7 @@ class Tut(WafPackage):
version('2016-12-19', '8b1967fa295ae1ce4d4431c2f811e521')
- def build_args(self, spec, prefix):
+ def build_args(self):
args = []
if self.run_tests: