git: 65c4c67f4d1d - main - security/krb5-devel: Don't adjust default package name

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 13 Feb 2024 19:04:52 UTC
The branch main has been updated by cy:

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

commit 65c4c67f4d1d5d2fc4bb2b2312142ec7925d671f
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-02-13 19:04:03 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-02-13 19:04:03 +0000

    security/krb5-devel: Don't adjust default package name
    
    Avoid changing the default package name when default flavor is built.
---
 security/krb5-devel/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/security/krb5-devel/Makefile b/security/krb5-devel/Makefile
index c5183994deff..2ee1b9c5b3ba 100644
--- a/security/krb5-devel/Makefile
+++ b/security/krb5-devel/Makefile
@@ -2,8 +2,12 @@ PORTNAME=		krb5
 PORTVERSION=		1.22.${MIT_COMMIT_DATE}
 CATEGORIES=		security
 .if !defined(MASTERDIR)
-PKGNAMESUFFIX=		-${FLAVOR}-devel
+PKGNAME_X=		-${FLAVOR:S/default//}-devel
+.else
+PKGNAME_X=		-${FLAVOR:S/default//}
 .endif
+PKGNAMESUFFIX=		${PKGNAME_X:S/--/-/:C/-$//}
+
 HASH=			f5ad07bd3
 MIT_COMMIT_DATE=	2024.01.24