commit:     c2c65397e5216438e57834a908c09c629bbacfa0
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  1 07:30:34 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Apr  1 07:30:34 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2c65397

sys-devel/sparse: skip llvm detection for USE=-llvm, bug #715376

Patch by Jeroen Roovers.

Reported-and-Fixed-by: Jeroen Roovers
Closes: https://bugs.gentoo.org/715376
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-devel/sparse/sparse-0.6.1.ebuild | 4 ++++
 sys-devel/sparse/sparse-9999.ebuild  | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/sys-devel/sparse/sparse-0.6.1.ebuild 
b/sys-devel/sparse/sparse-0.6.1.ebuild
index ca577f5defa..d058d2c9ea4 100644
--- a/sys-devel/sparse/sparse-0.6.1.ebuild
+++ b/sys-devel/sparse/sparse-0.6.1.ebuild
@@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
        gtk? ( virtual/pkgconfig )
        xml? ( virtual/pkgconfig )"
 
+pkg_setup() {
+       use llvm && llvm_pkg_setup
+}
+
 _emake() {
        # Makefile does not allow for an easy override of flags.
        # Collect them here and override default phases.

diff --git a/sys-devel/sparse/sparse-9999.ebuild 
b/sys-devel/sparse/sparse-9999.ebuild
index ca577f5defa..d058d2c9ea4 100644
--- a/sys-devel/sparse/sparse-9999.ebuild
+++ b/sys-devel/sparse/sparse-9999.ebuild
@@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
        gtk? ( virtual/pkgconfig )
        xml? ( virtual/pkgconfig )"
 
+pkg_setup() {
+       use llvm && llvm_pkg_setup
+}
+
 _emake() {
        # Makefile does not allow for an easy override of flags.
        # Collect them here and override default phases.

Reply via email to