Corrections for flake8
This commit is contained in:
parent
0df0677d5b
commit
5d4a0e4050
@ -24,22 +24,25 @@
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class Emacs(Package):
|
||||
"""The Emacs programmable text editor."""
|
||||
|
||||
homepage = "https://www.gnu.org/software/emacs"
|
||||
url = "http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.gz"
|
||||
|
||||
version('24.5', 'd74b597503a68105e61b5b9f6d065b44')
|
||||
|
||||
variant('use-system-deps', default=True, description='Uses the library on the system to compile')
|
||||
|
||||
|
||||
depends_on('ncurses')
|
||||
# Emacs also depends on:
|
||||
# GTK or other widget library
|
||||
# libtiff, png, etc.
|
||||
# For now, we assume the system provides all that stuff.
|
||||
# For Ubuntu 14.04 LTS:
|
||||
# sudo apt-get install libgtk-3-dev libxpm-dev libtiff5-dev libjpeg8-dev libgif-dev libpng12-dev
|
||||
# sudo apt-get install libgtk-3-dev libxpm-dev
|
||||
# libtiff5-dev libjpeg8-dev libgif-dev libpng12-dev
|
||||
depends_on('libtiff', when='~use-system-deps')
|
||||
depends_on('libpng', when='~use-system-deps')
|
||||
|
||||
@ -48,10 +51,10 @@ def install(self, spec, prefix):
|
||||
args = [
|
||||
'--with-xpm=no',
|
||||
'--with-gif=no',
|
||||
]
|
||||
]
|
||||
else:
|
||||
args = []
|
||||
|
||||
|
||||
configure('--prefix=%s' % prefix, *args)
|
||||
make()
|
||||
make("install")
|
||||
|
Loading…
Reference in New Issue
Block a user