From: Sergei Trofimovich Date: Wed, 1 Apr 2020 07:30:34 +0000 (+0100) Subject: sys-devel/sparse: skip llvm detection for USE=-llvm, bug #715376 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2c65397e5216438e57834a908c09c629bbacfa0;p=gentoo.git 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 --- diff --git a/sys-devel/sparse/sparse-0.6.1.ebuild b/sys-devel/sparse/sparse-0.6.1.ebuild index ca577f5defa0..d058d2c9ea40 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 ca577f5defa0..d058d2c9ea40 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.