git: f815d3802109 - main - devel/gnome-builder: prepare for LLVM_DEFAULT=15

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Sat, 17 Dec 2022 23:13:18 UTC
The branch main has been updated by tcberner:

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

commit f815d3802109d816bef09333a201e0b88dfcd0d2
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-12-17 20:59:51 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-12-17 23:10:23 +0000

    devel/gnome-builder: prepare for LLVM_DEFAULT=15
    
    Previous failure:
            [...]
            llvm-config found: NO need ['>= 3.5']
            Run-time dependency LLVM found: NO (tried config-tool)
            [...]
    
    PR:             263456
---
 devel/gnome-builder/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/devel/gnome-builder/Makefile b/devel/gnome-builder/Makefile
index 75043675e9b5..64248c1ff77c 100644
--- a/devel/gnome-builder/Makefile
+++ b/devel/gnome-builder/Makefile
@@ -77,11 +77,10 @@ OPTIONS_DEFINE=		CLANG DOCS
 OPTIONS_DEFAULT=	CLANG
 
 # track the latest llvm/clang version, the config script picks the newest available
-LLVM_VER=		${LLVM_DEFAULT}
 CLANG_DESC=		Build the clang plugin
 CLANG_MESON_TRUE=	plugin_clang
-CLANG_BUILD_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER}
-CLANG_RUN_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER}
+CLANG_USES=		llvm:build,run
+CLANG_BINARY_ALIAS=	llvm-config=${LLVM_CONFIG}
 
 # 11.1 and older has issues with vala generated code.
 post-patch: