summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2018-05-21 11:52:25 -0500
committerGitHub <noreply@github.com>2018-05-21 11:52:25 -0500
commit6bf9f6656716d76f573167ef9a1220ac9ca9be77 (patch)
tree3eb8328eae5526b7e9187ac71840b0c69f573d0b
parente933ed2b5093ae98b2608af49b81a2190e7a6547 (diff)
downloadspack-6bf9f6656716d76f573167ef9a1220ac9ca9be77.tar.gz
spack-6bf9f6656716d76f573167ef9a1220ac9ca9be77.tar.bz2
spack-6bf9f6656716d76f573167ef9a1220ac9ca9be77.tar.xz
spack-6bf9f6656716d76f573167ef9a1220ac9ca9be77.zip
Add cryptopp 7.0.0 (#8224)
-rw-r--r--var/spack/repos/builtin/packages/cryptopp/package.py29
1 files changed, 11 insertions, 18 deletions
diff --git a/var/spack/repos/builtin/packages/cryptopp/package.py b/var/spack/repos/builtin/packages/cryptopp/package.py
index 171fa388ad..8e8eaafdc8 100644
--- a/var/spack/repos/builtin/packages/cryptopp/package.py
+++ b/var/spack/repos/builtin/packages/cryptopp/package.py
@@ -22,36 +22,29 @@
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
-import glob
from spack import *
-class Cryptopp(Package):
+class Cryptopp(MakefilePackage):
"""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).
-
- """
+ 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"
+ url = "http://www.cryptopp.com/cryptopp700.zip"
+ version('7.0.0', '8f34884b572901b6ede89bd18f1c7ef6')
version('5.6.3', '3c5b70e2ec98b7a24988734446242d07')
version('5.6.2', '7ed022585698df48e65ce9218f6c6a67')
version('5.6.1', '96cbeba0907562b077e26bcffb483828')
+ depends_on('gmake', type='build')
+
def url_for_version(self, version):
- url = "{0}/{1}{2}.zip"
+ url = '{0}/{1}{2}.zip'
return url.format(self.homepage, self.name, version.joined)
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)
+ make('install', 'PREFIX={0}'.format(prefix))