aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/emacs-clang-complete-async.rb
blob: cbed638c055070f257d4f7b37ec209a80dc170c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'formula'

class EmacsClangCompleteAsync < Formula
  homepage 'https://github.com/Golevka/emacs-clang-complete-async'
  url 'https://github.com/Golevka/emacs-clang-complete-async/archive/v0.5.tar.gz'
  sha1 '7f50d3029fedee5ef9306afdac547571928a16b4'

  head 'https://github.com/Golevka/emacs-clang-complete-async.git'

  option 'with-elisp', 'Include Emacs lisp package'

  depends_on 'llvm' => 'with-clang'

  stable do
    # https://github.com/Golevka/emacs-clang-complete-async/issues/65
    patch :DATA
  end

  # https://github.com/Golevka/emacs-clang-complete-async/pull/59
  patch do
    url "https://github.com/yocchi/emacs-clang-complete-async/commit/5ce197b15d7b8c9abfc862596bf8d902116c9efe.diff"
    sha1 "a933be38f09627cc6b841a49b849d68219a3bc96"
  end

  def install
    system "make"
    bin.install "clang-complete"
    share.install "auto-complete-clang-async.el" if build.with? "elisp"
  end
end

__END__
--- a/src/completion.h	2013-05-26 17:27:46.000000000 +0200
+++ b/src/completion.h	2014-02-11 21:40:18.000000000 +0100
@@ -3,6 +3,7 @@


 #include <clang-c/Index.h>
+#include <stdio.h>


 typedef struct __completion_Session_struct