openlibm: new package (#27286)
This commit is contained in:
parent
321604b4e5
commit
6e6847d9c7
33
var/spack/repos/builtin/packages/openlibm/package.py
Normal file
33
var/spack/repos/builtin/packages/openlibm/package.py
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 2013-2021 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 Openlibm(MakefilePackage):
|
||||||
|
"""OpenLibm is an effort to have a high quality, portable, standalone C
|
||||||
|
mathematical library"""
|
||||||
|
|
||||||
|
homepage = "https://github.com/JuliaMath/openlibm"
|
||||||
|
url = "https://github.com/JuliaMath/openlibm/archive/refs/tags/v0.8.0.tar.gz"
|
||||||
|
|
||||||
|
maintainers = ['haampie']
|
||||||
|
|
||||||
|
version('0.8.0', sha256='03620768df4ca526a63dd675c6de95a5c9d167ff59555ce57a61c6bf49e400ee')
|
||||||
|
version('0.7.5', sha256='be983b9e1e40e696e8bbb7eb8f6376d3ca0ae675ae6d82936540385b0eeec15b')
|
||||||
|
|
||||||
|
def make(self, spec, prefix):
|
||||||
|
args = [
|
||||||
|
'prefix={0}'.format(prefix),
|
||||||
|
'USE_GCC={0}'.format('1' if self.compiler.name == 'gcc' else '0'),
|
||||||
|
'USE_CLANG={0}'.format('1' if self.compiler.name == 'clang' else '0')
|
||||||
|
]
|
||||||
|
make(*args)
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
args = [
|
||||||
|
'prefix={0}'.format(prefix),
|
||||||
|
]
|
||||||
|
make('install', *args)
|
Loading…
Reference in New Issue
Block a user