git: f2e7659242b5 - main - x11-fonts/noto-sans-cherokee: Convert from upstream tarball to individual font files

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 16 May 2024 06:30:14 UTC
The branch main has been updated by sunpoet:

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

commit f2e7659242b59b8922350d3cb5c722bf4466293c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-16 06:17:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-16 06:21:59 +0000

    x11-fonts/noto-sans-cherokee: Convert from upstream tarball to individual font files
---
 x11-fonts/noto-sans-cherokee/Makefile | 28 +++++++++++++++++++++-------
 x11-fonts/noto-sans-cherokee/distinfo | 24 +++++++++++++++++++++---
 2 files changed, 42 insertions(+), 10 deletions(-)

diff --git a/x11-fonts/noto-sans-cherokee/Makefile b/x11-fonts/noto-sans-cherokee/Makefile
index 8d52e3d5149e..5dce217dc888 100644
--- a/x11-fonts/noto-sans-cherokee/Makefile
+++ b/x11-fonts/noto-sans-cherokee/Makefile
@@ -1,28 +1,42 @@
 PORTNAME=	noto
 PORTVERSION=	2.001
 CATEGORIES=	x11-fonts
-MASTER_SITES=	https://github.com/notofonts/cherokee/releases/download/NotoSansCherokee-v${PORTVERSION}/
+MASTER_SITES=	https://github.com/notofonts/notofonts.github.io/raw/NotoSansCherokee-v${PORTVERSION}/fonts/ \
+		https://github.com/notofonts/notofonts.github.io/raw/NotoSansCherokee-v${PORTVERSION}/fonts/NotoSansCherokee/hinted/ttf/:fonts
 PKGNAMESUFFIX=	-sans-cherokee
-DISTNAME=	NotoSansCherokee-v${PORTVERSION}
-DIST_SUBDIR=	Noto
+DISTFILES=	LICENSE \
+		${FONTS:S|$|:fonts|}
+DIST_SUBDIR=	Noto/SansCherokee/${PORTVERSION}
+EXTRACT_ONLY=	# empty
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Google Noto Sans Cherokee
 WWW=		https://fonts.google.com/noto \
 		https://notofonts.github.io/ \
-		https://github.com/notofonts/cherokee
+		https://github.com/notofonts/cherokee \
+		https://github.com/notofonts/notofonts.github.io/tree/main/fonts/NotoSansCherokee
 
 LICENSE=	OFL11
-#LICENSE_FILE=	${WRKSRC}/OFL.txt
+LICENSE_FILE=	${DISTDIR}/${DIST_SUBDIR}/LICENSE
 
-USES=		fonts zip
+USES=		fonts
 
 NO_ARCH=	yes
 NO_BUILD=	yes
 NO_WRKSUBDIR=	yes
 
+FONTS=		NotoSansCherokee-Black.ttf \
+		NotoSansCherokee-Bold.ttf \
+		NotoSansCherokee-ExtraBold.ttf \
+		NotoSansCherokee-ExtraLight.ttf \
+		NotoSansCherokee-Light.ttf \
+		NotoSansCherokee-Medium.ttf \
+		NotoSansCherokee-Regular.ttf \
+		NotoSansCherokee-SemiBold.ttf \
+		NotoSansCherokee-Thin.ttf
+
 do-install:
 	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	${INSTALL_DATA} ${WRKSRC}/NotoSansCherokee/hinted/ttf/*.ttf ${STAGEDIR}${FONTSDIR}
+	cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${FONTS} ${STAGEDIR}${FONTSDIR}
 
 .include <bsd.port.mk>
diff --git a/x11-fonts/noto-sans-cherokee/distinfo b/x11-fonts/noto-sans-cherokee/distinfo
index 5f3315326cb7..16b3b6831e54 100644
--- a/x11-fonts/noto-sans-cherokee/distinfo
+++ b/x11-fonts/noto-sans-cherokee/distinfo
@@ -1,3 +1,21 @@
-TIMESTAMP = 1710676069
-SHA256 (Noto/NotoSansCherokee-v2.001.zip) = 986b7fcf5c4cef9a7329aad8aea93d5c1b974e465eb7514f39517cace043a58d
-SIZE (Noto/NotoSansCherokee-v2.001.zip) = 3800204
+TIMESTAMP = 1715677666
+SHA256 (Noto/SansCherokee/2.001/LICENSE) = f2095b08bed08b23a6fe26112fcd679a2bee3f002eef077eb05d215ed1051bd8
+SIZE (Noto/SansCherokee/2.001/LICENSE) = 4374
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-Black.ttf) = 5f6b9486df900347094321d17de0c9f8438b86eeb3a680d22aa3173ce451fd2f
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-Black.ttf) = 106256
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-Bold.ttf) = 5d60c5479b6e9af2f9fa6ede6ebeba471dd8c391333bcca91c2f9d0903279c6c
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-Bold.ttf) = 108548
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-ExtraBold.ttf) = f815a84b26277b99729eae4fcd8ad8cc6131b643345efa2c50a4243e3f6fdbf8
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-ExtraBold.ttf) = 109032
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-ExtraLight.ttf) = 3308d1f241c0b04bc21cf3aabfe972ff46dc5509903693909d681c9ef5d42376
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-ExtraLight.ttf) = 101084
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-Light.ttf) = 4ecdcc52700e2b9058aafd609300fff4999d462023a23483e7fdbb4d531bd8c5
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-Light.ttf) = 102516
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-Medium.ttf) = 34a5dbfe18571748a5c7f91e939ab7d50ba16cdda5d1e712c3423ba0b72fe839
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-Medium.ttf) = 107224
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-Regular.ttf) = c052352137ae8d283840a0e2991a675d47859d8fdbae5726d373d4f0d97a8c87
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-Regular.ttf) = 94732
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-SemiBold.ttf) = 5d28f84a72aaf25b49ddd758595204e1db24d56ffd12588242b52bd68627d015
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-SemiBold.ttf) = 109268
+SHA256 (Noto/SansCherokee/2.001/NotoSansCherokee-Thin.ttf) = 14b80500a73c20db606b44d43c47d91104315d427f5b47a6ecf7985425a60680
+SIZE (Noto/SansCherokee/2.001/NotoSansCherokee-Thin.ttf) = 96928