1 |
commit: 69d01a4273a556b1205a7a575cb3811ab7e2443d |
2 |
Author: Ali Abdel-Qader <abdelqaderali <AT> protonmail <DOT> com> |
3 |
AuthorDate: Tue Mar 30 02:19:15 2021 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 30 03:47:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69d01a42 |
7 |
|
8 |
dev-libs/tree-sitter: Fix potentially no CC being set |
9 |
|
10 |
Closes: https://bugs.gentoo.org/779139 |
11 |
Suggested-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
Signed-off-by: Ali Abdel-Qader <abdelqaderali <AT> protonmail.com> |
13 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
14 |
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org> |
15 |
|
16 |
dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild | 7 +++++++ |
17 |
dev-libs/tree-sitter/tree-sitter-9999.ebuild | 7 +++++++ |
18 |
2 files changed, 14 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild b/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild |
21 |
index 62e7c8355b2..1a09f6f1bc2 100644 |
22 |
--- a/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild |
23 |
+++ b/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild |
24 |
@@ -3,6 +3,8 @@ |
25 |
|
26 |
EAPI=7 |
27 |
|
28 |
+inherit toolchain-funcs |
29 |
+ |
30 |
DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library." |
31 |
HOMEPAGE="https://github.com/tree-sitter/tree-sitter" |
32 |
|
33 |
@@ -21,6 +23,11 @@ PATCHES=( |
34 |
"${FILESDIR}/${PN}-No-static-libs-gentoo.patch" |
35 |
) |
36 |
|
37 |
+src_prepare() { |
38 |
+ default |
39 |
+ tc-export CC |
40 |
+} |
41 |
+ |
42 |
src_install() { |
43 |
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install |
44 |
} |
45 |
|
46 |
diff --git a/dev-libs/tree-sitter/tree-sitter-9999.ebuild b/dev-libs/tree-sitter/tree-sitter-9999.ebuild |
47 |
index 547703a2d32..7097ecdcab1 100644 |
48 |
--- a/dev-libs/tree-sitter/tree-sitter-9999.ebuild |
49 |
+++ b/dev-libs/tree-sitter/tree-sitter-9999.ebuild |
50 |
@@ -3,6 +3,8 @@ |
51 |
|
52 |
EAPI=7 |
53 |
|
54 |
+inherit toolchain-funcs |
55 |
+ |
56 |
DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library." |
57 |
HOMEPAGE="https://github.com/tree-sitter/tree-sitter" |
58 |
|
59 |
@@ -21,6 +23,11 @@ PATCHES=( |
60 |
"${FILESDIR}/${PN}-No-static-libs-gentoo.patch" |
61 |
) |
62 |
|
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ tc-export CC |
66 |
+} |
67 |
+ |
68 |
src_install() { |
69 |
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install |
70 |
} |