public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pkgcraft-tools/
Date: Sat, 10 Jun 2023 17:27:00 +0000 (UTC)	[thread overview]
Message-ID: <1686418011.3014d717480c56f41fcfc02cc467642bfb2b9985.sam@gentoo> (raw)

commit:     3014d717480c56f41fcfc02cc467642bfb2b9985
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 10 17:26:46 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 10 17:26:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3014d717

sys-apps/pkgcraft-tools: add clang dep for bindgen

Closes: https://bugs.gentoo.org/908229
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.7.ebuild | 13 ++++++++++++-
 sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild  | 13 ++++++++++++-
 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


             reply	other threads:[~2023-06-10 17:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-10 17:27 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-14 20:07 [gentoo-commits] repo/gentoo:master commit in: sys-apps/pkgcraft-tools/ Sam James
2024-06-23  1:13 Sam James
2024-03-02  1:29 Sam James
2024-02-16  1:26 Sam James
2024-02-02  4:33 Sam James
2023-11-12  4:24 Sam James
2023-09-30  0:44 Sam James
2023-09-29  9:12 Sam James
2023-09-25  4:05 Sam James
2023-09-06 19:43 Sam James
2023-06-23 20:28 Sam James
2023-06-23 20:28 Sam James
2023-06-17 22:47 Sam James
2023-06-11 15:46 Sam James
2023-06-10 17:51 Sam James
2023-06-10 13:22 Sam James
2023-06-10 13:18 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1686418011.3014d717480c56f41fcfc02cc467642bfb2b9985.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox