diff options
author | Ali Abdel-Qader <abdelqaderali@protonmail.com> | 2021-03-29 22:19:15 -0400 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2021-03-29 23:47:03 -0400 |
commit | 69d01a4273a556b1205a7a575cb3811ab7e2443d (patch) | |
tree | a92255a5390b18747ae989ceea944b726002e89a /dev-libs/tree-sitter | |
parent | net-libs/libqmi: Version bump to 1.28.2 (diff) | |
download | gentoo-69d01a4273a556b1205a7a575cb3811ab7e2443d.tar.gz gentoo-69d01a4273a556b1205a7a575cb3811ab7e2443d.tar.bz2 gentoo-69d01a4273a556b1205a7a575cb3811ab7e2443d.zip |
dev-libs/tree-sitter: Fix potentially no CC being set
Closes: https://bugs.gentoo.org/779139
Suggested-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Ali Abdel-Qader <abdelqaderali@protonmail.com>
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-libs/tree-sitter')
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild | 7 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-9999.ebuild | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild b/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild index 62e7c8355b29..1a09f6f1bc2f 100644 --- a/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild +++ b/dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit toolchain-funcs + DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library." HOMEPAGE="https://github.com/tree-sitter/tree-sitter" @@ -21,6 +23,11 @@ PATCHES=( "${FILESDIR}/${PN}-No-static-libs-gentoo.patch" ) +src_prepare() { + default + tc-export CC +} + src_install() { emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install } diff --git a/dev-libs/tree-sitter/tree-sitter-9999.ebuild b/dev-libs/tree-sitter/tree-sitter-9999.ebuild index 547703a2d329..7097ecdcab15 100644 --- a/dev-libs/tree-sitter/tree-sitter-9999.ebuild +++ b/dev-libs/tree-sitter/tree-sitter-9999.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit toolchain-funcs + DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library." HOMEPAGE="https://github.com/tree-sitter/tree-sitter" @@ -21,6 +23,11 @@ PATCHES=( "${FILESDIR}/${PN}-No-static-libs-gentoo.patch" ) +src_prepare() { + default + tc-export CC +} + src_install() { emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install } |