diff --git a/var/spack/repos/builtin/packages/emacs/package.py b/var/spack/repos/builtin/packages/emacs/package.py index 21b6b1b17b4f0ab56760cc9ec14177df4fabaebf..e654e9c9c7cbf8eb1c198722e0533790317fb4e4 100644 --- a/var/spack/repos/builtin/packages/emacs/package.py +++ b/var/spack/repos/builtin/packages/emacs/package.py @@ -24,6 +24,8 @@ ############################################################################## from spack import * +import sys + class Emacs(AutotoolsPackage): """The Emacs programmable text editor.""" @@ -72,4 +74,9 @@ def configure_args(self): else: args = ['--without-x'] + # On OS X/macOS, do not build "nextstep/Emacs.app", because + # doing so throws an error at build-time + if sys.platform == 'darwin': + args.append('--without-ns') + return args