git: 2436ae9afc0e - main - x11-fonts/noto-serif-hk: Add noto-serif-hk 2.001

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 09:07:44 UTC
The branch main has been updated by sunpoet:

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

commit 2436ae9afc0e430679b13567eec8a78d42054eda
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 08:36:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:03:58 +0000

    x11-fonts/noto-serif-hk: Add noto-serif-hk 2.001
    
    Noto Sans CJK and Noto Serif CJK comprehensively cover Simplified Chinese,
    Traditional Chinese, Japanese, and Korean in a unified font family. This
    includes the full coverage of CJK Ideographs with variation support for 4
    regions, Kangxi radicals, Japanese Kana, Korean Hangul, and other CJK symbols
    and letters in the Basic Multilingual Plane of Unicode. It also provides limited
    coverage of CJK Ideographs in Plane 2 of Unicode as necessary to support
    standards from China and Japan.
    
    This port is the Serif set of Traditional Chinese Hong Kong fonts.
---
 x11-fonts/Makefile                |  1 +
 x11-fonts/noto-serif-hk/Makefile  | 46 +++++++++++++++++++++++++++++++++++++++
 x11-fonts/noto-serif-hk/distinfo  | 31 ++++++++++++++++++++++++++
 x11-fonts/noto-serif-hk/pkg-descr |  9 ++++++++
 x11-fonts/noto-serif-hk/pkg-plist | 14 ++++++++++++
 5 files changed, 101 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index 92cb92ab2318..3f09e0369e5a 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -194,6 +194,7 @@
     SUBDIR += noto-sans-sc
     SUBDIR += noto-sans-tc
     SUBDIR += noto-sc
+    SUBDIR += noto-serif-hk
     SUBDIR += noto-tc
     SUBDIR += nucleus
     SUBDIR += office-code-pro
diff --git a/x11-fonts/noto-serif-hk/Makefile b/x11-fonts/noto-serif-hk/Makefile
new file mode 100644
index 000000000000..ad393c144869
--- /dev/null
+++ b/x11-fonts/noto-serif-hk/Makefile
@@ -0,0 +1,46 @@
+PORTNAME=	noto
+PORTVERSION=	2.001
+CATEGORIES=	x11-fonts
+MASTER_SITES=	https://github.com/googlefonts/noto-cjk/raw/Serif${PORTVERSION}/ \
+		https://github.com/googlefonts/noto-cjk/raw/Serif${PORTVERSION}/Serif/OTF/TraditionalChineseHK/:cjk \
+		https://github.com/googlefonts/noto-cjk/raw/Serif${PORTVERSION}/Serif/SubsetOTF/HK/:subset
+PKGNAMESUFFIX=	-serif-hk
+DISTFILES=	LICENSE \
+		${CJK_FONTS:S|$|:cjk|} \
+		${SUBSET_FONTS:S|$|:subset|}
+DIST_SUBDIR=	Noto/CJK/${PORTVERSION}
+EXTRACT_ONLY=	# empty
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Google Noto Serif (Traditional Chinese Hong Kong)
+WWW=		https://www.google.com/get/noto/ \
+		https://github.com/googlefonts/noto-cjk
+
+LICENSE=	OFL11
+LICENSE_FILE=	${DISTDIR}/${DIST_SUBDIR}/LICENSE
+
+USES=		fonts
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+CJK_FONTS=	NotoSerifCJKhk-Black.otf \
+		NotoSerifCJKhk-Bold.otf \
+		NotoSerifCJKhk-ExtraLight.otf \
+		NotoSerifCJKhk-Light.otf \
+		NotoSerifCJKhk-Medium.otf \
+		NotoSerifCJKhk-Regular.otf \
+		NotoSerifCJKhk-SemiBold.otf
+SUBSET_FONTS=	NotoSerifHK-Black.otf \
+		NotoSerifHK-Bold.otf \
+		NotoSerifHK-ExtraLight.otf \
+		NotoSerifHK-Light.otf \
+		NotoSerifHK-Medium.otf \
+		NotoSerifHK-Regular.otf \
+		NotoSerifHK-SemiBold.otf
+
+do-install:
+	${MKDIR} ${STAGEDIR}${FONTSDIR}
+	cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${CJK_FONTS} ${MONO_FONTS} ${SUBSET_FONTS} ${STAGEDIR}${FONTSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/noto-serif-hk/distinfo b/x11-fonts/noto-serif-hk/distinfo
new file mode 100644
index 000000000000..d17a85596855
--- /dev/null
+++ b/x11-fonts/noto-serif-hk/distinfo
@@ -0,0 +1,31 @@
+TIMESTAMP = 1671956128
+SHA256 (Noto/CJK/2.001/LICENSE) = 6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2
+SIZE (Noto/CJK/2.001/LICENSE) = 4301
+SHA256 (Noto/CJK/2.001/NotoSerifCJKhk-Black.otf) = 4a045052a67d2e65e49c6cd6d3f0f03478faef904f3928298aaac1745af3de30
+SIZE (Noto/CJK/2.001/NotoSerifCJKhk-Black.otf) = 23995152
+SHA256 (Noto/CJK/2.001/NotoSerifCJKhk-Bold.otf) = a9a3f5592d2936926e929fe3c01ba1fddd17f286696e328365087e165181c0c5
+SIZE (Noto/CJK/2.001/NotoSerifCJKhk-Bold.otf) = 25406500
+SHA256 (Noto/CJK/2.001/NotoSerifCJKhk-ExtraLight.otf) = f8fbfaf9fd98238495659b86ca5349ddc1514677ee40bd30297f28f589f81b8b
+SIZE (Noto/CJK/2.001/NotoSerifCJKhk-ExtraLight.otf) = 21270776
+SHA256 (Noto/CJK/2.001/NotoSerifCJKhk-Light.otf) = 7f3df56729e18e9d5b003c5748f1249da85d17ed2fc04cf88c865dc5074d5ce0
+SIZE (Noto/CJK/2.001/NotoSerifCJKhk-Light.otf) = 24093320
+SHA256 (Noto/CJK/2.001/NotoSerifCJKhk-Medium.otf) = 42dff3d4fc208694686dcb0e5c7fbe1a08e9b3c1712b237c8cd77c36f5e30318
+SIZE (Noto/CJK/2.001/NotoSerifCJKhk-Medium.otf) = 24651412
+SHA256 (Noto/CJK/2.001/NotoSerifCJKhk-Regular.otf) = 41eed4e0cf70628018eb6b3ebe155b5aa3bd25f5dec4594294f3d54844b2a7ab
+SIZE (Noto/CJK/2.001/NotoSerifCJKhk-Regular.otf) = 24420252
+SHA256 (Noto/CJK/2.001/NotoSerifCJKhk-SemiBold.otf) = 47f89da34383c15589ad415fcc04ee4929e4abaa17fa39e759ce3abc50e68ccc
+SIZE (Noto/CJK/2.001/NotoSerifCJKhk-SemiBold.otf) = 24604396
+SHA256 (Noto/CJK/2.001/NotoSerifHK-Black.otf) = 86ff43dd6a3321a88f40e46ceca63d77d1b06887f7ade33a608867c25ee9d900
+SIZE (Noto/CJK/2.001/NotoSerifHK-Black.otf) = 8107936
+SHA256 (Noto/CJK/2.001/NotoSerifHK-Bold.otf) = c66d7e50517ccc36633de5655862eb748cbd63da4e9c8413018d16d21e25eac1
+SIZE (Noto/CJK/2.001/NotoSerifHK-Bold.otf) = 8236616
+SHA256 (Noto/CJK/2.001/NotoSerifHK-ExtraLight.otf) = 895f493759ddff9af2f1b3f6d0b76e88c4d8662242d290ebc6ccc318aca806bf
+SIZE (Noto/CJK/2.001/NotoSerifHK-ExtraLight.otf) = 7156456
+SHA256 (Noto/CJK/2.001/NotoSerifHK-Light.otf) = 4ed526d16e06570e214baf56f8beda5c86e24a47d6d9210eeaa80830be2a3995
+SIZE (Noto/CJK/2.001/NotoSerifHK-Light.otf) = 7806404
+SHA256 (Noto/CJK/2.001/NotoSerifHK-Medium.otf) = 047319b0e03bea3d53dc6d971d5105be5dcabedc68b11d6e78cadc9e90e6383c
+SIZE (Noto/CJK/2.001/NotoSerifHK-Medium.otf) = 8003248
+SHA256 (Noto/CJK/2.001/NotoSerifHK-Regular.otf) = 5e4e5a6624e0077c232e23dfe54c543a2960cfd36b9123170fe9241d22b35999
+SIZE (Noto/CJK/2.001/NotoSerifHK-Regular.otf) = 7919112
+SHA256 (Noto/CJK/2.001/NotoSerifHK-SemiBold.otf) = 0af5656783486d6650324630a23b7748e3d8d84232ff75ffbf50f5b8a06e2682
+SIZE (Noto/CJK/2.001/NotoSerifHK-SemiBold.otf) = 8025836
diff --git a/x11-fonts/noto-serif-hk/pkg-descr b/x11-fonts/noto-serif-hk/pkg-descr
new file mode 100644
index 000000000000..9c36f7e61e77
--- /dev/null
+++ b/x11-fonts/noto-serif-hk/pkg-descr
@@ -0,0 +1,9 @@
+Noto Sans CJK and Noto Serif CJK comprehensively cover Simplified Chinese,
+Traditional Chinese, Japanese, and Korean in a unified font family. This
+includes the full coverage of CJK Ideographs with variation support for 4
+regions, Kangxi radicals, Japanese Kana, Korean Hangul, and other CJK symbols
+and letters in the Basic Multilingual Plane of Unicode. It also provides limited
+coverage of CJK Ideographs in Plane 2 of Unicode as necessary to support
+standards from China and Japan.
+
+This port is the Serif set of Traditional Chinese Hong Kong fonts.
diff --git a/x11-fonts/noto-serif-hk/pkg-plist b/x11-fonts/noto-serif-hk/pkg-plist
new file mode 100644
index 000000000000..b7dd3b9f5f2a
--- /dev/null
+++ b/x11-fonts/noto-serif-hk/pkg-plist
@@ -0,0 +1,14 @@
+%%FONTSDIR%%/NotoSerifCJKhk-Black.otf
+%%FONTSDIR%%/NotoSerifCJKhk-Bold.otf
+%%FONTSDIR%%/NotoSerifCJKhk-ExtraLight.otf
+%%FONTSDIR%%/NotoSerifCJKhk-Light.otf
+%%FONTSDIR%%/NotoSerifCJKhk-Medium.otf
+%%FONTSDIR%%/NotoSerifCJKhk-Regular.otf
+%%FONTSDIR%%/NotoSerifCJKhk-SemiBold.otf
+%%FONTSDIR%%/NotoSerifHK-Black.otf
+%%FONTSDIR%%/NotoSerifHK-Bold.otf
+%%FONTSDIR%%/NotoSerifHK-ExtraLight.otf
+%%FONTSDIR%%/NotoSerifHK-Light.otf
+%%FONTSDIR%%/NotoSerifHK-Medium.otf
+%%FONTSDIR%%/NotoSerifHK-Regular.otf
+%%FONTSDIR%%/NotoSerifHK-SemiBold.otf