Massive conversion from Package to AutotoolsPackage (#2845)
* Massive conversion from Package to AutotoolsPackage * Forgot to convert p4est to AutotoolsPackage * Fix typo * Fix broken link in docs
This commit is contained in:

committed by
Todd Gamblin

parent
5812081b80
commit
02f92fc7f8
@@ -25,7 +25,7 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Libxml2(Package):
|
||||
class Libxml2(AutotoolsPackage):
|
||||
"""Libxml2 is the XML C parser and toolkit developed for the Gnome
|
||||
project (but usable outside of the Gnome platform), it is free
|
||||
software available under the MIT License."""
|
||||
@@ -45,7 +45,7 @@ class Libxml2(Package):
|
||||
|
||||
depends_on('pkg-config@0.9.0:', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
def configure_args(self):
|
||||
if '+python' in spec:
|
||||
python_args = [
|
||||
'--with-python={0}'.format(spec['python'].prefix),
|
||||
@@ -54,9 +54,4 @@ def install(self, spec, prefix):
|
||||
else:
|
||||
python_args = ['--without-python']
|
||||
|
||||
configure('--prefix={0}'.format(prefix), *python_args)
|
||||
|
||||
make()
|
||||
if self.run_tests:
|
||||
make('check')
|
||||
make('install')
|
||||
return python_args
|
||||
|
Reference in New Issue
Block a user