summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBarry Smith <bsmith@mcs.anl.gov>2016-11-29 09:28:09 -0600
committerTodd Gamblin <tgamblin@llnl.gov>2016-11-29 09:28:09 -0600
commit4d56d4f1f916a3b4690ae6301c9d45343696247f (patch)
treea6b28287d40b8ff936aa314f5e53624d3afdd9aa /var
parenta6d579ea150f020ce97b9e87ec7c4ea4393deaec (diff)
downloadspack-4d56d4f1f916a3b4690ae6301c9d45343696247f.tar.gz
spack-4d56d4f1f916a3b4690ae6301c9d45343696247f.tar.bz2
spack-4d56d4f1f916a3b4690ae6301c9d45343696247f.tar.xz
spack-4d56d4f1f916a3b4690ae6301c9d45343696247f.zip
add support for installing the development (master) version of PETSc (#2431)
Funded-by: IDEAS Project: IDEAS/xSDK Time: .3 hours x
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py5
-rw-r--r--var/spack/repos/builtin/packages/sowing/package.py42
2 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index 4ac96b8127..276237a536 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -37,6 +37,7 @@ class Petsc(Package):
homepage = "http://www.mcs.anl.gov/petsc/index.html"
url = "http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.5.3.tar.gz"
+ version('develop', git='https://bitbucket.org/petsc/petsc.git', tag='master')
version('3.7.4', 'aaf94fa54ef83022c14091f10866eedf')
version('3.7.2', '50da49867ce7a49e7a0c1b37f4ec7b34')
version('3.6.4', '7632da2375a3df35b8891c9526dbdde7')
@@ -67,6 +68,9 @@ class Petsc(Package):
description='Activates support for SuperluDist (only parallel)')
# Virtual dependencies
+ # Git repository needs sowing to build Fortran interface
+ depends_on('sowing', when='@develop')
+
depends_on('blas')
depends_on('lapack')
depends_on('mpi', when='+mpi')
@@ -127,6 +131,7 @@ class Petsc(Package):
def install(self, spec, prefix):
options = ['--with-ssl=0',
'--download-c2html=0',
+ '--download-sowing=0',
'--download-hwloc=0']
options.extend(self.mpi_dependent_options())
options.extend([
diff --git a/var/spack/repos/builtin/packages/sowing/package.py b/var/spack/repos/builtin/packages/sowing/package.py
new file mode 100644
index 0000000000..f7f6297488
--- /dev/null
+++ b/var/spack/repos/builtin/packages/sowing/package.py
@@ -0,0 +1,42 @@
+##############################################################################
+# Copyright (c) 2013-2016, 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 Sowing(Package):
+ """Sowing generates Fortran interfaces and documentation for PETSc
+ and MPICH.
+ """
+
+ homepage = "http://www.mcs.anl.gov/petsc/index.html"
+ url = "http://ftp.mcs.anl.gov/pub/petsc/externalpackages/sowing-1.1.23-p1.tar.gz"
+
+ version('1.1.23-p1', '65aaf3ae2a4c0f30d532fec291702e16')
+
+ def install(self, spec, prefix):
+ configure('--prefix=%s' % prefix)
+ make('ALL', parallel=False)
+ make("install")