summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/raxml/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/raxml/package.py')
-rw-r--r--var/spack/repos/builtin/packages/raxml/package.py55
1 files changed, 19 insertions, 36 deletions
diff --git a/var/spack/repos/builtin/packages/raxml/package.py b/var/spack/repos/builtin/packages/raxml/package.py
index 96d6f7c95b..edb781eb80 100644
--- a/var/spack/repos/builtin/packages/raxml/package.py
+++ b/var/spack/repos/builtin/packages/raxml/package.py
@@ -1,27 +1,8 @@
-##############################################################################
-# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
-# Produced at the Lawrence Livermore National Laboratory.
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
-# 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
-##############################################################################
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
from spack import *
import glob
@@ -51,6 +32,9 @@ class Raxml(Package):
conflicts('%xl')
conflicts('%xl_r')
+ # can't build multiple binaries in parallel without things breaking
+ parallel = False
+
def install(self, spec, prefix):
mkdirp(prefix.bin)
files = glob.iglob("Makefile.*")
@@ -62,46 +46,45 @@ class Raxml(Package):
make('-f', 'Makefile.AVX.HYBRID.gcc')
install('raxmlHPC-HYBRID-AVX', prefix.bin)
- elif '+mpi' and '+sse' and '+pthreads' in spec:
+ if '+mpi' and '+sse' and '+pthreads' in spec:
make('-f', 'Makefile.SSE3.HYBRID.gcc')
install('raxmlHPC-HYBRID-SSE3', prefix.bin)
- elif '+mpi' and '+pthreads' in spec:
+ if '+mpi' and '+pthreads' in spec:
make('-f', 'Makefile.HYBRID.gcc')
install('raxmlHPC-HYBRID', prefix.bin)
- elif '+mpi' and '+avx' in spec:
+ if '+mpi' and '+avx' in spec:
make('-f', 'Makefile.AVX.MPI.gcc')
install('raxmlHPC-MPI-AVX', prefix.bin)
- elif '+mpi' and '+sse' in spec:
+ if '+mpi' and '+sse' in spec:
make('-f', 'Makefile.SSE3.MPI.gcc')
install('raxmlHPC-MPI-SSE3', prefix.bin)
- elif '+mpi' in spec:
+ if '+mpi' in spec:
make('-f', 'Makefile.MPI.gcc')
install('raxmlHPC-MPI', prefix.bin)
- elif '+pthreads' and '+avx' in spec:
+ if '+pthreads' and '+avx' in spec:
make('-f', 'Makefile.AVX.PTHREADS.gcc')
install('raxmlHPC-PTHREADS-AVX', prefix.bin)
- elif '+pthreads' and '+sse' in spec:
+ if '+pthreads' and '+sse' in spec:
make('-f', 'Makefile.SSE3.PTHREADS.gcc')
install('raxmlHPC-PTHREADS-SSE3', prefix.bin)
- elif '+pthreads' in spec:
+ if '+pthreads' in spec:
make('-f', 'Makefile.PTHREADS.gcc')
install('raxmlHPC-PTHREADS', prefix.bin)
- elif '+sse' in spec:
+ if '+sse' in spec:
make('-f', 'Makefile.SSE3.gcc')
install('raxmlHPC-SSE3', prefix.bin)
- elif '+avx' in spec:
+ if '+avx' in spec:
make('-f', 'Makefile.AVX.gcc')
install('raxmlHPC-AVX', prefix.bin)
- else:
- make('-f', 'Makefile.gcc')
- install('raxmlHPC', prefix.bin)
+ make('-f', 'Makefile.gcc')
+ install('raxmlHPC', prefix.bin)