git: 43e5ce7d3f3c - main - x11-fonts/noto-sans-khmer: Convert from upstream tarball to individual font files

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

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

commit 43e5ce7d3f3c076c2293cffe6820fcf78c9ae5b7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-16 06:17:53 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-16 06:22:00 +0000

    x11-fonts/noto-sans-khmer: Convert from upstream tarball to individual font files
---
 x11-fonts/noto-sans-khmer/Makefile | 55 +++++++++++++++++++++++----
 x11-fonts/noto-sans-khmer/distinfo | 78 ++++++++++++++++++++++++++++++++++++--
 2 files changed, 123 insertions(+), 10 deletions(-)

diff --git a/x11-fonts/noto-sans-khmer/Makefile b/x11-fonts/noto-sans-khmer/Makefile
index 2aee15f45a9d..cb6b32b5b0b3 100644
--- a/x11-fonts/noto-sans-khmer/Makefile
+++ b/x11-fonts/noto-sans-khmer/Makefile
@@ -1,28 +1,69 @@
 PORTNAME=	noto
 PORTVERSION=	2.004
 CATEGORIES=	x11-fonts
-MASTER_SITES=	https://github.com/notofonts/khmer/releases/download/NotoSansKhmer-v${PORTVERSION}/
+MASTER_SITES=	https://github.com/notofonts/notofonts.github.io/raw/NotoSansKhmer-v${PORTVERSION}/fonts/ \
+		https://github.com/notofonts/notofonts.github.io/raw/NotoSansKhmer-v${PORTVERSION}/fonts/NotoSansKhmer/hinted/ttf/:fonts
 PKGNAMESUFFIX=	-sans-khmer
-DISTNAME=	NotoSansKhmer-v${PORTVERSION}
-DIST_SUBDIR=	Noto
+DISTFILES=	LICENSE \
+		${FONTS:S|$|:fonts|}
+DIST_SUBDIR=	Noto/SansKhmer/${PORTVERSION}
+EXTRACT_ONLY=	# empty
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Google Noto Sans Khmer
 WWW=		https://fonts.google.com/noto \
 		https://notofonts.github.io/ \
-		https://github.com/notofonts/khmer
+		https://github.com/notofonts/khmer \
+		https://github.com/notofonts/notofonts.github.io/tree/main/fonts/NotoSansKhmer
 
 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=		NotoSansKhmer-Black.ttf \
+		NotoSansKhmer-Bold.ttf \
+		NotoSansKhmer-Condensed.ttf \
+		NotoSansKhmer-CondensedBlack.ttf \
+		NotoSansKhmer-CondensedBold.ttf \
+		NotoSansKhmer-CondensedExtraBold.ttf \
+		NotoSansKhmer-CondensedExtraLight.ttf \
+		NotoSansKhmer-CondensedLight.ttf \
+		NotoSansKhmer-CondensedMedium.ttf \
+		NotoSansKhmer-CondensedSemiBold.ttf \
+		NotoSansKhmer-CondensedThin.ttf \
+		NotoSansKhmer-ExtraBold.ttf \
+		NotoSansKhmer-ExtraCondensed.ttf \
+		NotoSansKhmer-ExtraCondensedBlack.ttf \
+		NotoSansKhmer-ExtraCondensedBold.ttf \
+		NotoSansKhmer-ExtraCondensedExtraBold.ttf \
+		NotoSansKhmer-ExtraCondensedExtraLight.ttf \
+		NotoSansKhmer-ExtraCondensedLight.ttf \
+		NotoSansKhmer-ExtraCondensedMedium.ttf \
+		NotoSansKhmer-ExtraCondensedSemiBold.ttf \
+		NotoSansKhmer-ExtraCondensedThin.ttf \
+		NotoSansKhmer-ExtraLight.ttf \
+		NotoSansKhmer-Light.ttf \
+		NotoSansKhmer-Medium.ttf \
+		NotoSansKhmer-Regular.ttf \
+		NotoSansKhmer-SemiBold.ttf \
+		NotoSansKhmer-SemiCondensed.ttf \
+		NotoSansKhmer-SemiCondensedBlack.ttf \
+		NotoSansKhmer-SemiCondensedBold.ttf \
+		NotoSansKhmer-SemiCondensedExtraBold.ttf \
+		NotoSansKhmer-SemiCondensedExtraLight.ttf \
+		NotoSansKhmer-SemiCondensedLight.ttf \
+		NotoSansKhmer-SemiCondensedMedium.ttf \
+		NotoSansKhmer-SemiCondensedSemiBold.ttf \
+		NotoSansKhmer-SemiCondensedThin.ttf \
+		NotoSansKhmer-Thin.ttf
+
 do-install:
 	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	${INSTALL_DATA} ${WRKSRC}/NotoSansKhmer/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-khmer/distinfo b/x11-fonts/noto-sans-khmer/distinfo
index fff71ed5301e..346e827db055 100644
--- a/x11-fonts/noto-sans-khmer/distinfo
+++ b/x11-fonts/noto-sans-khmer/distinfo
@@ -1,3 +1,75 @@
-TIMESTAMP = 1710676079
-SHA256 (Noto/NotoSansKhmer-v2.004.zip) = 19382ca97d62febea1c735ebee35a5aa4f03beca9b6ea6f6d86b7a7a0025a688
-SIZE (Noto/NotoSansKhmer-v2.004.zip) = 8949267
+TIMESTAMP = 1715677676
+SHA256 (Noto/SansKhmer/2.004/LICENSE) = f2095b08bed08b23a6fe26112fcd679a2bee3f002eef077eb05d215ed1051bd8
+SIZE (Noto/SansKhmer/2.004/LICENSE) = 4374
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-Black.ttf) = ff591b8bd1b6a339943a69e788ee3c4f80eeaa3c272fda6ba43e5457a60f0188
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-Black.ttf) = 119792
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-Bold.ttf) = 17e5bb518c0ea3d998d42bf920d0771a79dc6f3c12c5d9f3c122c7e6c8ce3076
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-Bold.ttf) = 113740
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-Condensed.ttf) = b4407f27f63b487188a1f47a16146d42db15c196b39183e95d13ed3f426af20a
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-Condensed.ttf) = 109288
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedBlack.ttf) = ccf176b5a1ba42c9c58739b990455ab68754bbb1a92545664e864d257fa793c5
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedBlack.ttf) = 119088
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedBold.ttf) = 6254ea13ce96afd27896aa1441ceb350f7911a3568b7582a92b2755d447b1025
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedBold.ttf) = 112448
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedExtraBold.ttf) = 2c5849392abe2a4819428021e6d29993ea87c5ddc81780bf56dbd768a6bb9bef
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedExtraBold.ttf) = 114700
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedExtraLight.ttf) = 2234ba56d06174264c095127428264db6e9a2e0736685bd56fd30aa511cb00f6
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedExtraLight.ttf) = 112772
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedLight.ttf) = e5adbe4f3fab991f6b044f063f2b89fdd9b817b4d17f4568016c5d1fd030c06b
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedLight.ttf) = 110552
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedMedium.ttf) = cb5e0ce9b48ed1879505ec74cfcc6e1cd0ecec429bbafbbc1817844a87c39ac2
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedMedium.ttf) = 111436
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedSemiBold.ttf) = 6454e2090ae74b74760cbda4a562682660f74d8b00f41d465238c83992db25b5
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedSemiBold.ttf) = 112648
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedThin.ttf) = 504f282d170a0be9ea2981d9dbd5cb4a805c5bf0a0356dd1839a13368a7f24af
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-CondensedThin.ttf) = 110860
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraBold.ttf) = 2a484d010e60e7a1366b8f3ba5c02aee0b7c032b146a0a98a6c824fc6935cfa6
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraBold.ttf) = 115780
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensed.ttf) = 2a26ba56fdef157d3f5e79f02c8b525b41f338d3d2c979f696310314582b81a6
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensed.ttf) = 109288
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedBlack.ttf) = 3e600a9e01abdcce41d90d69877495efc22806f19500729cf2594d6117d79fe7
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedBlack.ttf) = 118728
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedBold.ttf) = 3498bc1e2a93b263b222ff93fbd6521110b9b16020f2ea366c2de9f8a733027a
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedBold.ttf) = 112300
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedExtraBold.ttf) = bbc7cf72f877073e569975a2ca440cd1a120b08b415c9850f6634e38092950fe
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedExtraBold.ttf) = 114376
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedExtraLight.ttf) = ad340428e8d10a3c2caf3816b152dc277ff35b99c1369e9b455af535c689f22d
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedExtraLight.ttf) = 112796
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedLight.ttf) = efd59bba19100d65cda462ffce8ab16918418fe6fc71f498a93634869c8b5b98
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedLight.ttf) = 110188
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedMedium.ttf) = b2ab0da876e8a6da14f765583f29c39e5b1fc4cded0ab0ede0e1304be2d5a2ca
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedMedium.ttf) = 110560
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedSemiBold.ttf) = 98577fe99827aa69e8cfb163f57f515ef53bc2173a8fe0e3186fc7094b94dc97
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedSemiBold.ttf) = 112608
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedThin.ttf) = c2dfff1c0296964891a55ae9b206ae383c06592e9cbcf486f86e751514bb33d5
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraCondensedThin.ttf) = 109228
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraLight.ttf) = e92d39d877aa327564dbd88fb4725afbf34484a587da1e880153f8e145a20df4
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-ExtraLight.ttf) = 111964
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-Light.ttf) = fb423de9e6ff668a50d9da044963cb4be2884d9d8df9789770c07e751432d711
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-Light.ttf) = 110600
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-Medium.ttf) = 8546350046c0391088f3d9c94a688befc14e27c1500b1d96fbe55d3e665affbe
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-Medium.ttf) = 114172
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-Regular.ttf) = e66675f2082788f0511a714bef5a1748928294b38c8e286a96ea73a864b5e605
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-Regular.ttf) = 114576
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiBold.ttf) = 9951be2e5e1f0439f27105a18141eab409532d6037e3431a724ade666e639cb0
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiBold.ttf) = 112796
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensed.ttf) = 94fb1b711c3691ec00efc43403cf2710c1fbf7f1533b59891da8a64339308857
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensed.ttf) = 112572
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedBlack.ttf) = 149565ef41acb7ea5f5d4b51f53a1a8da8134860dedcb953c54ea296256e8e97
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedBlack.ttf) = 118256
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedBold.ttf) = d50fec7e2360ffb33cd609a9d1d54c93de60435dffca6e843f46440e45ebae8c
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedBold.ttf) = 112540
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedExtraBold.ttf) = a4ba7d2ac6f442e241f5f314c9b129ef9aa0dc77a3baf14ed49fade8a1a78a10
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedExtraBold.ttf) = 115060
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedExtraLight.ttf) = f1ffd40403d53787b097c798d6e788133d4e4e6315d53cd447c68d209e277e7b
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedExtraLight.ttf) = 112884
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedLight.ttf) = d2685f8064a1473f6bc1758d13ece281cf24318e101760eb8822af543b3e5d62
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedLight.ttf) = 111048
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedMedium.ttf) = 5769dea1f80213bcba05d9568aa7a0b45f5d5fac0d34198c15a42cb36770b9e1
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedMedium.ttf) = 111084
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedSemiBold.ttf) = 44f2d5d7432a1841da81c771f163ecb46f9cbe7e48e999933d417af351aedaba
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedSemiBold.ttf) = 112700
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedThin.ttf) = 50c79f3f05563cc9a18f5169d1304c9bd8207bd332528d264cd66cc02235fea1
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-SemiCondensedThin.ttf) = 110512
+SHA256 (Noto/SansKhmer/2.004/NotoSansKhmer-Thin.ttf) = c6133bdc71664cdf06b05faa0c6584242662057030e8f23692f6e425895e1040
+SIZE (Noto/SansKhmer/2.004/NotoSansKhmer-Thin.ttf) = 110220