spack/var/spack/repos/builtin/packages/mpdecimal/package.py
Adam J. Stewart b43e8fcaa7
Python: optional dependencies and post-installation tests (#10335)
* Add post-installation tests to Python package

* libbsd does not build on macOS

* Make Python dependencies optional

* Add readline dep, remove ncurses patch, fix autoreconf
2019-02-23 12:36:26 -06:00

25 lines
857 B
Python

# 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 Mpdecimal(AutotoolsPackage):
"""mpdecimal is a package for correctly-rounded arbitrary precision
decimal floating point arithmetic."""
homepage = "https://www.bytereef.org/mpdecimal/"
url = "https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.4.2.tar.gz"
list_url = "https://www.bytereef.org/mpdecimal/download.html"
version('2.4.2', sha256='83c628b90f009470981cf084c5418329c88b19835d8af3691b930afccb7d79c7')
depends_on('gmake', type='build')
@property
def libs(self):
# Suffix is .so, even on macOS
return LibraryList(find(self.prefix.lib, 'libmpdec.so'))