summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-24 09:44:51 +0800
committerGitHub <noreply@github.com>2020-09-23 20:44:51 -0500
commit8ae3ccdea4605fe8f859b5db50f42f596966268c (patch)
tree0875f3eff0231f4c3dcbd97042609e54d14665e6 /var
parent63d45b975d33227b65e79644622773a49dd7ccc6 (diff)
downloadspack-8ae3ccdea4605fe8f859b5db50f42f596966268c.tar.gz
spack-8ae3ccdea4605fe8f859b5db50f42f596966268c.tar.bz2
spack-8ae3ccdea4605fe8f859b5db50f42f596966268c.tar.xz
spack-8ae3ccdea4605fe8f859b5db50f42f596966268c.zip
Add new package: libtommath (#18782)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libtommath/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libtommath/package.py b/var/spack/repos/builtin/packages/libtommath/package.py
new file mode 100644
index 0000000000..9886022bfb
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libtommath/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2020 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 Libtommath(MakefilePackage):
+ """A portable number theoretic multiple-precision integer library."""
+
+ homepage = "http://www.libtom.net/"
+ url = "https://github.com/libtom/libtommath/archive/v1.2.0.tar.gz"
+
+ version('1.2.0', sha256='f3c20ab5df600d8d89e054d096c116417197827d12732e678525667aa724e30f')
+ version('1.1.0', sha256='71b6f3f99341b7693393ab4b58f03b79b6afc2ee5288666cc4538b4b336355f4')
+
+ def install(self, spec, prefix):
+ make('DESTDIR={0}'.format(prefix),
+ 'LIBPATH=/lib', 'INCPATH=/include', 'install')