git: f4b51d984ae8 - main - devel/rust-bindgen: convert to USES=llvm

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 24 Dec 2022 16:37:15 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f4b51d984ae8d9af3e0a5cf7251fc81b9a4568d4

commit f4b51d984ae8d9af3e0a5cf7251fc81b9a4568d4
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-12-24 16:06:01 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-12-24 16:35:18 +0000

    devel/rust-bindgen: convert to USES=llvm
---
 devel/rust-bindgen/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/devel/rust-bindgen/Makefile b/devel/rust-bindgen/Makefile
index 86421fa48427..0f3b05825891 100644
--- a/devel/rust-bindgen/Makefile
+++ b/devel/rust-bindgen/Makefile
@@ -14,9 +14,7 @@ WWW=		https://github.com/rust-lang/rust-bindgen
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT}
-
-USES=		cargo
+USES=		cargo llvm:run
 PLIST_FILES=	bin/${PORTNAME}
 
 CARGO_CRATES=	aho-corasick-0.7.15 \
@@ -73,7 +71,7 @@ CARGO_CRATES=	aho-corasick-0.7.15 \
 		winapi-x86_64-pc-windows-gnu-0.4.0
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,"llvm-config,&${LLVM_DEFAULT},' \
+	@${REINPLACE_CMD} -e 's,"llvm-config,&${LLVM_VERSION},' \
 		${WRKSRC}/cargo-crates/clang-sys-*/build/common.rs \
 		${WRKSRC}/cargo-crates/clang-sys-*/src/support.rs