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