git: f8819e4224e7 - main - x11-fonts/noto-sc: Convert to a meta port

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

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

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

    x11-fonts/noto-sc: Convert to a meta port
    
    - Update to Sans 2.004 and Serif 2.001
    - Update WWW
    - Update pkg-descr
---
 x11-fonts/noto-sc/Makefile  | 54 +++++---------------------------------
 x11-fonts/noto-sc/distinfo  | 63 ---------------------------------------------
 x11-fonts/noto-sc/pkg-descr |  5 +---
 x11-fonts/noto-sc/pkg-plist | 30 ---------------------
 4 files changed, 7 insertions(+), 145 deletions(-)

diff --git a/x11-fonts/noto-sc/Makefile b/x11-fonts/noto-sc/Makefile
index 1a653df91333..6fbca63f9852 100644
--- a/x11-fonts/noto-sc/Makefile
+++ b/x11-fonts/noto-sc/Makefile
@@ -1,58 +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=	-sc
-DISTFILES=	LICENSE \
-		${NOTO_SC_FONTS}
-DIST_SUBDIR=	Noto/CJK/${PORTVERSION}
-EXTRACT_ONLY=	# empty
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Google Noto Fonts family (Simplified Chinese)
-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-sc>=0:x11-fonts/noto-sans-sc \
+		noto-serif-sc>=0:x11-fonts/noto-serif-sc
 
-USES=		fonts
-
-NO_ARCH=	yes
-NO_BUILD=	yes
-
-NOTO_SC_FONTS=	NotoSansCJKsc-Black.otf \
-		NotoSansCJKsc-Bold.otf \
-		NotoSansCJKsc-DemiLight.otf \
-		NotoSansCJKsc-Light.otf \
-		NotoSansCJKsc-Medium.otf \
-		NotoSansCJKsc-Regular.otf \
-		NotoSansCJKsc-Thin.otf \
-		NotoSansMonoCJKsc-Bold.otf \
-		NotoSansMonoCJKsc-Regular.otf \
-		NotoSansSC-Black.otf \
-		NotoSansSC-Bold.otf \
-		NotoSansSC-DemiLight.otf \
-		NotoSansSC-Light.otf \
-		NotoSansSC-Medium.otf \
-		NotoSansSC-Regular.otf \
-		NotoSansSC-Thin.otf \
-		NotoSerifCJKsc-Black.otf \
-		NotoSerifCJKsc-Bold.otf \
-		NotoSerifCJKsc-ExtraLight.otf \
-		NotoSerifCJKsc-Light.otf \
-		NotoSerifCJKsc-Medium.otf \
-		NotoSerifCJKsc-Regular.otf \
-		NotoSerifCJKsc-SemiBold.otf \
-		NotoSerifSC-Black.otf \
-		NotoSerifSC-Bold.otf \
-		NotoSerifSC-ExtraLight.otf \
-		NotoSerifSC-Light.otf \
-		NotoSerifSC-Medium.otf \
-		NotoSerifSC-Regular.otf \
-		NotoSerifSC-SemiBold.otf
-
-do-install:
-	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${NOTO_SC_FONTS} ${STAGEDIR}${FONTSDIR}
+USES=		metaport
 
 .include <bsd.port.mk>
diff --git a/x11-fonts/noto-sc/distinfo b/x11-fonts/noto-sc/distinfo
deleted file mode 100644
index 8a4c50987e5f..000000000000
--- a/x11-fonts/noto-sc/distinfo
+++ /dev/null
@@ -1,63 +0,0 @@
-TIMESTAMP = 1634111670
-SHA256 (Noto/CJK/2.002/LICENSE) = 6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2
-SIZE (Noto/CJK/2.002/LICENSE) = 4301
-SHA256 (Noto/CJK/2.002/NotoSansCJKsc-Black.otf) = 73bf0e7a686b54fc3de6eafc7f9e1d060a0806b727e52f7b3e7f934993417721
-SIZE (Noto/CJK/2.002/NotoSansCJKsc-Black.otf) = 18015540
-SHA256 (Noto/CJK/2.002/NotoSansCJKsc-Bold.otf) = 6fb544e3594d646788ebd4e8f190f4cd7f0666f7ed4cc4f4246284830edef4ec
-SIZE (Noto/CJK/2.002/NotoSansCJKsc-Bold.otf) = 17507840
-SHA256 (Noto/CJK/2.002/NotoSansCJKsc-DemiLight.otf) = 5aec2470b5dff229c3540627a1644ae53079d590e3c158f624ae829b08c7575e
-SIZE (Noto/CJK/2.002/NotoSansCJKsc-DemiLight.otf) = 16874296
-SHA256 (Noto/CJK/2.002/NotoSansCJKsc-Light.otf) = ea54e00d145f3a935403fa9ac19582548a3ca9a0af7586459c6e887cb53f2321
-SIZE (Noto/CJK/2.002/NotoSansCJKsc-Light.otf) = 16788492
-SHA256 (Noto/CJK/2.002/NotoSansCJKsc-Medium.otf) = 836e531d5d0d557a8b83ed2ec102569b314ddb92d2f6b6423d3055afc05daeb6
-SIZE (Noto/CJK/2.002/NotoSansCJKsc-Medium.otf) = 17022236
-SHA256 (Noto/CJK/2.002/NotoSansCJKsc-Regular.otf) = 6895d254d27ea7ac0c022b255d49f82508a52e18a635279d6dcf6702e3d5c68e
-SIZE (Noto/CJK/2.002/NotoSansCJKsc-Regular.otf) = 16933728
-SHA256 (Noto/CJK/2.002/NotoSansCJKsc-Thin.otf) = 00694ae664e9bbd0f411a143b2cdc4afb21b41d49d5ab998a4a188b2b6d9931e
-SIZE (Noto/CJK/2.002/NotoSansCJKsc-Thin.otf) = 15573124
-SHA256 (Noto/CJK/2.002/NotoSansMonoCJKsc-Bold.otf) = ed4d3ff739511227f253715f142b2389cd0f8509873383d7deec5958f4a4ccb5
-SIZE (Noto/CJK/2.002/NotoSansMonoCJKsc-Bold.otf) = 17464072
-SHA256 (Noto/CJK/2.002/NotoSansMonoCJKsc-Regular.otf) = a310c9f8cc8e58f90601b2581809fbcf5728799aebb5cce70c8d1255dc968d66
-SIZE (Noto/CJK/2.002/NotoSansMonoCJKsc-Regular.otf) = 16890152
-SHA256 (Noto/CJK/2.002/NotoSansSC-Black.otf) = 2d7a3b7ae6b6a1baec1dfb41f2150a28f2e65bab400460deb04ff5393d1c3977
-SIZE (Noto/CJK/2.002/NotoSansSC-Black.otf) = 8960668
-SHA256 (Noto/CJK/2.002/NotoSansSC-Bold.otf) = 5ed69f3e050c92306141063b9578229b3334f199f667a8d7aae5df0ef4a9bf7a
-SIZE (Noto/CJK/2.002/NotoSansSC-Bold.otf) = 8728948
-SHA256 (Noto/CJK/2.002/NotoSansSC-DemiLight.otf) = 7569a14777ad2005213181e86bc581582e66e3be1552c0d066716c54cdfc37d0
-SIZE (Noto/CJK/2.002/NotoSansSC-DemiLight.otf) = 8480680
-SHA256 (Noto/CJK/2.002/NotoSansSC-Light.otf) = e78b05872a7f39019575d4134b8dda89de444c7995e6a5f5028605d34b9ce55c
-SIZE (Noto/CJK/2.002/NotoSansSC-Light.otf) = 8445784
-SHA256 (Noto/CJK/2.002/NotoSansSC-Medium.otf) = 02dc97b4f80982db0ede96658fef643072d9f6e6917af6592e9e7ce3dc8969f4
-SIZE (Noto/CJK/2.002/NotoSansSC-Medium.otf) = 8520356
-SHA256 (Noto/CJK/2.002/NotoSansSC-Regular.otf) = 04da2dac7dc3960fad1046d75b9a61ee30ecf3de8dd3b71a7860fbb99492ac21
-SIZE (Noto/CJK/2.002/NotoSansSC-Regular.otf) = 8493924
-SHA256 (Noto/CJK/2.002/NotoSansSC-Thin.otf) = 7e2f5ad36607254965ce38cfce186a0964c999360e87697d3577d0e940052305
-SIZE (Noto/CJK/2.002/NotoSansSC-Thin.otf) = 7825388
-SHA256 (Noto/CJK/2.002/NotoSerifCJKsc-Black.otf) = 94ef86d2807b81a0db8f596ff0e50130b9744da61b71000e77087aaf38418c02
-SIZE (Noto/CJK/2.002/NotoSerifCJKsc-Black.otf) = 22915392
-SHA256 (Noto/CJK/2.002/NotoSerifCJKsc-Bold.otf) = 2dcb7dd34444afc79fce6c2f67afe018b6bbe87af98bf0918d7316c58416157b
-SIZE (Noto/CJK/2.002/NotoSerifCJKsc-Bold.otf) = 24683284
-SHA256 (Noto/CJK/2.002/NotoSerifCJKsc-ExtraLight.otf) = 2cc0582da264c9038c75a766a78bf645567c8c552f36b98901b3c43b11bd8fa5
-SIZE (Noto/CJK/2.002/NotoSerifCJKsc-ExtraLight.otf) = 21302704
-SHA256 (Noto/CJK/2.002/NotoSerifCJKsc-Light.otf) = e5880b655a78ab15ef0ebd807b6d0f049d5668674c11f49ca3473aedb3e0cadc
-SIZE (Noto/CJK/2.002/NotoSerifCJKsc-Light.otf) = 23457672
-SHA256 (Noto/CJK/2.002/NotoSerifCJKsc-Medium.otf) = 3405a99c1fc545672b919d55acc61ff749dd54e577a893b43a4dc99d11b4c6cf
-SIZE (Noto/CJK/2.002/NotoSerifCJKsc-Medium.otf) = 23889040
-SHA256 (Noto/CJK/2.002/NotoSerifCJKsc-Regular.otf) = efa5e49879a789c1ecad8f07e1813c7f9aa6c4b951fdbb5791d85d67345632d7
-SIZE (Noto/CJK/2.002/NotoSerifCJKsc-Regular.otf) = 23613224
-SHA256 (Noto/CJK/2.002/NotoSerifCJKsc-SemiBold.otf) = e3e030ed7420c96c465a6afccfecfa83739797d7854f8e3c89f6ac4d73af0338
-SIZE (Noto/CJK/2.002/NotoSerifCJKsc-SemiBold.otf) = 23877004
-SHA256 (Noto/CJK/2.002/NotoSerifSC-Black.otf) = 609d2afbbf4e7286bafa7b24c294df85280980e2ff48461a26bf19f2302e7525
-SIZE (Noto/CJK/2.002/NotoSerifSC-Black.otf) = 11296784
-SHA256 (Noto/CJK/2.002/NotoSerifSC-Bold.otf) = 733ac698775c8002b563abac2c4f108712c1e59652ed08fbe974a7e1cc639dd4
-SIZE (Noto/CJK/2.002/NotoSerifSC-Bold.otf) = 11762276
-SHA256 (Noto/CJK/2.002/NotoSerifSC-ExtraLight.otf) = 103dff2d9884cd31a6eafabe92ec7fcb666a75bf24fd52370e31290426f826e7
-SIZE (Noto/CJK/2.002/NotoSerifSC-ExtraLight.otf) = 10364452
-SHA256 (Noto/CJK/2.002/NotoSerifSC-Light.otf) = 9c76934065c35551a7571f7cc576c4bd94b3078e85e5a4dc1223fa3e0da83cf8
-SIZE (Noto/CJK/2.002/NotoSerifSC-Light.otf) = 11080852
-SHA256 (Noto/CJK/2.002/NotoSerifSC-Medium.otf) = a8f7ef69e54d17b3b1d20c28e915b05a5111aaa1f539554a52f4c5aa7bc008b3
-SIZE (Noto/CJK/2.002/NotoSerifSC-Medium.otf) = 11363720
-SHA256 (Noto/CJK/2.002/NotoSerifSC-Regular.otf) = 1416501fd3f3f913ebb40310f9fbee337cd24bea1b3129e144b3cf9adc238340
-SIZE (Noto/CJK/2.002/NotoSerifSC-Regular.otf) = 11248184
-SHA256 (Noto/CJK/2.002/NotoSerifSC-SemiBold.otf) = 202e6548396f32c7c3c147f82b5687d1e81c8b24b6e0fc405e460d044a059b61
-SIZE (Noto/CJK/2.002/NotoSerifSC-SemiBold.otf) = 11444016
diff --git a/x11-fonts/noto-sc/pkg-descr b/x11-fonts/noto-sc/pkg-descr
index ab542bb6c84d..0e8d4298a8c2 100644
--- a/x11-fonts/noto-sc/pkg-descr
+++ b/x11-fonts/noto-sc/pkg-descr
@@ -6,7 +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 Simplified Chinese fonts which supports GB 18030 and
-China's latest standard Table of General Chinese Characters published in 2013.
-
-See also: https://github.com/googlefonts/noto-cjk
+This port is the meta port for Simplified Chinese fonts.
diff --git a/x11-fonts/noto-sc/pkg-plist b/x11-fonts/noto-sc/pkg-plist
deleted file mode 100644
index 1d19a1f058f1..000000000000
--- a/x11-fonts/noto-sc/pkg-plist
+++ /dev/null
@@ -1,30 +0,0 @@
-%%FONTSDIR%%/NotoSansCJKsc-Black.otf
-%%FONTSDIR%%/NotoSansCJKsc-Bold.otf
-%%FONTSDIR%%/NotoSansCJKsc-DemiLight.otf
-%%FONTSDIR%%/NotoSansCJKsc-Light.otf
-%%FONTSDIR%%/NotoSansCJKsc-Medium.otf
-%%FONTSDIR%%/NotoSansCJKsc-Regular.otf
-%%FONTSDIR%%/NotoSansCJKsc-Thin.otf
-%%FONTSDIR%%/NotoSansMonoCJKsc-Bold.otf
-%%FONTSDIR%%/NotoSansMonoCJKsc-Regular.otf
-%%FONTSDIR%%/NotoSansSC-Black.otf
-%%FONTSDIR%%/NotoSansSC-Bold.otf
-%%FONTSDIR%%/NotoSansSC-DemiLight.otf
-%%FONTSDIR%%/NotoSansSC-Light.otf
-%%FONTSDIR%%/NotoSansSC-Medium.otf
-%%FONTSDIR%%/NotoSansSC-Regular.otf
-%%FONTSDIR%%/NotoSansSC-Thin.otf
-%%FONTSDIR%%/NotoSerifCJKsc-Black.otf
-%%FONTSDIR%%/NotoSerifCJKsc-Bold.otf
-%%FONTSDIR%%/NotoSerifCJKsc-ExtraLight.otf
-%%FONTSDIR%%/NotoSerifCJKsc-Light.otf
-%%FONTSDIR%%/NotoSerifCJKsc-Medium.otf
-%%FONTSDIR%%/NotoSerifCJKsc-Regular.otf
-%%FONTSDIR%%/NotoSerifCJKsc-SemiBold.otf
-%%FONTSDIR%%/NotoSerifSC-Black.otf
-%%FONTSDIR%%/NotoSerifSC-Bold.otf
-%%FONTSDIR%%/NotoSerifSC-ExtraLight.otf
-%%FONTSDIR%%/NotoSerifSC-Light.otf
-%%FONTSDIR%%/NotoSerifSC-Medium.otf
-%%FONTSDIR%%/NotoSerifSC-Regular.otf
-%%FONTSDIR%%/NotoSerifSC-SemiBold.otf