git: 0718a8c5afa0 - main - x11-fonts/noto-sans-arabic: Convert from upstream tarball to individual font files

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

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

commit 0718a8c5afa0ac7658f1f9a9ff87bbe9e1c9b0f4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-16 06:17:47 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-16 06:21:58 +0000

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

diff --git a/x11-fonts/noto-sans-arabic/Makefile b/x11-fonts/noto-sans-arabic/Makefile
index 71a2b04b3e6e..948bdfd01709 100644
--- a/x11-fonts/noto-sans-arabic/Makefile
+++ b/x11-fonts/noto-sans-arabic/Makefile
@@ -1,28 +1,71 @@
 PORTNAME=	noto
 PORTVERSION=	2.012
 CATEGORIES=	x11-fonts
-MASTER_SITES=	https://github.com/notofonts/arabic/releases/download/NotoSansArabic-v${PORTVERSION}/
+#MASTER_SITES=	https://github.com/notofonts/notofonts.github.io/raw/NotoSansArabic-v${PORTVERSION}/fonts/ \
+#		https://github.com/notofonts/notofonts.github.io/raw/NotoSansArabic-v${PORTVERSION}/fonts/NotoSansArabic/hinted/ttf/:fonts
+MASTER_SITES=	https://github.com/notofonts/notofonts.github.io/raw/noto-monthly-release-23.12.1/fonts/ \
+		https://github.com/notofonts/notofonts.github.io/raw/noto-monthly-release-23.12.1/fonts/NotoSansArabic/hinted/ttf/:fonts
 PKGNAMESUFFIX=	-sans-arabic
-DISTNAME=	NotoSansArabic-v${PORTVERSION}
-DIST_SUBDIR=	Noto
+DISTFILES=	LICENSE \
+		${FONTS:S|$|:fonts|}
+DIST_SUBDIR=	Noto/SansArabic/${PORTVERSION}
+EXTRACT_ONLY=	# empty
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Google Noto Sans Arabic
 WWW=		https://fonts.google.com/noto \
 		https://notofonts.github.io/ \
-		https://github.com/notofonts/arabic
+		https://github.com/notofonts/arabic \
+		https://github.com/notofonts/notofonts.github.io/tree/main/fonts/NotoSansArabic
 
 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=		NotoSansArabic-Black.ttf \
+		NotoSansArabic-Bold.ttf \
+		NotoSansArabic-Condensed.ttf \
+		NotoSansArabic-CondensedBlack.ttf \
+		NotoSansArabic-CondensedBold.ttf \
+		NotoSansArabic-CondensedExtraBold.ttf \
+		NotoSansArabic-CondensedExtraLight.ttf \
+		NotoSansArabic-CondensedLight.ttf \
+		NotoSansArabic-CondensedMedium.ttf \
+		NotoSansArabic-CondensedSemiBold.ttf \
+		NotoSansArabic-CondensedThin.ttf \
+		NotoSansArabic-ExtraBold.ttf \
+		NotoSansArabic-ExtraCondensed.ttf \
+		NotoSansArabic-ExtraCondensedBlack.ttf \
+		NotoSansArabic-ExtraCondensedBold.ttf \
+		NotoSansArabic-ExtraCondensedExtraBold.ttf \
+		NotoSansArabic-ExtraCondensedExtraLight.ttf \
+		NotoSansArabic-ExtraCondensedLight.ttf \
+		NotoSansArabic-ExtraCondensedMedium.ttf \
+		NotoSansArabic-ExtraCondensedSemiBold.ttf \
+		NotoSansArabic-ExtraCondensedThin.ttf \
+		NotoSansArabic-ExtraLight.ttf \
+		NotoSansArabic-Light.ttf \
+		NotoSansArabic-Medium.ttf \
+		NotoSansArabic-Regular.ttf \
+		NotoSansArabic-SemiBold.ttf \
+		NotoSansArabic-SemiCondensed.ttf \
+		NotoSansArabic-SemiCondensedBlack.ttf \
+		NotoSansArabic-SemiCondensedBold.ttf \
+		NotoSansArabic-SemiCondensedExtraBold.ttf \
+		NotoSansArabic-SemiCondensedExtraLight.ttf \
+		NotoSansArabic-SemiCondensedLight.ttf \
+		NotoSansArabic-SemiCondensedMedium.ttf \
+		NotoSansArabic-SemiCondensedSemiBold.ttf \
+		NotoSansArabic-SemiCondensedThin.ttf \
+		NotoSansArabic-Thin.ttf
+
 do-install:
 	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	${INSTALL_DATA} ${WRKSRC}/NotoSansArabic/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-arabic/distinfo b/x11-fonts/noto-sans-arabic/distinfo
index 43f2777c55af..b5f898b8ba72 100644
--- a/x11-fonts/noto-sans-arabic/distinfo
+++ b/x11-fonts/noto-sans-arabic/distinfo
@@ -1,3 +1,75 @@
-TIMESTAMP = 1710676059
-SHA256 (Noto/NotoSansArabic-v2.012.zip) = 65bceb5106ca17e8e0b4660bacec4d362afd56e0251e71fedf83f76dfe9f4abe
-SIZE (Noto/NotoSansArabic-v2.012.zip) = 20494293
+TIMESTAMP = 1715677658
+SHA256 (Noto/SansArabic/2.012/LICENSE) = f2095b08bed08b23a6fe26112fcd679a2bee3f002eef077eb05d215ed1051bd8
+SIZE (Noto/SansArabic/2.012/LICENSE) = 4374
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-Black.ttf) = e24651a6be9c3fbe7ec133a2ef4c5b290754b831c30d0308c18452eb7b7bbb09
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-Black.ttf) = 282488
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-Bold.ttf) = cabdc065d2d3d30562cf1d3e753dc7062bc420beb14942e0c28a211020e2b8d1
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-Bold.ttf) = 278736
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-Condensed.ttf) = 3815bc850ccbff93ab02feafb8e8916d098391ef3b4fb3249bff21a45a559931
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-Condensed.ttf) = 252096
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedBlack.ttf) = 72765643acde01e6d02e4f21cd86c341a03235040658851a41b32ced6e82d509
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedBlack.ttf) = 287100
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedBold.ttf) = 8d211045bd2ebd50fbcd1672c0807c31155384f91580aa94153a0ab030d4e660
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedBold.ttf) = 275200
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedExtraBold.ttf) = 1ef994cbc82c6142a2ac71a8ba9bfd4a8e2e598a19398174b7a81002aedfb4df
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedExtraBold.ttf) = 279576
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedExtraLight.ttf) = 4bff89dec2ad848802856a76a5354e54f12236d75e353b55839d2a8260fbb058
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedExtraLight.ttf) = 233816
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedLight.ttf) = c9cf8356943dec2f73630bbd71c2ed8645d894f3f75315e3ae400a6b248221e9
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedLight.ttf) = 235892
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedMedium.ttf) = 5fe5c045652b2be049dc474acf800da386915a5cfd5fefc8e88ab2d226d5c276
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedMedium.ttf) = 268404
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedSemiBold.ttf) = 97810bf0e73f9a994e95b356ce6a702969fb35c3e6953ac8b65993810149f151
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedSemiBold.ttf) = 267492
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-CondensedThin.ttf) = ad4269e0de79067cc403cc2ce7a4866408bad1cfca0a52be17481318b36805c1
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-CondensedThin.ttf) = 224900
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraBold.ttf) = abc2bcc0399b9e99423cf03be60541527bfb48dacb4475628e8459e57b9afa1e
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraBold.ttf) = 283600
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensed.ttf) = 7b9c48785087264d847fc8bc95ab4aa55fe4d429dda624202d4efddb0f79767b
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensed.ttf) = 241392
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedBlack.ttf) = 7f6323db47e41110e6920724c09f412b3f8c1d072d16b6058c9db607f63396ed
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedBlack.ttf) = 285196
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedBold.ttf) = 4541aaa7dba6b36f02205ed81f4040ba43c87f4f4481a8bb1b8fa6bf01a6515e
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedBold.ttf) = 265736
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedExtraBold.ttf) = 0d6082955fabe4ea58151309af358ad4495dc8da87f105686ab1ba1e15706179
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedExtraBold.ttf) = 282420
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedExtraLight.ttf) = 7da672ff2fa476e551834ca974beecef6d7ff607e9aa82297ac1c5a28eaefe3b
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedExtraLight.ttf) = 235316
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedLight.ttf) = 0695ee714b7b88b300c5afc0ac2f673259eb336eb1e5c38dbbb96301bd2ca967
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedLight.ttf) = 240972
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedMedium.ttf) = 80a5389697dd721327a2e13ac4dcc27dbaea6a07738b64ba8020251ec17052eb
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedMedium.ttf) = 255288
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedSemiBold.ttf) = adc79493909637b9bebb82c111ec4772e19346ed26c5fb330110860eeaa0ea8d
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedSemiBold.ttf) = 262948
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedThin.ttf) = 7d9d1597008ee2ce2f40c880d950e27b9f34684e778ac255b6b55b1872fd10de
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraCondensedThin.ttf) = 225796
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-ExtraLight.ttf) = bcfa115b9f058b21ecf7cec6804c60453403fe8261f870b9cfb124df85e24473
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-ExtraLight.ttf) = 229936
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-Light.ttf) = e4f6c577de31334195e555decce74b116a912984cf7ba9e3210a79b5048edec2
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-Light.ttf) = 237360
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-Medium.ttf) = 2730badce9d162c8203b28591893a1bc8f126454c5b16ab16a2020c2aece4f40
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-Medium.ttf) = 275008
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-Regular.ttf) = c270782ee478c685f95509e724125729e1284c82ebfbe414cc67926f29449e1d
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-Regular.ttf) = 247112
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiBold.ttf) = 367c31bdfd760f63febd35502a8458de34abfc4dd6e9b273af11fe170efb64ad
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiBold.ttf) = 265656
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensed.ttf) = 1166f3108a4633ce265a3b0ca1984ffe3d6ad5fee7ec513bd1a9ee0f1c23542f
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensed.ttf) = 257728
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedBlack.ttf) = ace818ce38229c675e68837c94e02e2c01fdbc4dc02334bd198869e8d6cc0114
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedBlack.ttf) = 289300
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedBold.ttf) = 4d65cd5663cea16dd58c7cf9a3d17b0dfe0bc46cbb8d3aee11f018286cf6447a
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedBold.ttf) = 272392
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedExtraBold.ttf) = d698ac9e946a0fce760fc0bc150645e4147a4de25e511afd6498387b62dd6f7d
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedExtraBold.ttf) = 282984
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedExtraLight.ttf) = 4c1b51bfca3552d7abed3eef31e15e1855718be7d7c29773276d49a2ac54e673
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedExtraLight.ttf) = 235000
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedLight.ttf) = 3dff99cd8c72d60f6b2afc93263df468585b41f127433df905103851be963fe2
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedLight.ttf) = 229464
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedMedium.ttf) = 5db7f3f7918e6d9240015a059886c25cf8b17f388ccd34d5467685eaf09c2dbb
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedMedium.ttf) = 266348
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedSemiBold.ttf) = adc7d8427b542bd3c590860d2bae4fa1d424d0389d858a4812a9d58b30e47c3d
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedSemiBold.ttf) = 268580
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedThin.ttf) = 25a388b101c6ed4fe6226fa7f47fc810aeaddf2ce9d12f40c385a6c836a1cc0b
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-SemiCondensedThin.ttf) = 224900
+SHA256 (Noto/SansArabic/2.012/NotoSansArabic-Thin.ttf) = f81073864e1237cbc73f646bb79c0ccf85d13130cea66e8bbc0f58e45abb7ccf
+SIZE (Noto/SansArabic/2.012/NotoSansArabic-Thin.ttf) = 227704