summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-06-10 18:26:46 +0100
committerSam James <sam@gentoo.org>2023-06-10 18:26:51 +0100
commit3014d717480c56f41fcfc02cc467642bfb2b9985 (patch)
tree3910a7d1e7ed8fab8f815d86e56f93e27bb2283e /sys-apps/pkgcraft-tools
parentdev-libs/gjs: Version bump to 1.76.1 (diff)
downloadgentoo-3014d717480c56f41fcfc02cc467642bfb2b9985.tar.gz
gentoo-3014d717480c56f41fcfc02cc467642bfb2b9985.tar.bz2
gentoo-3014d717480c56f41fcfc02cc467642bfb2b9985.zip
sys-apps/pkgcraft-tools: add clang dep for bindgen
Closes: https://bugs.gentoo.org/908229 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/pkgcraft-tools')
-rw-r--r--sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.7.ebuild13
-rw-r--r--sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild13
2 files changed, 24 insertions, 2 deletions
diff --git a/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.7.ebuild b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.7.ebuild
index de119a49d803..5810c1e4375b 100644
--- a/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.7.ebuild
+++ b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.7.ebuild
@@ -4,7 +4,8 @@
EAPI=8
CRATES=" "
-inherit cargo
+LLVM_MAX_SLOT=16
+inherit cargo llvm
DESCRIPTION="pkgcraft-based tools for Gentoo"
HOMEPAGE="https://pkgcraft.github.io/"
@@ -27,6 +28,16 @@ SLOT="0"
QA_FLAGS_IGNORED="usr/bin/pk"
+# Clang needed for bindgen
+BDEPEND="
+ <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1))
+ virtual/pkgconfig
+"
+
+llvm_check_deps() {
+ has_version -b "sys-devel/clang:${LLVM_SLOT}"
+}
+
src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack
diff --git a/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild b/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild
index de119a49d803..5810c1e4375b 100644
--- a/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild
+++ b/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild
@@ -4,7 +4,8 @@
EAPI=8
CRATES=" "
-inherit cargo
+LLVM_MAX_SLOT=16
+inherit cargo llvm
DESCRIPTION="pkgcraft-based tools for Gentoo"
HOMEPAGE="https://pkgcraft.github.io/"
@@ -27,6 +28,16 @@ SLOT="0"
QA_FLAGS_IGNORED="usr/bin/pk"
+# Clang needed for bindgen
+BDEPEND="
+ <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1))
+ virtual/pkgconfig
+"
+
+llvm_check_deps() {
+ has_version -b "sys-devel/clang:${LLVM_SLOT}"
+}
+
src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack