git: 917dc67be689 - main - x11-fonts/noto-sans-basic: Add noto-sans-basic 2.013

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

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

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

    x11-fonts/noto-sans-basic: Add noto-sans-basic 2.013
    
    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 basic fonts set of Noto Sans.
---
 x11-fonts/Makefile                  |  1 +
 x11-fonts/noto-sans-basic/Makefile  | 31 +++++++++++++++++++++++++++++++
 x11-fonts/noto-sans-basic/distinfo  |  3 +++
 x11-fonts/noto-sans-basic/pkg-descr | 12 ++++++++++++
 x11-fonts/noto-sans-basic/pkg-plist |  4 ++++
 5 files changed, 51 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index a22634c6ff6f..e875f15ca045 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -197,6 +197,7 @@
     SUBDIR += noto-naskh-arabic
     SUBDIR += noto-sans-arabic
     SUBDIR += noto-sans-armenian
+    SUBDIR += noto-sans-basic
     SUBDIR += noto-sans-hk
     SUBDIR += noto-sans-jp
     SUBDIR += noto-sans-kr
diff --git a/x11-fonts/noto-sans-basic/Makefile b/x11-fonts/noto-sans-basic/Makefile
new file mode 100644
index 000000000000..a0e3740079fb
--- /dev/null
+++ b/x11-fonts/noto-sans-basic/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	noto
+PORTVERSION=	2.013
+CATEGORIES=	x11-fonts
+MASTER_SITES=	https://github.com/notofonts/latin-greek-cyrillic/releases/download/NotoSans-v${PORTVERSION}/
+PKGNAMESUFFIX=	-sans-basic
+DISTNAME=	NotoSans-v${PORTVERSION}
+DIST_SUBDIR=	Noto
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Google Noto Sans (Basic)
+WWW=		https://fonts.google.com/noto \
+		https://notofonts.github.io/ \
+		https://github.com/notofonts/latin-greek-cyrillic
+
+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}/NotoSans/hinted/ttf/NotoSans-Bold.ttf ${STAGEDIR}${FONTSDIR}
+	${INSTALL_DATA} ${WRKSRC}/NotoSans/hinted/ttf/NotoSans-BoldItalic.ttf ${STAGEDIR}${FONTSDIR}
+	${INSTALL_DATA} ${WRKSRC}/NotoSans/hinted/ttf/NotoSans-Italic.ttf ${STAGEDIR}${FONTSDIR}
+	${INSTALL_DATA} ${WRKSRC}/NotoSans/hinted/ttf/NotoSans-Regular.ttf ${STAGEDIR}${FONTSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/noto-sans-basic/distinfo b/x11-fonts/noto-sans-basic/distinfo
new file mode 100644
index 000000000000..511be29dd377
--- /dev/null
+++ b/x11-fonts/noto-sans-basic/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1710676063
+SHA256 (Noto/NotoSans-v2.013.zip) = 9fd595dd701d7ea103a9ba8a9cfdcf0c35c5574ef754fecabe718eadad8bccde
+SIZE (Noto/NotoSans-v2.013.zip) = 124008613
diff --git a/x11-fonts/noto-sans-basic/pkg-descr b/x11-fonts/noto-sans-basic/pkg-descr
new file mode 100644
index 000000000000..5a4dbec946df
--- /dev/null
+++ b/x11-fonts/noto-sans-basic/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 basic fonts set of Noto Sans.
diff --git a/x11-fonts/noto-sans-basic/pkg-plist b/x11-fonts/noto-sans-basic/pkg-plist
new file mode 100644
index 000000000000..bb07f7e27079
--- /dev/null
+++ b/x11-fonts/noto-sans-basic/pkg-plist
@@ -0,0 +1,4 @@
+%%FONTSDIR%%/NotoSans-Bold.ttf
+%%FONTSDIR%%/NotoSans-BoldItalic.ttf
+%%FONTSDIR%%/NotoSans-Italic.ttf
+%%FONTSDIR%%/NotoSans-Regular.ttf