Massive conversion from Package to CMakePackage (#4975)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Cmocka(Package):
|
||||
class Cmocka(CMakePackage):
|
||||
"""Unit-testing framework in pure C"""
|
||||
homepage = "https://cmocka.org/"
|
||||
url = "https://cmocka.org/files/1.1/cmocka-1.1.1.tar.xz"
|
||||
@@ -33,13 +33,7 @@ class Cmocka(Package):
|
||||
version('1.1.1', '6fbff4e42589566eda558db98b97623e')
|
||||
version('1.1.0', '59c9aa5735d9387fb591925ec53523ec')
|
||||
version('1.0.1', 'ed861e501a21a92b2af63e466df2015e')
|
||||
|
||||
depends_on('cmake@2.6.0:', type='build')
|
||||
|
||||
parallel = False
|
||||
|
||||
depends_on('cmake', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
with working_dir('spack-build', create=True):
|
||||
cmake('..', *std_cmake_args)
|
||||
|
||||
make()
|
||||
make("install")
|
||||
|
Reference in New Issue
Block a user