summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJoseph Ciurej <ciurej1@llnl.gov>2016-02-16 11:40:00 -0800
committerJoseph Ciurej <ciurej1@llnl.gov>2016-02-16 11:40:00 -0800
commitdb50f52bbc47ef6dbe2e26c54ce828c0e6076e96 (patch)
tree4467937119bcb9039d2a25c28f8cd231e4adc3d2 /var
parent9e4671a4b4e99d6fbbb77cab1110398b3a708e75 (diff)
downloadspack-db50f52bbc47ef6dbe2e26c54ce828c0e6076e96.tar.gz
spack-db50f52bbc47ef6dbe2e26c54ce828c0e6076e96.tar.bz2
spack-db50f52bbc47ef6dbe2e26c54ce828c0e6076e96.tar.xz
spack-db50f52bbc47ef6dbe2e26c54ce828c0e6076e96.zip
Adding the "Crypto++" package installation files.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cryptopp/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cryptopp/package.py b/var/spack/repos/builtin/packages/cryptopp/package.py
new file mode 100644
index 0000000000..1693c4b160
--- /dev/null
+++ b/var/spack/repos/builtin/packages/cryptopp/package.py
@@ -0,0 +1,31 @@
+import glob
+from spack import *
+
+class Cryptopp(Package):
+ """Crypto++ is an open-source C++ library of cryptographic schemes. The
+ library supports a number of different cryptography algorithms, including
+ authenticated encryption schemes (GCM, CCM), hash functions (SHA-1, SHA2),
+ public-key encryption (RSA, DSA), and a few obsolete/historical encryption
+ algorithms (MD5, Panama)."""
+
+ homepage = "http://www.cryptopp.com/"
+ url = "http://www.cryptopp.com/cryptopp563.zip"
+
+ version('5.6.3', '3c5b70e2ec98b7a24988734446242d07')
+ version('5.6.2', '7ed022585698df48e65ce9218f6c6a67')
+
+ def install(self, spec, prefix):
+ make()
+
+ mkdirp(prefix.include)
+ for hfile in glob.glob('*.h*'):
+ install(hfile, prefix.include)
+
+ mkdirp(prefix.lib)
+ install('libcryptopp.a', prefix.lib)
+
+ def url_for_version(self, version):
+ version_tuple = tuple(v for v in iter(version))
+ version_string = reduce(lambda vs, nv: vs + str(nv), version_tuple, "")
+
+ return "%scryptopp%s.zip" % (Cryptopp.homepage, version_string)