Added ns-fullscreen patch for emacs formula if running with "--cocoa" flag

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Luke Amdor 2010-07-01 14:03:04 -05:00 committed by Adam Vandenberg
parent bdd8ab7296
commit b227561541

View file

@ -5,12 +5,13 @@ require 'formula'
class Emacs <Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.2.tar.bz2'
md5 '057a0379f2f6b85fb114d8c723c79ce2'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
head 'bzr://http://bzr.savannah.gnu.org/r/emacs/trunk'
end
homepage 'http://www.gnu.org/software/emacs/'
def options
[
@ -20,6 +21,10 @@ class Emacs <Formula
]
end
def patches
"http://github.com/downloads/typester/emacs/feature-fullscreen.patch" if ARGV.include? "--cocoa"
end
def caveats
s = ""
if ARGV.include? "--cocoa"