1 |
commit: 41fd7a786b6180c6366b0f9abbdc0d137a9c497d |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 28 14:59:27 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 28 15:30:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41fd7a78 |
7 |
|
8 |
dev-util/coccinelle: completion and doc build fixes |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild | 5 ++++- |
13 |
.../files/coccinelle-1.1.1-bash-completion.patch | 19 +++++++++++++++++++ |
14 |
.../files/coccinelle-1.1.1-find-xxdate.patch | 11 +++++++++++ |
15 |
3 files changed, 34 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild b/dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild |
18 |
index 15fe9d274569..da7fd00647c3 100644 |
19 |
--- a/dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild |
20 |
+++ b/dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild |
21 |
@@ -46,7 +46,10 @@ BDEPEND=" |
22 |
" |
23 |
|
24 |
DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt ) |
25 |
- |
26 |
+PATCHES=( |
27 |
+ "${FILESDIR}"/${P}-bash-completion.patch |
28 |
+ "${FILESDIR}"/${P}-find-xxdate.patch |
29 |
+) |
30 |
SITEFILE=50coccinelle-gentoo.el |
31 |
|
32 |
pkg_setup() { |
33 |
|
34 |
diff --git a/dev-util/coccinelle/files/coccinelle-1.1.1-bash-completion.patch b/dev-util/coccinelle/files/coccinelle-1.1.1-bash-completion.patch |
35 |
new file mode 100644 |
36 |
index 000000000000..1958dbd498f4 |
37 |
--- /dev/null |
38 |
+++ b/dev-util/coccinelle/files/coccinelle-1.1.1-bash-completion.patch |
39 |
@@ -0,0 +1,19 @@ |
40 |
+--- a/scripts/spatch.bash_completion |
41 |
++++ b/scripts/spatch.bash_completion |
42 |
+@@ -34,7 +34,6 @@ __spatchcomp_1 () |
43 |
+ done |
44 |
+ } |
45 |
+ |
46 |
+-have spatch && |
47 |
+ _spatch() |
48 |
+ { |
49 |
+ local cur prev xspec |
50 |
+@@ -89,8 +88,6 @@ _spatch() |
51 |
+ complete -F _spatch -o bashdefault -o default -o nospace spatch \ |
52 |
+ || complete -F _spatch -o default -o nospace spatch |
53 |
+ |
54 |
+-complete -F _spatch -o bashdefault -o default -o nospace spatch.opt \ |
55 |
+- || complete -F _spatch -o default -o nospace spatch.opt |
56 |
+ |
57 |
+ # Local variables: |
58 |
+ # mode: shell-script |
59 |
|
60 |
diff --git a/dev-util/coccinelle/files/coccinelle-1.1.1-find-xxdate.patch b/dev-util/coccinelle/files/coccinelle-1.1.1-find-xxdate.patch |
61 |
new file mode 100644 |
62 |
index 000000000000..0b8143f29cfd |
63 |
--- /dev/null |
64 |
+++ b/dev-util/coccinelle/files/coccinelle-1.1.1-find-xxdate.patch |
65 |
@@ -0,0 +1,11 @@ |
66 |
+--- a/docs/manual/find-xxdate |
67 |
++++ b/docs/manual/find-xxdate |
68 |
+@@ -9,7 +9,7 @@ |
69 |
+ # Otherwise, a warning is printed on stderr and the script returns 1 |
70 |
+ |
71 |
+ file=xxdate.exe |
72 |
+-directories="$(opam var hevea:lib) /usr/lib64/hevea /usr/share/hevea /usr/local/lib/hevea /opt/local/share/hevea" |
73 |
++directories="/usr/lib/hevea /usr/lib64/hevea /usr/share/hevea /usr/local/lib/hevea /opt/local/share/hevea" |
74 |
+ |
75 |
+ for dir in ${directories}; do |
76 |
+ fullpath=${dir}/${file}; |