From 190a5b575ccccf81ee3e71d0048aa0b0e4753f22 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 17 Jan 2017 20:05:34 +0100 Subject: [PATCH] p4est: switch to AutotoolsPackage (#2839) --- var/spack/repos/builtin/packages/p4est/package.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/var/spack/repos/builtin/packages/p4est/package.py b/var/spack/repos/builtin/packages/p4est/package.py index da58f5a7e7..93a08c4f2d 100644 --- a/var/spack/repos/builtin/packages/p4est/package.py +++ b/var/spack/repos/builtin/packages/p4est/package.py @@ -25,7 +25,7 @@ from spack import * -class P4est(Package): +class P4est(AutotoolsPackage): """Dynamic management of a collection (a forest) of adaptive octrees in parallel""" homepage = "http://www.p4est.org" @@ -42,8 +42,8 @@ class P4est(Package): depends_on('mpi') depends_on('zlib') - def install(self, spec, prefix): - options = [ + def configure_args(self): + return [ '--enable-mpi', '--enable-shared', '--disable-vtk-binary', @@ -55,10 +55,3 @@ def install(self, spec, prefix): 'FC=%s' % self.spec['mpi'].mpifc, 'F77=%s' % self.spec['mpi'].mpif77 ] - - configure('--prefix=%s' % prefix, *options) - - make() - if self.run_tests: - make("check") - make("install")