Skip to content
Snippets Groups Projects
Commit 77a29f09 authored by Geoffrey Oxberry's avatar Geoffrey Oxberry Committed by Adam J. Stewart
Browse files

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.
parent ac5b5724
Branches
Tags
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment