{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/4635","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/4635/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/4635/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/4635/events","html_url":"https://github.com/Homebrew/homebrew/issues/4635","id":667042,"number":4635,"title":"Emacs formula: Emacs.app can't be found via Spotlight","user":{"login":"yacoob","id":190463,"avatar_url":"https://avatars.githubusercontent.com/u/190463?v=3","gravatar_id":"","url":"https://api.github.com/users/yacoob","html_url":"https://github.com/yacoob","followers_url":"https://api.github.com/users/yacoob/followers","following_url":"https://api.github.com/users/yacoob/following{/other_user}","gists_url":"https://api.github.com/users/yacoob/gists{/gist_id}","starred_url":"https://api.github.com/users/yacoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacoob/subscriptions","organizations_url":"https://api.github.com/users/yacoob/orgs","repos_url":"https://api.github.com/users/yacoob/repos","events_url":"https://api.github.com/users/yacoob/events{/privacy}","received_events_url":"https://api.github.com/users/yacoob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2011-03-12T01:22:53Z","updated_at":"2015-12-29T16:41:06Z","closed_at":"2011-03-23T00:24:48Z","body":"After building Emacs via 'brew install emacs --cocoa', the resulting Emacs.app is in `/usr/local`. This makes it unfindable via Spotlight, as Spotlight (supposedly) deliberately skips `/usr/local` during indexing. Linking to the built Emacs.app from `/Applications` also doesn't work for some reason. Given homebrew doesn't like .apps anyway, would it be possible to have brew install the resulting .app into /Applications?"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/167827443","html_url":"https://github.com/Homebrew/homebrew/issues/4635#issuecomment-167827443","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/4635","id":167827443,"user":{"login":"jasonm23","id":71587,"avatar_url":"https://avatars.githubusercontent.com/u/71587?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonm23","html_url":"https://github.com/jasonm23","followers_url":"https://api.github.com/users/jasonm23/followers","following_url":"https://api.github.com/users/jasonm23/following{/other_user}","gists_url":"https://api.github.com/users/jasonm23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonm23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonm23/subscriptions","organizations_url":"https://api.github.com/users/jasonm23/orgs","repos_url":"https://api.github.com/users/jasonm23/repos","events_url":"https://api.github.com/users/jasonm23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonm23/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T16:41:06Z","updated_at":"2015-12-29T16:41:06Z","body":"This is what I was referring to re: address in another issue.\n\nRegardless, it makes no difference to where the .app bundle lives.\n\nThe canonical location is /Applications/ and so that will get you best results re:OS X \n\nbut as I said, a self contained bundle, as per Brew cask, and properly located is your best bet.\n\nNote that bundle can just be downloaded from S3, I recommend it over any other method, unless you're hacking the C source. Which would legitimise building from scratch.\n\n> On 29 Dec 2015, at 11:30 PM, Alex Dunn <notifications@github.com> wrote:\n> \n> There is also no reason to keep your Bundle in the Cellar. Dependencies are all met regardless of where you place the bundle.\n> \n> I'm not sure if that's true, since we pass --disable-ns-self-contained to the configure script.\n> \n> If you want a really portable Emacs bundle built from the core formula (since I don't think the Cask version has options like gnutls and imagemagick), this should work (keep in mind it's completely unsupported by us):\n> \n> diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb\n> index 71f272e..ca2e0c3 100644\n> --- a/Library/Formula/emacs.rb\n> +++ b/Library/Formula/emacs.rb\n> @@ -87,14 +87,12 @@ class Emacs < Formula\n>      system \"./autogen.sh\" if build.head? || build.devel?\n> \n>      if build.with? \"cocoa\"\n> -      args << \"--with-ns\" << \"--disable-ns-self-contained\"\n> +      args << \"--with-ns\"\n>        system \"./configure\", *args\n>        system \"make\"\n>        system \"make\", \"install\"\n>        prefix.install \"nextstep/Emacs.app\"\n> \n> -      # Replace the symlink with one that avoids starting Cocoa.\n> -      (bin/\"emacs\").unlink # Kill the existing symlink\n>        (bin/\"emacs\").write <<-EOS.undent\n>          #!/bin/bash\n>          exec #{prefix}/Emacs.app/Contents/MacOS/Emacs \"$@\"\n> @@ -116,13 +114,6 @@ class Emacs < Formula\n>        system \"make\"\n>        system \"make\", \"install\"\n>      end\n> -\n> -    # Follow MacPorts and don't install ctags from Emacs. This allows Vim\n> -    # and Emacs and ctags to play together without violence.\n> -    if build.without? \"ctags\"\n> -      (bin/\"ctags\").unlink\n> -      (man1/\"ctags.1.gz\").unlink\n> -    end\n>    end\n> \n>    def caveats\n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}