git: 7dd682d5ba1e - main - math/heyoka: Use USES=llvm

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 19 Dec 2022 08:47:00 UTC
The branch main has been updated by yuri:

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

commit 7dd682d5ba1e5fad5093e49b4b6859b8076d6176
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-19 08:45:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-19 08:46:58 +0000

    math/heyoka: Use USES=llvm
    
    Suggested by:   tcberner@
---
 math/heyoka/Makefile | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/math/heyoka/Makefile b/math/heyoka/Makefile
index a265a66c1a2b..015789762320 100644
--- a/math/heyoka/Makefile
+++ b/math/heyoka/Makefile
@@ -10,7 +10,6 @@ WWW=		https://bluescarni.github.io/heyoka/
 LICENSE=	MPL20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION}
 LIB_DEPENDS=	libboost_serialization.so:devel/boost-libs \
 		libfmt.so:devel/libfmt \
 		libgmp.so:math/gmp \
@@ -19,18 +18,15 @@ LIB_DEPENDS=	libboost_serialization.so:devel/boost-libs \
 		libtbb.so:devel/onetbb \
 		libsleef.so:math/sleef \
 		libspdlog.so:devel/spdlog
-RUN_DEPENDS=	llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION}
 TEST_DEPENDS=	xtensor>0:math/xtensor \
 		xtensor-blas>0:math/xtensor-blas
 
-USES=		cmake:testing compiler:c++17-lang
+USES=		cmake:testing compiler:c++17-lang llvm:min=14,build,run
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	bluescarni
 
-LLVM_VERSION=	14
-
 CMAKE_ON=		HEYOKA_WITH_MPPP HEYOKA_WITH_SLEEF
 CMAKE_ARGS=		-DFREEBSD_LLVM_VERSION=${LLVM_VERSION}
 CMAKE_TESTING_ON=	HEYOKA_BUILD_TESTS # 3 tests fail, see https://github.com/bluescarni/heyoka/issues/228, also #229 and #230