git: 9cd15bba8534 - main - x11-fonts/noto-hk: Convert to a meta port

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

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

commit 9cd15bba8534ced868efcdb83bef59f1c63c1b56
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 08:40:53 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:04:14 +0000

    x11-fonts/noto-hk: Convert to a meta port
    
    - Update to Sans 2.004 and Serif 2.001
    - Update WWW
    - Update pkg-descr
---
 x11-fonts/noto-hk/Makefile  | 40 ++++++----------------------------------
 x11-fonts/noto-hk/distinfo  | 35 -----------------------------------
 x11-fonts/noto-hk/pkg-descr |  4 +---
 x11-fonts/noto-hk/pkg-plist | 16 ----------------
 4 files changed, 7 insertions(+), 88 deletions(-)

diff --git a/x11-fonts/noto-hk/Makefile b/x11-fonts/noto-hk/Makefile
index 9abbc90eeb7d..781dbd585558 100644
--- a/x11-fonts/noto-hk/Makefile
+++ b/x11-fonts/noto-hk/Makefile
@@ -1,44 +1,16 @@
 PORTNAME=	noto
-PORTVERSION=	2.002
+PORTVERSION=	2.004
 CATEGORIES=	x11-fonts
-MASTER_SITES=	https://github.com/googlefonts/noto-cjk/raw/v20201206-cjk/
 PKGNAMESUFFIX=	-hk
-DISTFILES=	LICENSE \
-		${NOTO_HK_FONTS}
-DIST_SUBDIR=	Noto/CJK/${PORTVERSION}
-EXTRACT_ONLY=	# empty
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Google Noto Fonts family (Traditional Chinese Hong Kong)
-WWW=		https://www.google.com/get/noto/
+WWW=		https://www.google.com/get/noto/ \
+		https://github.com/googlefonts/noto-cjk
 
-LICENSE=	OFL11
-LICENSE_FILE=	${DISTDIR}/${DIST_SUBDIR}/LICENSE
+RUN_DEPENDS=	noto-sans-hk>=0:x11-fonts/noto-sans-hk \
+		noto-serif-hk>=0:x11-fonts/noto-serif-hk
 
-USES=		fonts
-
-NO_ARCH=	yes
-NO_BUILD=	yes
-
-NOTO_HK_FONTS=	NotoSansCJKhk-Black.otf \
-		NotoSansCJKhk-Bold.otf \
-		NotoSansCJKhk-DemiLight.otf \
-		NotoSansCJKhk-Light.otf \
-		NotoSansCJKhk-Medium.otf \
-		NotoSansCJKhk-Regular.otf \
-		NotoSansCJKhk-Thin.otf \
-		NotoSansHK-Black.otf \
-		NotoSansHK-Bold.otf \
-		NotoSansHK-DemiLight.otf \
-		NotoSansHK-Light.otf \
-		NotoSansHK-Medium.otf \
-		NotoSansHK-Regular.otf \
-		NotoSansHK-Thin.otf \
-		NotoSansMonoCJKhk-Bold.otf \
-		NotoSansMonoCJKhk-Regular.otf
-
-do-install:
-	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${NOTO_HK_FONTS} ${STAGEDIR}${FONTSDIR}
+USES=		metaport
 
 .include <bsd.port.mk>
diff --git a/x11-fonts/noto-hk/distinfo b/x11-fonts/noto-hk/distinfo
deleted file mode 100644
index 684d3980bc8a..000000000000
--- a/x11-fonts/noto-hk/distinfo
+++ /dev/null
@@ -1,35 +0,0 @@
-TIMESTAMP = 1634111664
-SHA256 (Noto/CJK/2.002/LICENSE) = 6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2
-SIZE (Noto/CJK/2.002/LICENSE) = 4301
-SHA256 (Noto/CJK/2.002/NotoSansCJKhk-Black.otf) = 553491af239dc814aee01dd437d8a6eae1a31da26a2ac1a6a5f9d7e21b21ab0d
-SIZE (Noto/CJK/2.002/NotoSansCJKhk-Black.otf) = 18005788
-SHA256 (Noto/CJK/2.002/NotoSansCJKhk-Bold.otf) = eb62522d4a989e8221a91478b613541a062cd1f008717ed62ce2adbc9fada72d
-SIZE (Noto/CJK/2.002/NotoSansCJKhk-Bold.otf) = 17498088
-SHA256 (Noto/CJK/2.002/NotoSansCJKhk-DemiLight.otf) = 443b1cfca9adcbce0f1561684ea9309229abce26a9e66784e7be8350c3f56a5a
-SIZE (Noto/CJK/2.002/NotoSansCJKhk-DemiLight.otf) = 16864544
-SHA256 (Noto/CJK/2.002/NotoSansCJKhk-Light.otf) = c6a941580df2a9243afbe5525733c89e2beee9b3ab8aec787f04341d6a75572b
-SIZE (Noto/CJK/2.002/NotoSansCJKhk-Light.otf) = 16778740
-SHA256 (Noto/CJK/2.002/NotoSansCJKhk-Medium.otf) = 7297cf9059378c0af3ca37983a6797771e197b49f58453cd9ae3092325ce86c1
-SIZE (Noto/CJK/2.002/NotoSansCJKhk-Medium.otf) = 17012484
-SHA256 (Noto/CJK/2.002/NotoSansCJKhk-Regular.otf) = c10c9342f3fd512c9e3999091c3e369deeeaa0ecee8283d111948e8d08ad01ee
-SIZE (Noto/CJK/2.002/NotoSansCJKhk-Regular.otf) = 16923980
-SHA256 (Noto/CJK/2.002/NotoSansCJKhk-Thin.otf) = 1eb37db19e248b9977c9cb02dcbcac44854d4a435538dc77aa0462e8a649f2da
-SIZE (Noto/CJK/2.002/NotoSansCJKhk-Thin.otf) = 15563372
-SHA256 (Noto/CJK/2.002/NotoSansHK-Black.otf) = e2d396b7aca0ee57efe17ffae7f3894b1e28fa2b6e7f7baeecbddecaa0bc2283
-SIZE (Noto/CJK/2.002/NotoSansHK-Black.otf) = 6142368
-SHA256 (Noto/CJK/2.002/NotoSansHK-Bold.otf) = 43406f1703fd783cd14915660688d8e18a366de6097d7c91ab0a1e1a29bd55d6
-SIZE (Noto/CJK/2.002/NotoSansHK-Bold.otf) = 5958532
-SHA256 (Noto/CJK/2.002/NotoSansHK-DemiLight.otf) = 953ff7645b492f3123449567ff07405fa2bd4f3b500af23ece67c4fee2bc984c
-SIZE (Noto/CJK/2.002/NotoSansHK-DemiLight.otf) = 5773240
-SHA256 (Noto/CJK/2.002/NotoSansHK-Light.otf) = 5889af0a2d2eb533f3116dcec188e7f551196f2cf6f62f083a39d77e130a70f9
-SIZE (Noto/CJK/2.002/NotoSansHK-Light.otf) = 5751512
-SHA256 (Noto/CJK/2.002/NotoSansHK-Medium.otf) = 2c6722cb9d817a76997c23ad007d4345e9c0f79502caa995ae9fd677b4588726
-SIZE (Noto/CJK/2.002/NotoSansHK-Medium.otf) = 5805380
-SHA256 (Noto/CJK/2.002/NotoSansHK-Regular.otf) = da83c39cddf9eb7ba422330d3755aa476b234934a50a2a04f10da7ba26a31a26
-SIZE (Noto/CJK/2.002/NotoSansHK-Regular.otf) = 5785420
-SHA256 (Noto/CJK/2.002/NotoSansHK-Thin.otf) = aa3952089355b2bcf29d290895a6408ccf38fa000a9b6b34b33d2a8fcb1e912f
-SIZE (Noto/CJK/2.002/NotoSansHK-Thin.otf) = 5370380
-SHA256 (Noto/CJK/2.002/NotoSansMonoCJKhk-Bold.otf) = 4198c608ae5a5e5feff253211757c53228d369d186e7c1109aaa6372a5ceab12
-SIZE (Noto/CJK/2.002/NotoSansMonoCJKhk-Bold.otf) = 17454320
-SHA256 (Noto/CJK/2.002/NotoSansMonoCJKhk-Regular.otf) = d79f583474ddd0a5bcf586f67f32008c71c8390dfb92fb37b904cbb9203153ab
-SIZE (Noto/CJK/2.002/NotoSansMonoCJKhk-Regular.otf) = 16880400
diff --git a/x11-fonts/noto-hk/pkg-descr b/x11-fonts/noto-hk/pkg-descr
index 181082e56e77..52674cae2f5c 100644
--- a/x11-fonts/noto-hk/pkg-descr
+++ b/x11-fonts/noto-hk/pkg-descr
@@ -6,6 +6,4 @@ 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 set of Traditional Chinese Hong Kong fonts.
-
-See also: https://github.com/googlefonts/noto-cjk
+This port is the meta port for Traditional Chinese Hong Kong fonts.
diff --git a/x11-fonts/noto-hk/pkg-plist b/x11-fonts/noto-hk/pkg-plist
deleted file mode 100644
index 7aa7afac830e..000000000000
--- a/x11-fonts/noto-hk/pkg-plist
+++ /dev/null
@@ -1,16 +0,0 @@
-%%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