summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPeter Doak <PDoakORNL@users.noreply.github.com>2017-12-19 02:36:54 -0500
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2017-12-19 08:36:54 +0100
commitd4c84be91b43a6b3c703580a5d781547555e0b01 (patch)
treeedd3ce55d86a00251d6b033fba76ac091b6ec8ea /var
parent69f959ec0bc2b65bfe54e4751df7b1f76ad25950 (diff)
downloadspack-d4c84be91b43a6b3c703580a5d781547555e0b01.tar.gz
spack-d4c84be91b43a6b3c703580a5d781547555e0b01.tar.bz2
spack-d4c84be91b43a6b3c703580a5d781547555e0b01.tar.xz
spack-d4c84be91b43a6b3c703580a5d781547555e0b01.zip
Emacs: added gnutls variant (tested on Centos 7) (#6711)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/emacs/package.py4
-rw-r--r--var/spack/repos/builtin/packages/ncurses/package.py8
2 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/emacs/package.py b/var/spack/repos/builtin/packages/emacs/package.py
index 1a7c8143a9..21b6b1b17b 100644
--- a/var/spack/repos/builtin/packages/emacs/package.py
+++ b/var/spack/repos/builtin/packages/emacs/package.py
@@ -43,6 +43,7 @@ class Emacs(AutotoolsPackage):
values=('gtk', 'athena'),
description="Select an X toolkit (gtk, athena)"
)
+ variant('tls', default=False, description="Build Emacs with gnutls")
depends_on('pkgconfig', type='build')
@@ -55,6 +56,9 @@ class Emacs(AutotoolsPackage):
depends_on('libx11', when='+X')
depends_on('libxaw', when='+X toolkit=athena')
depends_on('gtkplus+X', when='+X toolkit=gtk')
+ depends_on('gnutls', when='+tls')
+ depends_on('libxpm ^gettext+libunistring', when='+tls')
+ depends_on('ncurses+termlib', when='+tls')
def configure_args(self):
spec = self.spec
diff --git a/var/spack/repos/builtin/packages/ncurses/package.py b/var/spack/repos/builtin/packages/ncurses/package.py
index 9787568bb6..d237dc3306 100644
--- a/var/spack/repos/builtin/packages/ncurses/package.py
+++ b/var/spack/repos/builtin/packages/ncurses/package.py
@@ -44,6 +44,8 @@ class Ncurses(AutotoolsPackage):
variant('symlinks', default=False,
description='Enables symlinks. Needed on AFS filesystem.')
+ variant('termlib', default=False,
+ description='Enables termlib needs for gnutls in emacs.')
depends_on('pkgconfig', type='build')
@@ -71,6 +73,12 @@ class Ncurses(AutotoolsPackage):
if '+symlinks' in self.spec:
opts.append('--enable-symlinks')
+ if '+termlib' in self.spec:
+ opts.extend(('--with-termlib',
+ '--enable-termcap',
+ '--enable-getcap',
+ '--enable-tcap-names'))
+
prefix = '--prefix={0}'.format(prefix)
configure = Executable('../configure')