Massive conversion from Package to CMakePackage (#4975)

This commit is contained in:
Adam J. Stewart
2017-08-05 10:15:18 -05:00
committed by GitHub
parent 17cdb73be7
commit c7df12f698
57 changed files with 410 additions and 677 deletions

View File

@@ -25,7 +25,7 @@
from spack import *
class Mbedtls(Package):
class Mbedtls(CMakePackage):
"""mbed TLS (formerly known as PolarSSL) makes it trivially easy for
developers to include cryptographic and SSL/TLS capabilities in
their (embedded) products, facilitating this functionality with a
@@ -42,10 +42,9 @@ class Mbedtls(Package):
version('2.1.3', '7eb4cf1dfa68578a2c8dbd0b6fa752dd')
version('1.3.16', '4144d7320c691f721aeb9e67a1bc38e0')
depends_on('cmake', type='build')
variant('build_type', default='Release',
description='The build type to build',
values=('Debug', 'Release', 'Coverage', 'ASan', 'ASanDbg',
'MemSan', 'MemSanDbg', 'Check', 'CheckFull'))
def install(self, spec, prefix):
cmake('.', *std_cmake_args)
make()
make("install")
depends_on('cmake@2.6:', type='build')