git: d1f960ea0d4d - main - x11-fonts/noto-sans-cham: Add noto-sans-cham 2.004

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 23 Mar 2024 15:12:10 UTC
The branch main has been updated by sunpoet:

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

commit d1f960ea0d4d6637a12433f968829cd25ead035a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-23 15:10:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-23 15:10:27 +0000

    x11-fonts/noto-sans-cham: Add noto-sans-cham 2.004
    
    When text is rendered by a computer, sometimes characters are displayed as
    "tofu". They are little boxes to indicate your device doesn't have a font to
    display the text.
    
    Google has been developing a font family called Noto, which aims to support all
    languages with a harmonious look and feel. Noto is Google's answer to tofu. The
    name noto is to convey the idea that Google's goal is to see no more "tofu".
    Noto has multiple styles and weights, and is freely available to all. The
    comprehensive set of fonts and tools used in our development is available in our
    GitHub repositories.
    
    This port provides the fonts set of Noto Sans Cham.
---
 x11-fonts/Makefile                 |  1 +
 x11-fonts/noto-sans-cham/Makefile  | 28 ++++++++++++++++++++++++++++
 x11-fonts/noto-sans-cham/distinfo  |  3 +++
 x11-fonts/noto-sans-cham/pkg-descr | 12 ++++++++++++
 x11-fonts/noto-sans-cham/pkg-plist |  9 +++++++++
 5 files changed, 53 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index ba5336fb73a6..075bc271e0bf 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -199,6 +199,7 @@
     SUBDIR += noto-sans-armenian
     SUBDIR += noto-sans-basic
     SUBDIR += noto-sans-bengali
+    SUBDIR += noto-sans-cham
     SUBDIR += noto-sans-hk
     SUBDIR += noto-sans-jp
     SUBDIR += noto-sans-kr
diff --git a/x11-fonts/noto-sans-cham/Makefile b/x11-fonts/noto-sans-cham/Makefile
new file mode 100644
index 000000000000..0012b50a60d6
--- /dev/null
+++ b/x11-fonts/noto-sans-cham/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	noto
+PORTVERSION=	2.004
+CATEGORIES=	x11-fonts
+MASTER_SITES=	https://github.com/notofonts/cham/releases/download/NotoSansCham-v${PORTVERSION}/
+PKGNAMESUFFIX=	-sans-cham
+DISTNAME=	NotoSansCham-v${PORTVERSION}
+DIST_SUBDIR=	Noto
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Google Noto Sans Cham
+WWW=		https://fonts.google.com/noto \
+		https://notofonts.github.io/ \
+		https://github.com/notofonts/cham
+
+LICENSE=	OFL11
+LICENSE_FILE=	${WRKSRC}/OFL.txt
+
+USES=		fonts zip
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+NO_WRKSUBDIR=	yes
+
+do-install:
+	${MKDIR} ${STAGEDIR}${FONTSDIR}
+	${INSTALL_DATA} ${WRKSRC}/NotoSansCham/hinted/ttf/*.ttf ${STAGEDIR}${FONTSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/noto-sans-cham/distinfo b/x11-fonts/noto-sans-cham/distinfo
new file mode 100644
index 000000000000..9b493d60befb
--- /dev/null
+++ b/x11-fonts/noto-sans-cham/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1710676067
+SHA256 (Noto/NotoSansCham-v2.004.zip) = 2808a208c0c242e8e3de2bfb7ee4b8329d401a088b1af63d1776b93ed4d112fd
+SIZE (Noto/NotoSansCham-v2.004.zip) = 1835021
diff --git a/x11-fonts/noto-sans-cham/pkg-descr b/x11-fonts/noto-sans-cham/pkg-descr
new file mode 100644
index 000000000000..15d7b7f1d856
--- /dev/null
+++ b/x11-fonts/noto-sans-cham/pkg-descr
@@ -0,0 +1,12 @@
+When text is rendered by a computer, sometimes characters are displayed as
+"tofu". They are little boxes to indicate your device doesn't have a font to
+display the text.
+
+Google has been developing a font family called Noto, which aims to support all
+languages with a harmonious look and feel. Noto is Google's answer to tofu. The
+name noto is to convey the idea that Google's goal is to see no more "tofu".
+Noto has multiple styles and weights, and is freely available to all. The
+comprehensive set of fonts and tools used in our development is available in our
+GitHub repositories.
+
+This port provides the fonts set of Noto Sans Cham.
diff --git a/x11-fonts/noto-sans-cham/pkg-plist b/x11-fonts/noto-sans-cham/pkg-plist
new file mode 100644
index 000000000000..88ffa6d26e73
--- /dev/null
+++ b/x11-fonts/noto-sans-cham/pkg-plist
@@ -0,0 +1,9 @@
+%%FONTSDIR%%/NotoSansCham-Black.ttf
+%%FONTSDIR%%/NotoSansCham-Bold.ttf
+%%FONTSDIR%%/NotoSansCham-ExtraBold.ttf
+%%FONTSDIR%%/NotoSansCham-ExtraLight.ttf
+%%FONTSDIR%%/NotoSansCham-Light.ttf
+%%FONTSDIR%%/NotoSansCham-Medium.ttf
+%%FONTSDIR%%/NotoSansCham-Regular.ttf
+%%FONTSDIR%%/NotoSansCham-SemiBold.ttf
+%%FONTSDIR%%/NotoSansCham-Thin.ttf