summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/lzo
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-07-12 21:28:09 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-07-13 09:27:09 +0200
commit97c2224cd6445c0e5395b4ae30a9f4d3bf5670e0 (patch)
tree505191f67b42f27d0f7c0610faf359e10d1f509b /var/spack/repos/builtin/packages/lzo
parent813cb032c47b7b8507fba28a3629bec0d2b244cd (diff)
downloadspack-97c2224cd6445c0e5395b4ae30a9f4d3bf5670e0.tar.gz
spack-97c2224cd6445c0e5395b4ae30a9f4d3bf5670e0.tar.bz2
spack-97c2224cd6445c0e5395b4ae30a9f4d3bf5670e0.tar.xz
spack-97c2224cd6445c0e5395b4ae30a9f4d3bf5670e0.zip
package.py : extra arguments, fixed inheritance issue
- added attribute to hold extra arguments in PackageBase instances - fixed registration from within packages - examples : hdf5, lzo
Diffstat (limited to 'var/spack/repos/builtin/packages/lzo')
-rw-r--r--var/spack/repos/builtin/packages/lzo/package.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/lzo/package.py b/var/spack/repos/builtin/packages/lzo/package.py
index 0961bbb58c..edf6dc1d4c 100644
--- a/var/spack/repos/builtin/packages/lzo/package.py
+++ b/var/spack/repos/builtin/packages/lzo/package.py
@@ -25,7 +25,7 @@
from spack import *
-class Lzo(Package):
+class Lzo(AutotoolsPackage):
"""Real-time data compression library"""
homepage = 'https://www.oberhumer.com/opensource/lzo/'
@@ -37,13 +37,13 @@ class Lzo(Package):
version('2.06', '95380bd4081f85ef08c5209f4107e9f8')
version('2.05', 'c67cda5fa191bab761c7cb06fe091e36')
- def install(self, spec, prefix):
- configure_args = [
- '--prefix={0}'.format(prefix),
+ def configure_args(self):
+ return [
'--disable-dependency-tracking',
'--enable-shared'
]
- configure(*configure_args)
- make()
- make('check')
- make('install')
+
+ @AutotoolsPackage.sanity_check('build')
+ def check(self):
+ if self.extra_args.get('build-tests', False):
+ make('check')