1 |
commit: 9323cef5c400381fefd8d1d5111d535148480d43 |
2 |
Author: Tiziano Müller <tm <AT> dev-zero <DOT> ch> |
3 |
AuthorDate: Fri Jun 29 06:14:29 2012 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 29 06:14:29 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=9323cef5 |
7 |
|
8 |
initial commit |
9 |
|
10 |
--- |
11 |
app-vim/clang_complete/Manifest | 3 ++ |
12 |
app-vim/clang_complete/clang_complete-scm.ebuild | 31 ++++++++++++++++++++++ |
13 |
app-vim/clang_complete/files/cache_path.patch | 19 +++++++++++++ |
14 |
app-vim/clang_complete/files/libclang_path.patch | 13 +++++++++ |
15 |
4 files changed, 66 insertions(+), 0 deletions(-) |
16 |
|
17 |
diff --git a/app-vim/clang_complete/Manifest b/app-vim/clang_complete/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..e71cb85 |
20 |
--- /dev/null |
21 |
+++ b/app-vim/clang_complete/Manifest |
22 |
@@ -0,0 +1,3 @@ |
23 |
+AUX cache_path.patch 568 RMD160 b11c030c331081fcd72e38c18e59f683d540611f SHA1 16ecc305f9efb5db7281d0fabfcc61b0a87be3b3 SHA256 eb2190d3df843fe940901cceffdfc4da84f315ab7dedcab69080da1138d31013 |
24 |
+AUX libclang_path.patch 439 RMD160 b2a2109c2b8536975ecb9bb8f77193724a7f0549 SHA1 9be76c99036b6a9259c22cb2643e0cbd2c5dcee7 SHA256 2bf5e74827ab05725df14c2df057c60e54d9a5f2a414ccc2b2efe10681a0a607 |
25 |
+EBUILD clang_complete-scm.ebuild 686 RMD160 5c51fa91d89938de8d5f6c994d2ca97546c92b6c SHA1 99915483b58a7f4ea7522a603676a65e4608a479 SHA256 86155e80ad636bac199de1e56b4dbadf15730322ff9a9dab8c5e5cbc49c233df |
26 |
|
27 |
diff --git a/app-vim/clang_complete/clang_complete-scm.ebuild b/app-vim/clang_complete/clang_complete-scm.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..a854860 |
30 |
--- /dev/null |
31 |
+++ b/app-vim/clang_complete/clang_complete-scm.ebuild |
32 |
@@ -0,0 +1,31 @@ |
33 |
+# Copyright 1999-2012 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Header: $ |
36 |
+ |
37 |
+EAPI=4 |
38 |
+ |
39 |
+VIM_PLUGIN_VIM_VERSION="7.0" |
40 |
+PYTHON_DEPEND=2 |
41 |
+ |
42 |
+inherit eutils git-2 python vim-plugin |
43 |
+ |
44 |
+DESCRIPTION="vim plugin: use clang for completing C/C++ code." |
45 |
+HOMEPAGE="https://github.com/Rip-Rip/clang_complete" |
46 |
+SRC_URI="" |
47 |
+EGIT_REPO_URI="https://github.com/Rip-Rip/clang_complete.git" |
48 |
+ |
49 |
+LICENSE="GPL-3" |
50 |
+KEYWORDS="~amd64" |
51 |
+IUSE="" |
52 |
+ |
53 |
+RDEPEND="sys-devel/clang" |
54 |
+ |
55 |
+VIM_PLUGIN_HELPFILES="clang_complete" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ epatch \ |
59 |
+ "${FILESDIR}/cache_path.patch" \ |
60 |
+ "${FILESDIR}/libclang_path.patch" |
61 |
+ rm -r examples Makefile .git* |
62 |
+ python_convert_shebangs 2 bin/cc_args.py |
63 |
+} |
64 |
|
65 |
diff --git a/app-vim/clang_complete/files/cache_path.patch b/app-vim/clang_complete/files/cache_path.patch |
66 |
new file mode 100644 |
67 |
index 0000000..18532ec |
68 |
--- /dev/null |
69 |
+++ b/app-vim/clang_complete/files/cache_path.patch |
70 |
@@ -0,0 +1,19 @@ |
71 |
+diff --git a/autoload/getopts/gcc.vim b/autoload/getopts/gcc.vim |
72 |
+index 1bfe1dc..7809a32 100644 |
73 |
+--- a/autoload/getopts/gcc.vim |
74 |
++++ b/autoload/getopts/gcc.vim |
75 |
+@@ -1,8 +1,12 @@ |
76 |
+ " clang_complete gcc's include paths finder |
77 |
+ " Author: xaizek |
78 |
+ |
79 |
+-let s:scr = expand('<sfile>') |
80 |
+-let s:cache_path = fnamemodify(s:scr, ':p:h') |
81 |
++if exists("g:clang_complete_cache_path") |
82 |
++ let s:cache_path = g:clang_complete_cache_path |
83 |
++else |
84 |
++ let s:scr = expand('<sfile>') |
85 |
++ let s:cache_path = fnamemodify(s:scr, ':p:h') |
86 |
++endif |
87 |
+ |
88 |
+ function! getopts#gcc#getopts() |
89 |
+ call s:DetemineFileType() |
90 |
|
91 |
diff --git a/app-vim/clang_complete/files/libclang_path.patch b/app-vim/clang_complete/files/libclang_path.patch |
92 |
new file mode 100644 |
93 |
index 0000000..fd04c2c |
94 |
--- /dev/null |
95 |
+++ b/app-vim/clang_complete/files/libclang_path.patch |
96 |
@@ -0,0 +1,13 @@ |
97 |
+diff --git a/plugin/clang/cindex.py b/plugin/clang/cindex.py |
98 |
+index 35f1af1..1246b64 100644 |
99 |
+--- a/plugin/clang/cindex.py |
100 |
++++ b/plugin/clang/cindex.py |
101 |
+@@ -71,7 +71,7 @@ def get_cindex_library(): |
102 |
+ # CIndex library. It could be on path or elsewhere, or versioned, etc. |
103 |
+ import platform |
104 |
+ name = platform.system() |
105 |
+- path = sys.argv[0] |
106 |
++ path = '/usr/lib/llvm' |
107 |
+ if path != '': |
108 |
+ path += '/' |
109 |
+ if name == 'Darwin': |