emacs: on darwin, do not build Cocoa app (#6882)
Building emacs on darwin throws an error when trying to build an Emacs app in the nextstep/Emacs.app path of the build tree. For now, disable building this app. It's possible to enable building the app also; Homebrew offers options to this effect, and also adds Mac-specific options for starting the emacs daemon. However, for the sake of simplicity and getting a workable up-to-date emacs installation on my machine as quickly as possible, this commit focuses on a minimal viable modification.
This commit is contained in:
parent
ac5b5724c6
commit
77a29f09f9
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,8 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class Emacs(AutotoolsPackage):
|
class Emacs(AutotoolsPackage):
|
||||||
"""The Emacs programmable text editor."""
|
"""The Emacs programmable text editor."""
|
||||||
|
@ -72,4 +74,9 @@ def configure_args(self):
|
||||||
else:
|
else:
|
||||||
args = ['--without-x']
|
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
|
return args
|
||||||
|
|
Loading…
Reference in a new issue