polyml: add new package (#46020)

This commit is contained in:
Kacper Kornet 2024-08-26 12:42:30 +01:00 committed by GitHub
parent 85939b26ae
commit fa704e867c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,28 @@
# Copyright 2013-2024 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.package import *
class Polyml(AutotoolsPackage):
"""The Poly/ML implementation of Standard ML."""
homepage = "https://polyml.org/"
url = "https://github.com/polyml/polyml/archive/refs/tags/v5.9.1.tar.gz"
license("LGPL-2.1-only", checked_by="draenog")
version("5.9.1", sha256="52f56a57a4f308f79446d479e744312195b298aa65181893bce2dfc023a3663c")
variant(
"gmp", default=True, description="Use the GMP library for arbitrary precision arithmetic"
)
depends_on("gmp", when="+gmp")
filter_compiler_wrappers("polyc", relative_root="bin")
def configure_args(self):
config_args = self.with_or_without("gmp")
return config_args