git: a0d0b25f9135 - main - devel/llvm15: add dependency on zstd

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Fri, 09 Dec 2022 18:49:47 UTC
The branch main has been updated by brooks:

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

commit a0d0b25f9135d4dede36c6960c42c1deba401cfc
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2022-12-09 18:49:40 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2022-12-09 18:49:40 +0000

    devel/llvm15: add dependency on zstd
    
    While here, slightly improve portlint compatability of MASTER_SITE.
    
    PR:             268211
    Reported by:    amdmi3
---
 devel/llvm15/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/devel/llvm15/Makefile b/devel/llvm15/Makefile
index ffb27f22034f..3f5c726db458 100644
--- a/devel/llvm15/Makefile
+++ b/devel/llvm15/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	llvm
 DISTVERSION=	15.0.6
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	devel lang
 MASTER_SITES=	https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
-		https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}
+		https://${PRE_}releases.llvm.org/${LLVM_RELEASE}${RCDIR}/
 PKGNAMESUFFIX=	${LLVM_SUFFIX}
 DISTNAME=	llvm-project-${DISTVERSION}.src
 DISTFILES=	llvm-project-${DISTVERSION}.src${EXTRACT_SUFX}
@@ -20,11 +20,13 @@ LICENSE_NAME_LLVM2=	Apache License 2.0 with LLVM Exceptions
 LICENSE_PERMS_LLVM2=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 LICENSE:=	${LICENSE:NARM}
 
+LIB_DEPENDS=	libzstd.so:archivers/zstd
+
 LLVM_RELEASE=	${DISTVERSION:C/rc.*//}
 LLVM_MAJOR=	${LLVM_RELEASE:C/\.[0-9]\.[0-9]$//}
 LLVM_SUFFIX=	${LLVM_MAJOR}
 PRE_=		${DISTVERSION:C/.*rc.*/pre/:N*[0-9]*}
-RCDIR=		${DISTVERSION:S/${LLVM_RELEASE}//:C|(rc.*)|\1/|}
+RCDIR=		${DISTVERSION:S/${LLVM_RELEASE}//:C|(rc.*)|/\1|}
 
 LLVM_DIR=	llvm${LLVM_SUFFIX}
 LLVM_PREFIX=	${PREFIX}/${LLVM_DIR}