package.py 1.17 KB
Newer Older
Rob Latham's avatar
Rob Latham committed
1 2 3 4 5 6 7 8 9 10 11 12
from spack import *


class Ssg(AutotoolsPackage):
    """SSG is a group membership microservice based on the Mercury RPC system.
    It provides mechanisms for bootstrapping sets of Mercury processes into
    logical groups and for managing the membership of these process groups over
    time. At a high-level, each group collectively maintains a group view,
    which is just a mapping from group member identifiers to Mercury address
    information"""

    homepage = "https://xgitlab.cels.anl.gov/sds/ssg"
13
    git='https://xgitlab.cels.anl.gov/sds/ssg.git'
Rob Latham's avatar
Rob Latham committed
14

15 16
    version('develop', branch='master')
    version('0.2', tag='v0.2')
Rob Latham's avatar
Rob Latham committed
17

18
    variant('mpi', default=True, description='Build with MPI support')
Rob Latham's avatar
Rob Latham committed
19 20

    depends_on('mpi', when='+mpi')
21
    depends_on('margo@0.4:')
22
    depends_on('autoconf@2.69', type='build')
Rob Latham's avatar
Rob Latham committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

    def configure_args(self):
        spec = self.spec
        extra_args = []

        if '+mpi' in spec:
            extra_args.extend([
                "--enable-mpi",
                "CC=%s" % spec['mpi'].mpicc
                ])

        return extra_args








    def install(self, spec, prefix):
        # FIXME: Unknown build system
        make()
        make('install')