git: 066e69f55554 - main - devel/llvm14: Update to 14.0.2

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 21:07:33 UTC
The branch main has been updated by brooks:

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

commit 066e69f55554f1675d0f5c5227e96292466bc0d6
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2022-04-27 21:07:20 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2022-04-27 21:07:20 +0000

    devel/llvm14: Update to 14.0.2
    
    A list of included commits can be found at:
    https://discourse.llvm.org/t/llvm-14-0-2-release/62065
    
    Work around an upstream issue where, due to the new release process,
    the version bump from 14.0.1 to 14.0.2 was forgotten.
---
 devel/llvm14/Makefile | 7 ++++++-
 devel/llvm14/distinfo | 6 +++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/devel/llvm14/Makefile b/devel/llvm14/Makefile
index eea0586ef85f..d0122d6d7d6c 100644
--- a/devel/llvm14/Makefile
+++ b/devel/llvm14/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	llvm
-DISTVERSION=	14.0.1
+DISTVERSION=	14.0.2
 PORTREVISION=	0
 CATEGORIES=	devel lang
 MASTER_SITES=	https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
@@ -66,6 +66,11 @@ CMAKE_ARGS=	-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON
 CMAKE_ARGS+=	-DLLVM_ENABLE_RTTI=ON
 CMAKE_ARGS+=	-DLLVM_DEFAULT_TARGET_TRIPLE=${CONFIGURE_TARGET}
 CMAKE_ARGS+=	-DLLVM_HOST_TRIPLE=${CONFIGURE_TARGET}
+.if ${DISTVERSION} == 14.0.2
+CMAKE_ARGS+=	-DLLVM_VERSION_PATCH=2
+.else
+.error update the LLVM_VERSION_PATCH hack.
+.endif
 # Following commit https://github.com/kitware/cmake/commit/956054
 # we need to either change the whole man-shuffle below, or simply
 # redefine CMAKE_INSTALL_MANDIR
diff --git a/devel/llvm14/distinfo b/devel/llvm14/distinfo
index 2c0096763302..3c527557729c 100644
--- a/devel/llvm14/distinfo
+++ b/devel/llvm14/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1649869471
-SHA256 (llvm-project-14.0.1.src.tar.xz) = 1a3c2e57916c5a70153aaf0a0e6f1230d6368b9e0f4d04dcb9e039a31b1cd4e6
-SIZE (llvm-project-14.0.1.src.tar.xz) = 105594944
+TIMESTAMP = 1651080489
+SHA256 (llvm-project-14.0.2.src.tar.xz) = dd559ea1b02cb241def100e05b1e406521da50af87aca0f2ae309abd916177d5
+SIZE (llvm-project-14.0.2.src.tar.xz) = 105590604