git: 487c6a7f0b38 - main - x11-fonts/noto-serif-thai: Add noto-serif-thai 2.002

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

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

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

    x11-fonts/noto-serif-thai: Add noto-serif-thai 2.002
    
    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 Serif Thai.
---
 x11-fonts/Makefile                  |  1 +
 x11-fonts/noto-serif-thai/Makefile  | 28 ++++++++++++++++++++++++++++
 x11-fonts/noto-serif-thai/distinfo  |  3 +++
 x11-fonts/noto-serif-thai/pkg-descr | 12 ++++++++++++
 x11-fonts/noto-serif-thai/pkg-plist | 36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 80 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index 5985ef23b04f..707a788986cb 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -246,6 +246,7 @@
     SUBDIR += noto-serif-tamil
     SUBDIR += noto-serif-tc
     SUBDIR += noto-serif-telugu
+    SUBDIR += noto-serif-thai
     SUBDIR += noto-tc
     SUBDIR += nucleus
     SUBDIR += office-code-pro
diff --git a/x11-fonts/noto-serif-thai/Makefile b/x11-fonts/noto-serif-thai/Makefile
new file mode 100644
index 000000000000..1bcbe3442b7d
--- /dev/null
+++ b/x11-fonts/noto-serif-thai/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	noto
+PORTVERSION=	2.002
+CATEGORIES=	x11-fonts
+MASTER_SITES=	https://github.com/notofonts/thai/releases/download/NotoSerifThai-v${PORTVERSION}/
+PKGNAMESUFFIX=	-serif-thai
+DISTNAME=	NotoSerifThai-v${PORTVERSION}
+DIST_SUBDIR=	Noto
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Google Noto Serif Thai
+WWW=		https://fonts.google.com/noto \
+		https://notofonts.github.io/ \
+		https://github.com/notofonts/thai
+
+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}/NotoSerifThai/hinted/ttf/*.ttf ${STAGEDIR}${FONTSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/noto-serif-thai/distinfo b/x11-fonts/noto-serif-thai/distinfo
new file mode 100644
index 000000000000..7d3e3eb8edc8
--- /dev/null
+++ b/x11-fonts/noto-serif-thai/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1710676127
+SHA256 (Noto/NotoSerifThai-v2.002.zip) = 89e3c04bfc54d9a5dd0aec660bf974ad46df38385df7d9397c083482d515049a
+SIZE (Noto/NotoSerifThai-v2.002.zip) = 5733486
diff --git a/x11-fonts/noto-serif-thai/pkg-descr b/x11-fonts/noto-serif-thai/pkg-descr
new file mode 100644
index 000000000000..32c055ed4f50
--- /dev/null
+++ b/x11-fonts/noto-serif-thai/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 Serif Thai.
diff --git a/x11-fonts/noto-serif-thai/pkg-plist b/x11-fonts/noto-serif-thai/pkg-plist
new file mode 100644
index 000000000000..b0bc3ab896de
--- /dev/null
+++ b/x11-fonts/noto-serif-thai/pkg-plist
@@ -0,0 +1,36 @@
+%%FONTSDIR%%/NotoSerifThai-Black.ttf
+%%FONTSDIR%%/NotoSerifThai-Bold.ttf
+%%FONTSDIR%%/NotoSerifThai-Condensed.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedBlack.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedBold.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedExtraBold.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedExtraLight.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedLight.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedMedium.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedSemiBold.ttf
+%%FONTSDIR%%/NotoSerifThai-CondensedThin.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraBold.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensed.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedBlack.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedBold.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedExtraBold.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedExtraLight.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedLight.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedMedium.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedSemiBold.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraCondensedThin.ttf
+%%FONTSDIR%%/NotoSerifThai-ExtraLight.ttf
+%%FONTSDIR%%/NotoSerifThai-Light.ttf
+%%FONTSDIR%%/NotoSerifThai-Medium.ttf
+%%FONTSDIR%%/NotoSerifThai-Regular.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiBold.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensed.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedBlack.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedBold.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedExtraBold.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedExtraLight.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedLight.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedMedium.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedSemiBold.ttf
+%%FONTSDIR%%/NotoSerifThai-SemiCondensedThin.ttf
+%%FONTSDIR%%/NotoSerifThai-Thin.ttf