summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-23 23:10:48 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-23 23:10:48 +0800
commitb1d82e823b153e47331c938a00ee334a5b59fb78 (patch)
tree2eb4077db21a03e3022efffd6eb377306c155d3c
parentx11-fonts/noto-serif-hebrew: Add noto-serif-hebrew 2.003 (diff)
x11-fonts/noto-serif-khmer: Add noto-serif-khmer 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 Serif Khmer.
Diffstat (limited to '')
-rw-r--r--x11-fonts/Makefile1
-rw-r--r--x11-fonts/noto-serif-khmer/Makefile28
-rw-r--r--x11-fonts/noto-serif-khmer/distinfo3
-rw-r--r--x11-fonts/noto-serif-khmer/pkg-descr12
-rw-r--r--x11-fonts/noto-serif-khmer/pkg-plist36
5 files changed, 80 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index fe89fd642712..47526bcb7b28 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -237,6 +237,7 @@
SUBDIR += noto-serif-hebrew
SUBDIR += noto-serif-hk
SUBDIR += noto-serif-jp
+ SUBDIR += noto-serif-khmer
SUBDIR += noto-serif-kr
SUBDIR += noto-serif-sc
SUBDIR += noto-serif-tc
diff --git a/x11-fonts/noto-serif-khmer/Makefile b/x11-fonts/noto-serif-khmer/Makefile
new file mode 100644
index 000000000000..fcb4f57ef3e4
--- /dev/null
+++ b/x11-fonts/noto-serif-khmer/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= noto
+PORTVERSION= 2.004
+CATEGORIES= x11-fonts
+MASTER_SITES= https://github.com/notofonts/khmer/releases/download/NotoSerifKhmer-v${PORTVERSION}/
+PKGNAMESUFFIX= -serif-khmer
+DISTNAME= NotoSerifKhmer-v${PORTVERSION}
+DIST_SUBDIR= Noto
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Google Noto Serif Khmer
+WWW= https://fonts.google.com/noto \
+ https://notofonts.github.io/ \
+ https://github.com/notofonts/khmer
+
+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}/NotoSerifKhmer/hinted/ttf/*.ttf ${STAGEDIR}${FONTSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/noto-serif-khmer/distinfo b/x11-fonts/noto-serif-khmer/distinfo
new file mode 100644
index 000000000000..288ef32a3d70
--- /dev/null
+++ b/x11-fonts/noto-serif-khmer/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1710676115
+SHA256 (Noto/NotoSerifKhmer-v2.004.zip) = e1b7faaae544661f30308692f15c672c5052d6046052a2f0ce48005e50cf75d7
+SIZE (Noto/NotoSerifKhmer-v2.004.zip) = 11483055
diff --git a/x11-fonts/noto-serif-khmer/pkg-descr b/x11-fonts/noto-serif-khmer/pkg-descr
new file mode 100644
index 000000000000..2284ddd0e2c9
--- /dev/null
+++ b/x11-fonts/noto-serif-khmer/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 Khmer.
diff --git a/x11-fonts/noto-serif-khmer/pkg-plist b/x11-fonts/noto-serif-khmer/pkg-plist
new file mode 100644
index 000000000000..97221bcad4d4
--- /dev/null
+++ b/x11-fonts/noto-serif-khmer/pkg-plist
@@ -0,0 +1,36 @@
+%%FONTSDIR%%/NotoSerifKhmer-Black.ttf
+%%FONTSDIR%%/NotoSerifKhmer-Bold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-Condensed.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedBlack.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedExtraBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedExtraLight.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedLight.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedMedium.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedSemiBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-CondensedThin.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensed.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedBlack.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedExtraBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedExtraLight.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedLight.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedMedium.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedSemiBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraCondensedThin.ttf
+%%FONTSDIR%%/NotoSerifKhmer-ExtraLight.ttf
+%%FONTSDIR%%/NotoSerifKhmer-Light.ttf
+%%FONTSDIR%%/NotoSerifKhmer-Medium.ttf
+%%FONTSDIR%%/NotoSerifKhmer-Regular.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensed.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedBlack.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedExtraBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedExtraLight.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedLight.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedMedium.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedSemiBold.ttf
+%%FONTSDIR%%/NotoSerifKhmer-SemiCondensedThin.ttf
+%%FONTSDIR%%/NotoSerifKhmer-Thin.ttf