Add x11 option to emacs
parent
e827344c11
commit
dd7d28d42b
|
@ -13,6 +13,7 @@ class Emacs <Formula
|
|||
def options
|
||||
[
|
||||
["--cocoa", "Build a Cocoa version of emacs"],
|
||||
["--with-x", "Include X11 support"],
|
||||
["--use-git-head", "Use repo.or.cz git mirror for HEAD builds"],
|
||||
]
|
||||
end
|
||||
|
@ -74,7 +75,14 @@ class Emacs <Formula
|
|||
system "make install"
|
||||
prefix.install "nextstep/Emacs.app"
|
||||
else
|
||||
configure_args << "--without-x"
|
||||
if ARGV.include? "--with-x"
|
||||
configure_args << "--with-x"
|
||||
configure_args << "--with-gif=no"
|
||||
configure_args << "--with-tiff=no"
|
||||
configure_args << "--with-jpeg=no"
|
||||
else
|
||||
configure_args << "--without-x"
|
||||
end
|
||||
system "./configure", *configure_args
|
||||
system "make"
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in New Issue