diff options
author | Sam James <sam@gentoo.org> | 2021-09-19 03:15:23 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-09-19 03:24:20 +0100 |
commit | c5ea3c2cc75ac22165cd80e75298a75b30031294 (patch) | |
tree | a2410a7ca5f71e6dc0ac45b64c02ef04c7ab3b52 /sys-devel/sparse/sparse-9999.ebuild | |
parent | sys-devel/smatch: add 1.72 (diff) | |
download | gentoo-c5ea3c2cc75ac22165cd80e75298a75b30031294.tar.gz gentoo-c5ea3c2cc75ac22165cd80e75298a75b30031294.tar.bz2 gentoo-c5ea3c2cc75ac22165cd80e75298a75b30031294.zip |
sys-devel/sparse: add 0.6.4
Closes: https://bugs.gentoo.org/812551
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel/sparse/sparse-9999.ebuild')
-rw-r--r-- | sys-devel/sparse/sparse-9999.ebuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys-devel/sparse/sparse-9999.ebuild b/sys-devel/sparse/sparse-9999.ebuild index 0fcda7847330..3304272807ef 100644 --- a/sys-devel/sparse/sparse-9999.ebuild +++ b/sys-devel/sparse/sparse-9999.ebuild @@ -3,6 +3,7 @@ EAPI=7 +LLVM_MAX_SLOT=12 inherit llvm multilib toolchain-funcs DESCRIPTION="C semantic parser" @@ -21,16 +22,20 @@ SLOT="0" IUSE="gtk llvm sqlite test xml" RESTRICT="!test? ( test )" -LLVM_MAX_SLOT=10 - RDEPEND="gtk? ( x11-libs/gtk+:2 ) - llvm? ( sys-devel/llvm:${LLVM_MAX_SLOT}= ) + llvm? ( <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= ) sqlite? ( dev-db/sqlite:= ) xml? ( dev-libs/libxml2 )" -DEPEND="${RDEPEND} - gtk? ( virtual/pkgconfig ) +DEPEND="${RDEPEND}" +BDEPEND="gtk? ( virtual/pkgconfig ) xml? ( virtual/pkgconfig )" +llvm_check_deps() { + has_version "sys-devel/llvm:${LLVM_MAX_SLOT}" || \ + has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 1))" \ + has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 2))" +} + pkg_setup() { use llvm && llvm_pkg_setup } @@ -44,15 +49,12 @@ _emake() { AR="$(tc-getAR)" \ CFLAGS="${CFLAGS}" \ PKG_CONFIG="$(tc-getPKG_CONFIG)" \ - \ HAVE_GTK=$(usex gtk) \ HAVE_LLVM=$(usex llvm) \ HAVE_SQLITE=$(usex sqlite) \ HAVE_LIBXML=$(usex xml) \ - \ V=1 \ PREFIX="${EPREFIX}/usr" \ - \ "$@" } |