From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1265662-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 802971382C5 for <garchives@archives.gentoo.org>; Tue, 30 Mar 2021 03:47:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8168E0878; Tue, 30 Mar 2021 03:47:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 673B1E0878 for <gentoo-commits@lists.gentoo.org>; Tue, 30 Mar 2021 03:47:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11439340C19 for <gentoo-commits@lists.gentoo.org>; Tue, 30 Mar 2021 03:47:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84F685B8 for <gentoo-commits@lists.gentoo.org>; Tue, 30 Mar 2021 03:47:12 +0000 (UTC) From: "Nick Sarnie" <sarnex@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nick Sarnie" <sarnex@gentoo.org> Message-ID: <1617076023.69d01a4273a556b1205a7a575cb3811ab7e2443d.sarnex@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/tree-sitter/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild dev-libs/tree-sitter/tree-sitter-9999.ebuild X-VCS-Directories: dev-libs/tree-sitter/ X-VCS-Committer: sarnex X-VCS-Committer-Name: Nick Sarnie X-VCS-Revision: 69d01a4273a556b1205a7a575cb3811ab7e2443d X-VCS-Branch: master Date: Tue, 30 Mar 2021 03:47:12 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e8093d97-86ba-4085-afbf-0f442b616b8c X-Archives-Hash: 5e979dbc9b30ae95ff2ca435f41e5847 commit: 69d01a4273a556b1205a7a575cb3811ab7e2443d Author: Ali Abdel-Qader <abdelqaderali <AT> protonmail <DOT> com> AuthorDate: Tue Mar 30 02:19:15 2021 +0000 Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> CommitDate: Tue Mar 30 03:47:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69d01a42 dev-libs/tree-sitter: Fix potentially no CC being set Closes: https://bugs.gentoo.org/779139 Suggested-by: Sergei Trofimovich <slyfox <AT> gentoo.org> Signed-off-by: Ali Abdel-Qader <abdelqaderali <AT> protonmail.com> Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org> dev-libs/tree-sitter/tree-sitter-0.19.4.ebuild | 7 +++++++ dev-libs/tree-sitter/tree-sitter-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) 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 62e7c8355b2..1a09f6f1bc2 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 547703a2d32..7097ecdcab1 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 }