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

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

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

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

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

diff --git a/x11-fonts/noto-sans-cham/Makefile b/x11-fonts/noto-sans-cham/Makefile
index 0012b50a60d6..9f1305620de8 100644
--- a/x11-fonts/noto-sans-cham/Makefile
+++ b/x11-fonts/noto-sans-cham/Makefile
@@ -1,28 +1,42 @@
 PORTNAME=	noto
 PORTVERSION=	2.004
 CATEGORIES=	x11-fonts
-MASTER_SITES=	https://github.com/notofonts/cham/releases/download/NotoSansCham-v${PORTVERSION}/
+MASTER_SITES=	https://github.com/notofonts/notofonts.github.io/raw/NotoSansCham-v${PORTVERSION}/fonts/ \
+		https://github.com/notofonts/notofonts.github.io/raw/NotoSansCham-v${PORTVERSION}/fonts/NotoSansCham/hinted/ttf/:fonts
 PKGNAMESUFFIX=	-sans-cham
-DISTNAME=	NotoSansCham-v${PORTVERSION}
-DIST_SUBDIR=	Noto
+DISTFILES=	LICENSE \
+		${FONTS:S|$|:fonts|}
+DIST_SUBDIR=	Noto/SansCham/${PORTVERSION}
+EXTRACT_ONLY=	# empty
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Google Noto Sans Cham
 WWW=		https://fonts.google.com/noto \
 		https://notofonts.github.io/ \
-		https://github.com/notofonts/cham
+		https://github.com/notofonts/cham \
+		https://github.com/notofonts/notofonts.github.io/tree/main/fonts/NotoSansCham
 
 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=		NotoSansCham-Black.ttf \
+		NotoSansCham-Bold.ttf \
+		NotoSansCham-ExtraBold.ttf \
+		NotoSansCham-ExtraLight.ttf \
+		NotoSansCham-Light.ttf \
+		NotoSansCham-Medium.ttf \
+		NotoSansCham-Regular.ttf \
+		NotoSansCham-SemiBold.ttf \
+		NotoSansCham-Thin.ttf
+
 do-install:
 	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	${INSTALL_DATA} ${WRKSRC}/NotoSansCham/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-cham/distinfo b/x11-fonts/noto-sans-cham/distinfo
index 9b493d60befb..2d284f867376 100644
--- a/x11-fonts/noto-sans-cham/distinfo
+++ b/x11-fonts/noto-sans-cham/distinfo
@@ -1,3 +1,21 @@
-TIMESTAMP = 1710676067
-SHA256 (Noto/NotoSansCham-v2.004.zip) = 2808a208c0c242e8e3de2bfb7ee4b8329d401a088b1af63d1776b93ed4d112fd
-SIZE (Noto/NotoSansCham-v2.004.zip) = 1835021
+TIMESTAMP = 1715677664
+SHA256 (Noto/SansCham/2.004/LICENSE) = f2095b08bed08b23a6fe26112fcd679a2bee3f002eef077eb05d215ed1051bd8
+SIZE (Noto/SansCham/2.004/LICENSE) = 4374
+SHA256 (Noto/SansCham/2.004/NotoSansCham-Black.ttf) = e2716620a8b443547a688234fb96ec61e8a2da032a88afb63f486dc492eb63ab
+SIZE (Noto/SansCham/2.004/NotoSansCham-Black.ttf) = 32236
+SHA256 (Noto/SansCham/2.004/NotoSansCham-Bold.ttf) = 2e50c14a00c495db600f5bdc7af49e4f57a3277fc6d767c378bf24bf28ae4a5b
+SIZE (Noto/SansCham/2.004/NotoSansCham-Bold.ttf) = 32172
+SHA256 (Noto/SansCham/2.004/NotoSansCham-ExtraBold.ttf) = 79312beff869304ed884f5014b3ab38e6c3187c02a1ff26ab7886ae55733dfef
+SIZE (Noto/SansCham/2.004/NotoSansCham-ExtraBold.ttf) = 32312
+SHA256 (Noto/SansCham/2.004/NotoSansCham-ExtraLight.ttf) = 08a8ea4a417426f2f6260bdad0d32f47ef528fe78ccd8d7ee8592523d7543b90
+SIZE (Noto/SansCham/2.004/NotoSansCham-ExtraLight.ttf) = 32080
+SHA256 (Noto/SansCham/2.004/NotoSansCham-Light.ttf) = c13750f3c5ee2614fa2276856ace4132346fde41caf5172c76c5d5f667ea4b81
+SIZE (Noto/SansCham/2.004/NotoSansCham-Light.ttf) = 31876
+SHA256 (Noto/SansCham/2.004/NotoSansCham-Medium.ttf) = c98f0b9aa0e51e1ac8c702c756310118ba6b1b9209d08ce7c402039307c0a6c2
+SIZE (Noto/SansCham/2.004/NotoSansCham-Medium.ttf) = 32176
+SHA256 (Noto/SansCham/2.004/NotoSansCham-Regular.ttf) = 622e423b639ee7091d7e7c41095161ab916ca2ab198543e27505d4c2fd3b815b
+SIZE (Noto/SansCham/2.004/NotoSansCham-Regular.ttf) = 32012
+SHA256 (Noto/SansCham/2.004/NotoSansCham-SemiBold.ttf) = b9f5cd4ec7825b1fd0f0a30dbd8ac2755001248362fcfa71048764e03cd3143b
+SIZE (Noto/SansCham/2.004/NotoSansCham-SemiBold.ttf) = 32256
+SHA256 (Noto/SansCham/2.004/NotoSansCham-Thin.ttf) = 72bab0fb27d1a7ffd66679d14933af5531022fa173d60a89b2c9a2e71d133732
+SIZE (Noto/SansCham/2.004/NotoSansCham-Thin.ttf) = 31984