diff options
| author | Adam Vandenberg | 2010-07-13 07:44:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-13 07:44:01 -0700 |
| commit | de08b2a37014a438e36603e26ac469ea8ee6a2c3 (patch) | |
| tree | a2bba81e19ad841c87ae2001c50dcbc1e77cf78a /Library/Formula | |
| parent | 9eae8d613c08e32efd9b1cabfcc1b5b0d7052daf (diff) | |
| download | homebrew-de08b2a37014a438e36603e26ac469ea8ee6a2c3.tar.bz2 | |
Add x11 option to emacs
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/emacs.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index 962045eed..ea0ce9285 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -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" |
