diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-08-30 12:18:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 12:18:56 -0700 |
commit | 7e4c6afd9160beedf7956bc5492c93eb30f93a3e (patch) | |
tree | ff2e7e5ab7600c4149de259907c198b0c0d34a88 /var/spack/repos/builtin/packages/expat/package.py | |
parent | abd1546d869e0f49b02caf132980f332ef6a1a7b (diff) | |
parent | eace068788956fbceb240f41949af54fa62db82c (diff) | |
download | spack-7e4c6afd9160beedf7956bc5492c93eb30f93a3e.tar.gz spack-7e4c6afd9160beedf7956bc5492c93eb30f93a3e.tar.bz2 spack-7e4c6afd9160beedf7956bc5492c93eb30f93a3e.tar.xz spack-7e4c6afd9160beedf7956bc5492c93eb30f93a3e.zip |
Merge pull request #1412 from adamjstewart/features/cmake
Overhaul of CMake package and compression libraries
Diffstat (limited to 'var/spack/repos/builtin/packages/expat/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/expat/package.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/expat/package.py b/var/spack/repos/builtin/packages/expat/package.py index 7d0fdae1d4..0262bf1e3f 100644 --- a/var/spack/repos/builtin/packages/expat/package.py +++ b/var/spack/repos/builtin/packages/expat/package.py @@ -28,15 +28,16 @@ from spack import * class Expat(Package): """<eXpat/> is an XML parser library written in C""" homepage = "http://expat.sourceforge.net/" - url = "http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz" - version('2.1.0', 'dd7dab7a5fea97d2a6a43f511449b7cd') - - depends_on('cmake', type='build') + version('2.2.0', '2f47841c829facb346eb6e3fab5212e2', + url="http://downloads.sourceforge.net/project/expat/expat/2.2.0/expat-2.2.0.tar.bz2") + version('2.1.0', 'dd7dab7a5fea97d2a6a43f511449b7cd', + url="http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz") def install(self, spec, prefix): + configure('--prefix={0}'.format(prefix)) - with working_dir('spack-build', create=True): - cmake('..', *std_cmake_args) - make() - make('install') + make() + if self.run_tests: + make('check') + make('install') |