summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Aumüller <aumuell@reserv.at>2020-10-20 02:51:15 +0200
committerGitHub <noreply@github.com>2020-10-19 19:51:15 -0500
commitb5ff28522a942ad87f457ff323fe64828889cb33 (patch)
tree766a729b2f92b2929c5866ee4c6e3055ba5609ae
parent3fd3676fc0d4188044d340d16d7588e6c267746a (diff)
downloadspack-b5ff28522a942ad87f457ff323fe64828889cb33.tar.gz
spack-b5ff28522a942ad87f457ff323fe64828889cb33.tar.bz2
spack-b5ff28522a942ad87f457ff323fe64828889cb33.tar.xz
spack-b5ff28522a942ad87f457ff323fe64828889cb33.zip
Add new package: botan (#19362)
-rw-r--r--var/spack/repos/builtin/packages/botan/package.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/botan/package.py b/var/spack/repos/builtin/packages/botan/package.py
new file mode 100644
index 0000000000..883f7a5e8a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/botan/package.py
@@ -0,0 +1,50 @@
+# 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 Botan(Package):
+ """Crypto and TLS for Modern C++"""
+
+ homepage = "https://botan.randombit.net/"
+ url = "https://botan.randombit.net/releases/Botan-2.13.0.tar.xz"
+
+ maintainers = ['aumuell']
+
+ version('2.16.0', sha256='92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628')
+ version('2.15.0', sha256='d88af1307f1fefac79aa4f2f524699478d69ce15a857cf2d0a90ac6bf2a50009')
+ version('2.14.0', sha256='0c10f12b424a40ee19bde00292098e201d7498535c062d8d5b586d07861a54b5')
+ version('2.13.0', sha256='f57ae42a41e1091bca58f44f41addebd9a390b651603952c881ec89d50187e90')
+ version('2.12.1', sha256='7e035f142a51fca1359705792627a282456d49749bf62a37a8e48375d41baaa9')
+ version('2.12.0', sha256='1eaefd459d52f27de1805cff8c68792e0610919648ee98e101980e94edb90a63')
+ version('2.11.0', sha256='f7874da2aeb8c018fd77df40b2137879bf90b66f5589490c991e83fb3e8094be')
+
+ variant('doc', default=False, description='Build documentation')
+
+ depends_on('python', type='build')
+ depends_on('py-sphinx@1.2:', type='build', when='+doc')
+
+ phases = ['configure', 'build', 'install']
+
+ def configure(self, spec, prefix):
+ configure = Executable('./configure.py')
+ configure(*self.configure_args())
+
+ def configure_args(self):
+ spec = self.spec
+ args = []
+ args.append('--prefix=' + prefix)
+ if '+doc' in spec:
+ args.append('--with-documentation')
+ else:
+ args.append('--without-documentation')
+ return args
+
+ def build(self, spec, prefix):
+ make()
+
+ def install(self, spec, prefix):
+ make('install')