p4est: switch to AutotoolsPackage (#2839)

This commit is contained in:
Denis Davydov 2017-01-17 20:05:34 +01:00 committed by Todd Gamblin
parent 061076aea9
commit 190a5b575c

View file

@ -25,7 +25,7 @@
from spack import * from spack import *
class P4est(Package): class P4est(AutotoolsPackage):
"""Dynamic management of a collection (a forest) of adaptive octrees in """Dynamic management of a collection (a forest) of adaptive octrees in
parallel""" parallel"""
homepage = "http://www.p4est.org" homepage = "http://www.p4est.org"
@ -42,8 +42,8 @@ class P4est(Package):
depends_on('mpi') depends_on('mpi')
depends_on('zlib') depends_on('zlib')
def install(self, spec, prefix): def configure_args(self):
options = [ return [
'--enable-mpi', '--enable-mpi',
'--enable-shared', '--enable-shared',
'--disable-vtk-binary', '--disable-vtk-binary',
@ -55,10 +55,3 @@ def install(self, spec, prefix):
'FC=%s' % self.spec['mpi'].mpifc, 'FC=%s' % self.spec['mpi'].mpifc,
'F77=%s' % self.spec['mpi'].mpif77 'F77=%s' % self.spec['mpi'].mpif77
] ]
configure('--prefix=%s' % prefix, *options)
make()
if self.run_tests:
make("check")
make("install")