summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/psm/package.py
blob: 387299b8a59480e00bc3ccffc77c96b7e00b6fc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright 2013-2019 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 Psm(MakefilePackage):
    """Intel Performance scaled messaging library"""

    homepage = "https://github.com/intel/psm"
    url      = "https://github.com/intel/psm/archive/v3.3.tar.gz"
    git      = "https://github.com/intel/psm.git"

    version('3.3', sha256='034b10e24d9f2967ef0f8d0f828572295e89cdfa1ba30c35e288b9b23c3dab8f', preferred=True)
    version('2017-04-28', commit='604758e')

    conflicts('%gcc@6:', when='@3.3')

    depends_on('libuuid')

    def edit(self, spec, prefix):
        makefile = FileFilter('Makefile')
        makefile.filter('{DESTDIR}/usr/', '{LOCAL_PREFIX}/')

    def install(self, spec, prefix):
        make('LOCAL_PREFIX=%s' % prefix, 'install')