2013-04-26 12:32:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class EmacsClangCompleteAsync < Formula
|
|
|
|
homepage 'https://github.com/Golevka/emacs-clang-complete-async'
|
2014-03-06 21:15:30 +00:00
|
|
|
url 'https://github.com/Golevka/emacs-clang-complete-async/archive/v0.5.tar.gz'
|
|
|
|
sha1 '7f50d3029fedee5ef9306afdac547571928a16b4'
|
2013-04-26 12:32:05 +00:00
|
|
|
|
|
|
|
head 'https://github.com/Golevka/emacs-clang-complete-async.git'
|
|
|
|
|
|
|
|
option 'with-elisp', 'Include Emacs lisp package'
|
|
|
|
|
|
|
|
depends_on 'llvm' => 'with-clang'
|
|
|
|
|
2014-02-11 21:15:29 +00:00
|
|
|
# https://github.com/Golevka/emacs-clang-complete-async/issues/65
|
|
|
|
def patches; DATA; end
|
|
|
|
|
2013-04-26 12:32:05 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "clang-complete"
|
2014-03-06 20:40:26 +00:00
|
|
|
share.install "auto-complete-clang-async.el" if build.with? "elisp"
|
2013-04-26 12:32:05 +00:00
|
|
|
end
|
|
|
|
end
|
2014-02-11 21:15:29 +00:00
|
|
|
|
|
|
|
__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
|