summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Lee <lee218@llnl.gov>2019-06-21 04:47:42 -0700
committerElizabeth Fischer <elizabeth.fischer@columbia.edu>2019-06-21 07:47:42 -0400
commit894d01e482d973e3da30f943e17ba2b5d7b599a8 (patch)
treeb4adf1f590db3b771345e43d649bd3e882df5f14
parente6264030d714ab4a58ba2266711eddfb4ce29fd8 (diff)
downloadspack-894d01e482d973e3da30f943e17ba2b5d7b599a8.tar.gz
spack-894d01e482d973e3da30f943e17ba2b5d7b599a8.tar.bz2
spack-894d01e482d973e3da30f943e17ba2b5d7b599a8.tar.xz
spack-894d01e482d973e3da30f943e17ba2b5d7b599a8.zip
converting to launchmon to autotools package (#11794)
-rw-r--r--var/spack/repos/builtin/packages/launchmon/package.py25
1 files changed, 13 insertions, 12 deletions
diff --git a/var/spack/repos/builtin/packages/launchmon/package.py b/var/spack/repos/builtin/packages/launchmon/package.py
index 10c8125bf9..03c4db881b 100644
--- a/var/spack/repos/builtin/packages/launchmon/package.py
+++ b/var/spack/repos/builtin/packages/launchmon/package.py
@@ -6,28 +6,29 @@
from spack import *
-class Launchmon(Package):
+class Launchmon(AutotoolsPackage):
"""Software infrastructure that enables HPC run-time tools to
co-locate tool daemons with a parallel job."""
homepage = "https://github.com/LLNL/LaunchMON"
url = "https://github.com/LLNL/LaunchMON/releases/download/v1.0.2/launchmon-v1.0.2.tar.gz"
+ git = "https://github.com/llnl/launchmon.git"
+ version('master', branch='master')
version('1.0.2', '8d6ba77a0ec2eff2fde2c5cc8fa7ff7a')
- depends_on('autoconf', type='build')
- depends_on('automake', type='build')
- depends_on('libtool', type='build')
+ depends_on('autoconf', type='build', when='@master')
+ depends_on('automake', type='build', when='@master')
+ depends_on('libtool', type='build', when='@master')
+ depends_on('pkg-config', type='build')
depends_on('libgcrypt')
depends_on('libgpg-error')
depends_on("elf", type='link')
depends_on("boost")
depends_on("spectrum-mpi", when='arch=ppc64le')
- def install(self, spec, prefix):
- configure(
- "--prefix=" + prefix,
- "--with-bootfabric=cobo",
- "--with-rm=slurm")
-
- make()
- make("install")
+ def setup_environment(self, spack_env, run_env):
+ if self.spec.satisfies('@master'):
+ # automake for launchmon requires the AM_PATH_LIBGCRYPT macro
+ # which is defined in libgcrypt.m4
+ spack_env.prepend_path('ACLOCAL_PATH',
+ self.spec['libgcrypt'].prefix.share.aclocal)