mpibash: move to autotools (#6253)
This commit is contained in:
parent
02335fa849
commit
bde727e187
@ -49,3 +49,12 @@ def configure_args(self):
|
|||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
make('tests')
|
make('tests')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def install_targets(self):
|
||||||
|
args = ['install']
|
||||||
|
|
||||||
|
if self.spec.satisfies('@4.4:'):
|
||||||
|
args.append('install-headers')
|
||||||
|
|
||||||
|
return args
|
||||||
|
@ -25,32 +25,23 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Mpibash(Package):
|
class Mpibash(AutotoolsPackage):
|
||||||
"""Parallel scripting right from the Bourne-Again Shell (Bash)"""
|
"""Parallel scripting right from the Bourne-Again Shell (Bash)"""
|
||||||
homepage = "http://www.ccs3.lanl.gov/~pakin/software/mpibash-4.3.html"
|
|
||||||
|
|
||||||
version('4.3', '81348932d5da294953e15d4814c74dd1',
|
homepage = "https://github.com/lanl/MPI-Bash"
|
||||||
url="http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz")
|
url = "https://github.com/lanl/MPI-Bash/releases/download/v1.2/mpibash-1.2.tar.gz"
|
||||||
|
|
||||||
# patch -p1 < ../mpibash-4.3.patch
|
version('1.2', 'b81001fb234ed79c4e5bf2f7efee3529')
|
||||||
patch('mpibash-4.3.patch', level=1, when='@4.3')
|
|
||||||
|
|
||||||
# above patch modifies configure.ac
|
|
||||||
depends_on('autoconf', type='build')
|
|
||||||
|
|
||||||
|
depends_on('bash@4.4:')
|
||||||
# uses MPI_Exscan which is in MPI-1.2 and later
|
# uses MPI_Exscan which is in MPI-1.2 and later
|
||||||
depends_on('mpi@1.2:')
|
depends_on('mpi@1.2:')
|
||||||
|
|
||||||
depends_on('libcircle')
|
depends_on('libcircle')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
# run autoconf to rebuild configure
|
args = [
|
||||||
autoconf = which('autoconf')
|
"--with-bashdir={0}".format(self.spec['bash'].prefix.include.bash),
|
||||||
autoconf()
|
"CC={0}".format(self.spec['mpi'].mpicc)
|
||||||
|
]
|
||||||
configure("--prefix=" + prefix,
|
return args
|
||||||
"CC=mpicc")
|
|
||||||
|
|
||||||
make(parallel=False)
|
|
||||||
|
|
||||||
make("install")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user