package.py 1.12 KB
Newer Older
Rob Latham's avatar
Rob Latham committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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"

    version('master', git='https://xgitlab.cels.anl.gov/sds/ssg.git')

    variant('mpi', default=False, description='Build with MPI support')

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

    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')