devel/llvm15: add dependency on zstd

While here, slightly improve portlint compatability of MASTER_SITE.

PR:		268211
Reported by:	amdmi3
This commit is contained in:
Brooks Davis 2022-12-09 18:49:40 +00:00
parent 830bbdd84a
commit a0d0b25f91

View file

@ -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}