packages : moved decorators into AutotoolsPackage and CMakePackage
This commit is contained in:
@@ -25,10 +25,8 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Autoconf(Package):
|
||||
"""
|
||||
Autoconf -- system configuration part of autotools
|
||||
"""
|
||||
class Autoconf(AutotoolsPackage):
|
||||
"""Autoconf -- system configuration part of autotools"""
|
||||
homepage = 'https://www.gnu.org/software/autoconf/'
|
||||
url = 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz'
|
||||
|
||||
@@ -54,8 +52,3 @@ def setup_dependent_package(self, module, dependent_spec):
|
||||
'ifnames']
|
||||
for name in executables:
|
||||
setattr(module, name, self._make_executable(name))
|
||||
|
||||
def install(self, spec, prefix):
|
||||
configure("--prefix=%s" % prefix)
|
||||
make()
|
||||
make("install")
|
||||
|
@@ -143,9 +143,7 @@ def configure_args(self):
|
||||
|
||||
return ["--with-zlib=%s" % spec['zlib'].prefix] + extra_args
|
||||
|
||||
@AutotoolsPackage.sanity_check('install')
|
||||
@AutotoolsPackage.on_package_attributes(run_tests=True)
|
||||
def check_install(self):
|
||||
def check(self):
|
||||
"Build and run a small program to test the installed HDF5 library"
|
||||
spec = self.spec
|
||||
print("Checking HDF5 installation...")
|
||||
|
@@ -43,8 +43,6 @@ def configure_args(self):
|
||||
'--enable-shared'
|
||||
]
|
||||
|
||||
@AutotoolsPackage.sanity_check('build')
|
||||
@AutotoolsPackage.on_package_attributes(run_tests=True)
|
||||
def check(self):
|
||||
make('check')
|
||||
make('test')
|
||||
|
@@ -45,7 +45,5 @@ class Qhull(CMakePackage):
|
||||
|
||||
depends_on('cmake@2.6:', type='build')
|
||||
|
||||
@CMakePackage.sanity_check('build')
|
||||
@CMakePackage.on_package_attributes(run_tests=True)
|
||||
def check(self):
|
||||
make('test')
|
||||
|
Reference in New Issue
Block a user