git: b6536a454f63 - main - x11-fonts/noto-sans-hk: Add noto-sans-hk 2.004

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

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

commit b6536a454f63f3f307f96694c65c283ed88e1fd6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 08:35:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:03:57 +0000

    x11-fonts/noto-sans-hk: Add noto-sans-hk 2.004
    
    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 Sans set of Traditional Chinese Hong Kong fonts.
---
 x11-fonts/Makefile               |  1 +
 x11-fonts/noto-sans-hk/Makefile  | 50 ++++++++++++++++++++++++++++++++++++++++
 x11-fonts/noto-sans-hk/distinfo  | 35 ++++++++++++++++++++++++++++
 x11-fonts/noto-sans-hk/pkg-descr |  9 ++++++++
 x11-fonts/noto-sans-hk/pkg-plist | 16 +++++++++++++
 5 files changed, 111 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index f0c72001fa54..317931ee123b 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -188,6 +188,7 @@
     SUBDIR += noto-hk
     SUBDIR += noto-jp
     SUBDIR += noto-kr
+    SUBDIR += noto-sans-hk
     SUBDIR += noto-sc
     SUBDIR += noto-tc
     SUBDIR += nucleus
diff --git a/x11-fonts/noto-sans-hk/Makefile b/x11-fonts/noto-sans-hk/Makefile
new file mode 100644
index 000000000000..d659e9aacf3a
--- /dev/null
+++ b/x11-fonts/noto-sans-hk/Makefile
@@ -0,0 +1,50 @@
+PORTNAME=	noto
+PORTVERSION=	2.004
+CATEGORIES=	x11-fonts
+MASTER_SITES=	https://github.com/googlefonts/noto-cjk/raw/Sans${PORTVERSION}/ \
+		https://github.com/googlefonts/noto-cjk/raw/Sans${PORTVERSION}/Sans/OTF/TraditionalChineseHK/:cjk \
+		https://github.com/googlefonts/noto-cjk/raw/Sans${PORTVERSION}/Sans/Mono/:mono \
+		https://github.com/googlefonts/noto-cjk/raw/Sans${PORTVERSION}/Sans/SubsetOTF/HK/:subset
+PKGNAMESUFFIX=	-sans-hk
+DISTFILES=	LICENSE \
+		${CJK_FONTS:S|$|:cjk|} \
+		${MONO_FONTS:S|$|:mono|} \
+		${SUBSET_FONTS:S|$|:subset|}
+DIST_SUBDIR=	Noto/CJK/${PORTVERSION}
+EXTRACT_ONLY=	# empty
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Google Noto Sans (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=	NotoSansCJKhk-Black.otf \
+		NotoSansCJKhk-Bold.otf \
+		NotoSansCJKhk-DemiLight.otf \
+		NotoSansCJKhk-Light.otf \
+		NotoSansCJKhk-Medium.otf \
+		NotoSansCJKhk-Regular.otf \
+		NotoSansCJKhk-Thin.otf
+MONO_FONTS=	NotoSansMonoCJKhk-Bold.otf \
+		NotoSansMonoCJKhk-Regular.otf
+SUBSET_FONTS=	NotoSansHK-Black.otf \
+		NotoSansHK-Bold.otf \
+		NotoSansHK-DemiLight.otf \
+		NotoSansHK-Light.otf \
+		NotoSansHK-Medium.otf \
+		NotoSansHK-Regular.otf \
+		NotoSansHK-Thin.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-sans-hk/distinfo b/x11-fonts/noto-sans-hk/distinfo
new file mode 100644
index 000000000000..9caa1213012a
--- /dev/null
+++ b/x11-fonts/noto-sans-hk/distinfo
@@ -0,0 +1,35 @@
+TIMESTAMP = 1671956118
+SHA256 (Noto/CJK/2.004/LICENSE) = 6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2
+SIZE (Noto/CJK/2.004/LICENSE) = 4301
+SHA256 (Noto/CJK/2.004/NotoSansCJKhk-Black.otf) = 0fa4fa6142cac84a8e271263ab0620293426feeff4642bc70c3ba4ce0a7f5efd
+SIZE (Noto/CJK/2.004/NotoSansCJKhk-Black.otf) = 17788148
+SHA256 (Noto/CJK/2.004/NotoSansCJKhk-Bold.otf) = a9b0265b7beae89767bb952094a1765fb8b4868064974e5f12ec783d8fe97d99
+SIZE (Noto/CJK/2.004/NotoSansCJKhk-Bold.otf) = 16992488
+SHA256 (Noto/CJK/2.004/NotoSansCJKhk-DemiLight.otf) = 3ef4dc59d01411352aced4935f782f05d8e527ebd3acb4735433e7cb2477a6b4
+SIZE (Noto/CJK/2.004/NotoSansCJKhk-DemiLight.otf) = 16405000
+SHA256 (Noto/CJK/2.004/NotoSansCJKhk-Light.otf) = c3d2599cdeb07114215c2f1d456d7f4dd437672215f6a5c24a74854045ab7a14
+SIZE (Noto/CJK/2.004/NotoSansCJKhk-Light.otf) = 16319888
+SHA256 (Noto/CJK/2.004/NotoSansCJKhk-Medium.otf) = a89a324363b717f90de3ca3d3c7d89e3c81ce0ed74c736ab84e08872843d7672
+SIZE (Noto/CJK/2.004/NotoSansCJKhk-Medium.otf) = 16513872
+SHA256 (Noto/CJK/2.004/NotoSansCJKhk-Regular.otf) = 97c937514d645eae90415d30ba025e08a94d5bdffdc627404864f90aa0c7d83b
+SIZE (Noto/CJK/2.004/NotoSansCJKhk-Regular.otf) = 16427604
+SHA256 (Noto/CJK/2.004/NotoSansCJKhk-Thin.otf) = 13148319e2e50bc453cf47addb493370565fd64bd926962b0ac1017b3f3cafee
+SIZE (Noto/CJK/2.004/NotoSansCJKhk-Thin.otf) = 14886928
+SHA256 (Noto/CJK/2.004/NotoSansMonoCJKhk-Bold.otf) = da24a73c59e785f0f6a726d038a30f62f0a371be0d2df048d1a32926cd072fc5
+SIZE (Noto/CJK/2.004/NotoSansMonoCJKhk-Bold.otf) = 16948716
+SHA256 (Noto/CJK/2.004/NotoSansMonoCJKhk-Regular.otf) = f72d973a07253e24a08b4fd6923d33087ad33324868a9f9bf17e7c824306d1a1
+SIZE (Noto/CJK/2.004/NotoSansMonoCJKhk-Regular.otf) = 16384024
+SHA256 (Noto/CJK/2.004/NotoSansHK-Black.otf) = aa7e48349d2c606f0194fd73c3e5fad03d88d851b8a440bd189377dbeaf44f89
+SIZE (Noto/CJK/2.004/NotoSansHK-Black.otf) = 6072180
+SHA256 (Noto/CJK/2.004/NotoSansHK-Bold.otf) = 4bce16fbed09278cbdfb4d57749500038cdda70737925a846e3f6c59327ab46e
+SIZE (Noto/CJK/2.004/NotoSansHK-Bold.otf) = 5840928
+SHA256 (Noto/CJK/2.004/NotoSansHK-DemiLight.otf) = a46ce9609d049d66223ee8bedab882373a59ac641cd77dd9ef932c66869489a3
+SIZE (Noto/CJK/2.004/NotoSansHK-DemiLight.otf) = 5683528
+SHA256 (Noto/CJK/2.004/NotoSansHK-Light.otf) = 8f562edadb7c48af480c02b7446809e7a660a3990eae49f0e49f45c80a4e6155
+SIZE (Noto/CJK/2.004/NotoSansHK-Light.otf) = 5668004
+SHA256 (Noto/CJK/2.004/NotoSansHK-Medium.otf) = 485a85d885f871887ac27b7240ab93fbec64c8cd1806f619d61c9e8d02734276
+SIZE (Noto/CJK/2.004/NotoSansHK-Medium.otf) = 5698556
+SHA256 (Noto/CJK/2.004/NotoSansHK-Regular.otf) = 8a43afea92bb58dfd9027bd7ac6f5b0b2662e2ffb3e7c1edc02c62b2b21924f1
+SIZE (Noto/CJK/2.004/NotoSansHK-Regular.otf) = 5688384
+SHA256 (Noto/CJK/2.004/NotoSansHK-Thin.otf) = 988d8c5e4ceaf3f7a9237790371e1961ae0d58cee4cd129df28abd06d7553393
+SIZE (Noto/CJK/2.004/NotoSansHK-Thin.otf) = 5233872
diff --git a/x11-fonts/noto-sans-hk/pkg-descr b/x11-fonts/noto-sans-hk/pkg-descr
new file mode 100644
index 000000000000..4c1386022ab7
--- /dev/null
+++ b/x11-fonts/noto-sans-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 Sans set of Traditional Chinese Hong Kong fonts.
diff --git a/x11-fonts/noto-sans-hk/pkg-plist b/x11-fonts/noto-sans-hk/pkg-plist
new file mode 100644
index 000000000000..7aa7afac830e
--- /dev/null
+++ b/x11-fonts/noto-sans-hk/pkg-plist
@@ -0,0 +1,16 @@
+%%FONTSDIR%%/NotoSansCJKhk-Black.otf
+%%FONTSDIR%%/NotoSansCJKhk-Bold.otf
+%%FONTSDIR%%/NotoSansCJKhk-DemiLight.otf
+%%FONTSDIR%%/NotoSansCJKhk-Light.otf
+%%FONTSDIR%%/NotoSansCJKhk-Medium.otf
+%%FONTSDIR%%/NotoSansCJKhk-Regular.otf
+%%FONTSDIR%%/NotoSansCJKhk-Thin.otf
+%%FONTSDIR%%/NotoSansHK-Black.otf
+%%FONTSDIR%%/NotoSansHK-Bold.otf
+%%FONTSDIR%%/NotoSansHK-DemiLight.otf
+%%FONTSDIR%%/NotoSansHK-Light.otf
+%%FONTSDIR%%/NotoSansHK-Medium.otf
+%%FONTSDIR%%/NotoSansHK-Regular.otf
+%%FONTSDIR%%/NotoSansHK-Thin.otf
+%%FONTSDIR%%/NotoSansMonoCJKhk-Bold.otf
+%%FONTSDIR%%/NotoSansMonoCJKhk-Regular.otf