git: 4491ea0aa2e1 - main - shells/yash: Add mirror and use framework helper

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 10 Apr 2023 08:35:21 UTC
The branch main has been updated by diizzy:

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

commit 4491ea0aa2e175148003772e1d7c916f7d6cd567
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-04-10 08:33:55 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-04-10 08:33:58 +0000

    shells/yash: Add mirror and use framework helper
    
    Add GitHub mirror as backup
    Use USE_CSTD helper instead of CFLAGS variable
    
    Reference:
    https://yash.osdn.jp/index.html.en
    
    PR:             270724
    Reviewed by:    naddy (maintainer)
---
 shells/yash/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/shells/yash/Makefile b/shells/yash/Makefile
index 5e53f1140a45..89ec40537e5c 100644
--- a/shells/yash/Makefile
+++ b/shells/yash/Makefile
@@ -1,7 +1,8 @@
 PORTNAME=	yash
 DISTVERSION=	2.54
 CATEGORIES=	shells
-MASTER_SITES=	OSDN/yash
+MASTER_SITES=	OSDN/yash \
+		https://github.com/magicant/${PORTNAME}/releases/download/${DISTVERSION}/
 
 MAINTAINER=	naddy@FreeBSD.org
 COMMENT=	POSIX-compliant command line shell
@@ -11,10 +12,10 @@ LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		tar:xz
+USE_CSTD=	c99
 
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix=${PREFIX} --mandir=${MANPREFIX}/man
-CPPFLAGS+=	-std=c99
 
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes