diff options
| author | David Christenson | 2014-10-21 00:26:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-21 00:26:15 -0500 |
| commit | d8d843097e4126e8a654cd0479bf9b3a08476067 (patch) | |
| tree | e2527818df3aad09838edd2fce66ba1447fe65bd /Library/Formula | |
| parent | b7b4c591c7c0a46aef4a1d3c5294c4ed88c54939 (diff) | |
| download | homebrew-d8d843097e4126e8a654cd0479bf9b3a08476067.tar.bz2 | |
emacs 24.4
Update to latest stable release, remove obsolete patches, remove devel
version, remove obsolete Japanese patch, use HTTPS on homepage and
mirror, change single quotes to double.
Closes #33410.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/emacs.rb | 78 |
1 files changed, 8 insertions, 70 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index b8c1c1d1c..8497147f2 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -1,38 +1,26 @@ -require 'formula' +require "formula" class Emacs < Formula - homepage 'http://www.gnu.org/software/emacs/' - url 'http://ftpmirror.gnu.org/emacs/emacs-24.3.tar.gz' - mirror 'http://ftp.gnu.org/pub/gnu/emacs/emacs-24.3.tar.gz' - sha256 '0098ca3204813d69cd8412045ba33e8701fa2062f4bff56bedafc064979eef41' + homepage "https://www.gnu.org/software/emacs/" + url "http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.xz" + mirror "https://ftp.gnu.org/pub/gnu/emacs/emacs-24.4.tar.xz" + sha256 "47e391170db4ca0a3c724530c7050655f6d573a711956b4cd84693c194a9d4fd" option "cocoa", "Build a Cocoa version of emacs" option "srgb", "Enable sRGB colors in the Cocoa version of emacs" option "with-x", "Include X11 support" option "use-git-head", "Use Savannah (faster) git mirror for HEAD builds" option "keep-ctags", "Don't remove the ctags executable that emacs provides" - option "japanese", "Patch for Japanese input methods" head do if build.include? "use-git-head" - url 'http://git.sv.gnu.org/r/emacs.git' + url "http://git.sv.gnu.org/r/emacs.git" else - url 'bzr://http://bzr.savannah.gnu.org/r/emacs/trunk' + url "bzr://http://bzr.savannah.gnu.org/r/emacs/trunk" end depends_on "autoconf" => :build depends_on "automake" => :build - depends_on "glib" => :optional - end - - devel do - url 'http://alpha.gnu.org/gnu/emacs/pretest/emacs-24.4-rc1.tar.xz' - sha256 '47e391170db4ca0a3c724530c7050655f6d573a711956b4cd84693c194a9d4fd' - version '24.4-rc1' - - depends_on "autoconf" => :build - depends_on "automake" => :build - depends_on "glib" => :optional end stable do @@ -40,29 +28,6 @@ class Emacs < Formula depends_on "autoconf" => :build depends_on "automake" => :build end - - # Fix default-directory on Cocoa and Mavericks. - # Fixed upstream in r114730 and r114882. - patch :p0, :DATA - - # Make native fullscreen mode optional, mostly from upstream r111679 - patch do - url "https://gist.githubusercontent.com/scotchi/7209145/raw/a571acda1c85e13ed8fe8ab7429dcb6cab52344f/ns-use-native-fullscreen-and-toggle-frame-fullscreen.patch" - sha1 "cb4cc4940efa1a43a5d36ec7b989b90834b7442b" - end - - # Fix memory leaks in NS version from upstream r114945 - patch do - url "https://gist.githubusercontent.com/anonymous/8553178/raw/c0ddb67b6e92da35a815d3465c633e036df1a105/emacs.memory.leak.aka.distnoted.patch.diff" - sha1 "173ce253e0d8920e0aa7b1464d5635f6902c98e7" - end - - # "--japanese" option: - # to apply a patch from MacEmacsJP for Japanese input methods - patch :p0 do - url "http://sourceforge.jp/projects/macemacsjp/scm/svn/blobs/583/inline_patch/trunk/emacs-inline.patch?export=raw" - sha1 "61a6f41f3ddc9ecc3d7f57379b3dc195d7b9b5e2" - end if build.include? "cocoa" and build.include? "japanese" end depends_on "pkg-config" => :build @@ -72,6 +37,7 @@ class Emacs < Formula depends_on "librsvg" => :optional depends_on "imagemagick" => :optional depends_on "mailutils" => :optional + depends_on "glib" => :optional fails_with :llvm do build 2334 @@ -112,14 +78,6 @@ class Emacs < Formula system "./autogen.sh" unless build.stable? if build.include? "cocoa" - # Patch for color issues described here: - # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8402 - if build.include? "srgb" and build.stable? - inreplace "src/nsterm.m", - "*col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0];", - "*col = [NSColor colorWithDeviceRed: r green: g blue: b alpha: 1.0];" - end - args << "--with-ns" << "--disable-ns-self-contained" system "./configure", *args system "make" @@ -174,23 +132,3 @@ class Emacs < Formula assert_equal "4", shell_output("#{bin}/emacs --batch --eval=\"(print (+ 2 2))\"").strip end end - -__END__ ---- src/emacs.c.orig 2013-02-06 13:33:36.000000000 +0900 -+++ src/emacs.c 2013-11-02 22:38:45.000000000 +0900 -@@ -1158,10 +1158,13 @@ - if (!noninteractive) - { - #ifdef NS_IMPL_COCOA -+ /* Started from GUI? */ -+ /* FIXME: Do the right thing if getenv returns NULL, or if -+ chdir fails. */ -+ if (! inhibit_window_system && ! isatty (0)) -+ chdir (getenv ("HOME")); - if (skip_args < argc) - { -- /* FIXME: Do the right thing if getenv returns NULL, or if -- chdir fails. */ - if (!strncmp (argv[skip_args], "-psn", 4)) - { - skip_args += 1; |
