summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPhil Carns <carns@mcs.anl.gov>2021-02-01 13:38:02 -0500
committerGitHub <noreply@github.com>2021-02-01 12:38:02 -0600
commit03fce1f0c939b66623f9971274cdca5460d23126 (patch)
treeee46c6132e9c242fe69690792cda5bb5acfe034b /var
parent586ff05af1000a9a7455870dae8fd265a71a8fb9 (diff)
downloadspack-03fce1f0c939b66623f9971274cdca5460d23126.tar.gz
spack-03fce1f0c939b66623f9971274cdca5460d23126.tar.bz2
spack-03fce1f0c939b66623f9971274cdca5460d23126.tar.xz
spack-03fce1f0c939b66623f9971274cdca5460d23126.zip
replace margo pkg with updated mochi-margo pkg (#20273)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/margo/package.py74
-rw-r--r--var/spack/repos/builtin/packages/mochi-margo/package.py55
2 files changed, 95 insertions, 34 deletions
diff --git a/var/spack/repos/builtin/packages/margo/package.py b/var/spack/repos/builtin/packages/margo/package.py
index 530ceb530a..0e9b803009 100644
--- a/var/spack/repos/builtin/packages/margo/package.py
+++ b/var/spack/repos/builtin/packages/margo/package.py
@@ -7,43 +7,49 @@ from spack import *
class Margo(AutotoolsPackage):
- """Argobots bindings to the Mercury RPC API"""
-
- homepage = "https://xgitlab.cels.anl.gov/sds/margo"
- url = "https://xgitlab.cels.anl.gov/sds/margo/-/archive/v0.4.3/margo-v0.4.3.tar.gz"
- git = "https://xgitlab.cels.anl.gov/sds/margo.git"
-
- maintainers = ['fbudin69500', 'chuckatkins', 'carns']
-
- version('develop', branch='master')
+ """A library that provides Argobots bindings to the Mercury RPC
+ implementation. This name will be deprecated soon; please use the
+ mochi-margo package instead."""
+
+ homepage = 'https://xgitlab.cels.anl.gov/sds/margo'
+ git = 'https://xgitlab.cels.anl.gov/sds/margo.git'
+ url = 'https://xgitlab.cels.anl.gov/sds/margo/-/archive/v0.9/margo-v0.9.tar.gz'
+
+ maintainers = ['carns', 'mdorier', 'fbudin69500', 'chuckatkins']
+
+ version('master', branch='master')
+ version('0.9', sha256='a24376f66450cc8fd7a43043e189f8efce5a931585e53c1e2e41894a3e99b517')
+ version('0.7', sha256='492d1afe2e7984fa638614a5d34486d2ff761f5599b5984efd5ae3f55cafde54')
+ version('0.7.2', sha256='0ca796abdb82084813a5de033d92364910b5ad1a0df135534d6b1c36ef627859')
+ version('0.7.1', sha256='eebbe02c47ed4c65ef1d4f23ffdc6a8aa2e2348ca6c51bfc3c4dfbf78fbfc30b')
+ version('0.6', sha256='56feb718da2b155d7277a7b10b669516ebffaa034f811f3665ceed7ad0f19d1b')
+ version('0.6.4', sha256='5ba1c72ee05aa9738d3dc4d6d01bd59790284c6c77b909c5d7756fe7049d6177')
+ version('0.6.3', sha256='5f373cd554edd15cead58bd5d30093bd88d45039d06ff7738eb18b3674287c76')
+ version('0.6.2', sha256='c6a6909439e1d3ba1a1693d8da66057eb7e4ec4b239c04bc7f19fc487c4c58da')
+ version('0.6.1', sha256='80d8d15d0917b5522c31dc2d83136de2313d50ca05c71c5e5ad83c483a3214b7')
+ version('0.5', sha256='d3b768b8300bc2cb87964e74c39b4e8eb9822d8a2e56fc93dc475ddcb1a868e3')
+ version('0.5.2', sha256='73be3acaf012a85a91ac62824c93f5ee1ea0ffe4c25779ece19723f4baf9547d')
+ version('0.5.1', sha256='6fdf58e189538e22341c8361ab069fc80fe5460a6869882359b295a890febad7')
+ version('0.4.7', sha256='596d83b11fb2bd9950fd99c9ab12c14915ab2cda233084ae40ecae1e6c584333')
+ version('0.4.6', sha256='b27447a2050ae61091bae3ff6b4d23a56153947f18847face9f98facbdb4e329')
+ version('0.4.5', sha256='b0d02f73edf180f2393f54c5a980620b8d6dcd42b90efdea6866861824fa49cf')
+ version('0.4.4', sha256='2e2e6e2a8a7d7385e2fe204c113cb149f30847f0b1f48ec8dd708a74280bd89e')
version('0.4.3', sha256='61a634d6983bee2ffa06e1e2da4c541cb8f56ddd9dd9f8e04e8044fb38657475')
-
- variant('shared', default=True,
- description='Build shared libraries instead of static libraries')
-
- depends_on('autoconf', type='build')
- depends_on('automake', type='build')
- depends_on('libtool', type='build')
- depends_on('m4', type='build')
- depends_on('pkgconfig', type='build')
-
- depends_on('mercury')
+ version('0.4.2', sha256='91085e28f50e373b9616e1ae5c3c8d40a19a7d3776259592d8f361766890bcaa')
+
+ depends_on('json-c', when='@0.9:')
+ depends_on('autoconf@2.65:', type=("build"))
+ depends_on('m4', type=('build'))
+ depends_on('automake', type=("build"))
+ depends_on('libtool', type=("build"))
+ depends_on('pkgconfig', type=("build"))
depends_on('argobots@1.0:')
+ # "breadcrumb" support not available in mercury-1.0
+ depends_on('mercury@1.0.0:', type=("build", "link", "run"), when='@:0.5.1')
+ depends_on('mercury@2.0.0:', type=("build", "link", "run"), when='@0.5.2:')
- build_directory = 'spack-build'
-
- def configure_args(self):
- spec = self.spec
- args = []
-
- if '+shared' in spec:
- args.append('--enable-shared')
- args.append('--disable-static')
- else:
- args.append('--enable-static')
- args.append('--disable-shared')
-
- return args
+ # dependencies for develop version
+ depends_on('mercury@master', type=("build", "link", "run"), when='@develop')
def autoreconf(self, spec, prefix):
sh = which('sh')
diff --git a/var/spack/repos/builtin/packages/mochi-margo/package.py b/var/spack/repos/builtin/packages/mochi-margo/package.py
new file mode 100644
index 0000000000..a98ee36d1a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mochi-margo/package.py
@@ -0,0 +1,55 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class MochiMargo(AutotoolsPackage):
+ """A library that provides Argobots bindings to the Mercury RPC
+ implementation."""
+
+ homepage = 'https://xgitlab.cels.anl.gov/sds/margo'
+ git = 'https://xgitlab.cels.anl.gov/sds/margo.git'
+ url = 'https://xgitlab.cels.anl.gov/sds/margo/-/archive/v0.9/margo-v0.9.tar.gz'
+
+ maintainers = ['carns', 'mdorier', 'fbudin69500', 'chuckatkins']
+
+ version('master', branch='master')
+ version('0.9', sha256='a24376f66450cc8fd7a43043e189f8efce5a931585e53c1e2e41894a3e99b517')
+ version('0.7', sha256='492d1afe2e7984fa638614a5d34486d2ff761f5599b5984efd5ae3f55cafde54')
+ version('0.7.2', sha256='0ca796abdb82084813a5de033d92364910b5ad1a0df135534d6b1c36ef627859')
+ version('0.7.1', sha256='eebbe02c47ed4c65ef1d4f23ffdc6a8aa2e2348ca6c51bfc3c4dfbf78fbfc30b')
+ version('0.6', sha256='56feb718da2b155d7277a7b10b669516ebffaa034f811f3665ceed7ad0f19d1b')
+ version('0.6.4', sha256='5ba1c72ee05aa9738d3dc4d6d01bd59790284c6c77b909c5d7756fe7049d6177')
+ version('0.6.3', sha256='5f373cd554edd15cead58bd5d30093bd88d45039d06ff7738eb18b3674287c76')
+ version('0.6.2', sha256='c6a6909439e1d3ba1a1693d8da66057eb7e4ec4b239c04bc7f19fc487c4c58da')
+ version('0.6.1', sha256='80d8d15d0917b5522c31dc2d83136de2313d50ca05c71c5e5ad83c483a3214b7')
+ version('0.5', sha256='d3b768b8300bc2cb87964e74c39b4e8eb9822d8a2e56fc93dc475ddcb1a868e3')
+ version('0.5.2', sha256='73be3acaf012a85a91ac62824c93f5ee1ea0ffe4c25779ece19723f4baf9547d')
+ version('0.5.1', sha256='6fdf58e189538e22341c8361ab069fc80fe5460a6869882359b295a890febad7')
+ version('0.4.7', sha256='596d83b11fb2bd9950fd99c9ab12c14915ab2cda233084ae40ecae1e6c584333')
+ version('0.4.6', sha256='b27447a2050ae61091bae3ff6b4d23a56153947f18847face9f98facbdb4e329')
+ version('0.4.5', sha256='b0d02f73edf180f2393f54c5a980620b8d6dcd42b90efdea6866861824fa49cf')
+ version('0.4.4', sha256='2e2e6e2a8a7d7385e2fe204c113cb149f30847f0b1f48ec8dd708a74280bd89e')
+ version('0.4.3', sha256='61a634d6983bee2ffa06e1e2da4c541cb8f56ddd9dd9f8e04e8044fb38657475')
+ version('0.4.2', sha256='91085e28f50e373b9616e1ae5c3c8d40a19a7d3776259592d8f361766890bcaa')
+
+ depends_on('json-c', when='@0.9:')
+ depends_on('autoconf@2.65:', type=("build"))
+ depends_on('m4', type=('build'))
+ depends_on('automake', type=("build"))
+ depends_on('libtool', type=("build"))
+ depends_on('pkgconfig', type=("build"))
+ depends_on('argobots@1.0:')
+ # "breadcrumb" support not available in mercury-1.0
+ depends_on('mercury@1.0.0:', type=("build", "link", "run"), when='@:0.5.1')
+ depends_on('mercury@2.0.0:', type=("build", "link", "run"), when='@0.5.2:')
+
+ # dependencies for develop version
+ depends_on('mercury@master', type=("build", "link", "run"), when='@develop')
+
+ def autoreconf(self, spec, prefix):
+ sh = which('sh')
+ sh('./prepare.sh')