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 Emacs(Package):
|
||||
class Emacs(AutotoolsPackage):
|
||||
"""The Emacs programmable text editor."""
|
||||
|
||||
homepage = "https://www.gnu.org/software/emacs"
|
||||
@@ -47,7 +47,7 @@ class Emacs(Package):
|
||||
depends_on('libxaw', when='+X toolkit=athena')
|
||||
depends_on('gtkplus+X', when='+X toolkit=gtk')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
def configure_args(self):
|
||||
args = []
|
||||
toolkit = spec.variants['toolkit'].value
|
||||
if '+X' in spec:
|
||||
@@ -61,7 +61,4 @@ def install(self, spec, prefix):
|
||||
else:
|
||||
args = ['--without-x']
|
||||
|
||||
configure('--prefix={0}'.format(prefix), *args)
|
||||
|
||||
make()
|
||||
make("install")
|
||||
return args
|
||||
|
Reference in New Issue
Block a user