diff options
Diffstat (limited to 'media-fonts')
-rw-r--r-- | media-fonts/noto-cjk/Manifest | 3 | ||||
-rw-r--r-- | media-fonts/noto-cjk/files/70-noto-cjk.conf | 147 | ||||
-rw-r--r-- | media-fonts/noto-cjk/metadata.xml | 7 | ||||
-rw-r--r-- | media-fonts/noto-cjk/noto-cjk-20230817.ebuild | 29 | ||||
-rw-r--r-- | media-fonts/noto-emoji/Manifest | 1 | ||||
-rw-r--r-- | media-fonts/noto-emoji/metadata.xml | 4 | ||||
-rw-r--r-- | media-fonts/noto-emoji/noto-emoji-20231130.ebuild | 26 | ||||
-rw-r--r-- | media-fonts/noto/Manifest | 4 | ||||
-rw-r--r-- | media-fonts/noto/files/66-noto-mono.conf | 16 | ||||
-rw-r--r-- | media-fonts/noto/files/66-noto-sans.conf | 16 | ||||
-rw-r--r-- | media-fonts/noto/files/66-noto-serif.conf | 16 | ||||
-rw-r--r-- | media-fonts/noto/metadata.xml | 4 | ||||
-rw-r--r-- | media-fonts/noto/noto-20231001.ebuild | 38 |
13 files changed, 311 insertions, 0 deletions
diff --git a/media-fonts/noto-cjk/Manifest b/media-fonts/noto-cjk/Manifest new file mode 100644 index 0000000..586ea66 --- /dev/null +++ b/media-fonts/noto-cjk/Manifest @@ -0,0 +1,3 @@ +DIST NotoSansCJK-VF-4efc595762d1f4b4fa504bccfe8e59de91fda063.otf.ttc 32682580 BLAKE2B c52d4edad19be495f48a7f7d5481a284645c3cd728fc810f945b49f630a24d41e442d4e1167519c35545c7ec29668d41e33a120d02b705cf220ef3029d2cf20c SHA512 b44200c0b8149004150cba40204af489b1275310f9b574727bebf13e4c3036a99447636a158af1b660a49049325cc1c803ea02b110fa1f58b666808b08dbfd52 +DIST NotoSansMonoCJK-VF-4efc595762d1f4b4fa504bccfe8e59de91fda063.otf.ttc 31908332 BLAKE2B 542face4ef7f0b9bfcd19ec637589c6a255a045d0fc19efebc84a567c561fa4c25c253bf4cf486cfb2db5c4e80bf69b196dff49a8fc2c20e80182aaef0cc7003 SHA512 840c83fd069c83f7475a12448dfb0bfc6689d5227a7e390e9b7de52b427632f5b1c85f53084d4bd2d53ec3e38d5629e0455242d89ac98fbaf3d0c24fe8ba723b +DIST NotoSerifCJK-VF-4efc595762d1f4b4fa504bccfe8e59de91fda063.otf.ttc 56820256 BLAKE2B 06dfc91de4de8fe87c35aed2a258ba04529c01a13d3498c05648891d8b23515f4cefe6d3989b5fa1da4d751d29ac57ff524c0c04a065b2e06b17612bdd7f8496 SHA512 87533362980d2447ca798d453999f0e919833e09fe5090bf7915471c40fa82dd653eac6162657240e3c542a6d69be04747966a96c05c59b4ebebfa54cd9769a6 diff --git a/media-fonts/noto-cjk/files/70-noto-cjk.conf b/media-fonts/noto-cjk/files/70-noto-cjk.conf new file mode 100644 index 0000000..c1052bb --- /dev/null +++ b/media-fonts/noto-cjk/files/70-noto-cjk.conf @@ -0,0 +1,147 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <match target="pattern"> + <test name="lang"> + <string>ja</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK JP</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ko</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK KR</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-cn</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK SC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-tw</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK TC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ja</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK JP</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ko</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK KR</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-cn</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK SC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-tw</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK TC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ja</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK JP</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ko</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK KR</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-cn</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK SC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-tw</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK TC</string> + </edit> + </match> +</fontconfig> diff --git a/media-fonts/noto-cjk/metadata.xml b/media-fonts/noto-cjk/metadata.xml new file mode 100644 index 0000000..e969c6a --- /dev/null +++ b/media-fonts/noto-cjk/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">googlefonts/noto-cjk</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-fonts/noto-cjk/noto-cjk-20230817.ebuild b/media-fonts/noto-cjk/noto-cjk-20230817.ebuild new file mode 100644 index 0000000..ec3451a --- /dev/null +++ b/media-fonts/noto-cjk/noto-cjk-20230817.ebuild @@ -0,0 +1,29 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Google's CJK font family" +HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-cjk" + +COMMIT="4efc595762d1f4b4fa504bccfe8e59de91fda063" +SRC_URI=" + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Sans/Variable/OTC/NotoSansCJK-VF.otf.ttc -> NotoSansCJK-VF-${COMMIT}.otf.ttc + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Sans/Variable/OTC/NotoSansMonoCJK-VF.otf.ttc -> NotoSansMonoCJK-VF-${COMMIT}.otf.ttc + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Serif/Variable/OTC/NotoSerifCJK-VF.otf.ttc -> NotoSerifCJK-VF-${COMMIT}.otf.ttc +" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +S="${DISTDIR}" + +src_install() { + insinto /usr/share/fonts/${PN} + newins NotoSansCJK-VF-${COMMIT}.otf.ttc NotoSansCJK-VF.otf.ttc + newins NotoSansMonoCJK-VF-${COMMIT}.otf.ttc NotoSansMonoCJK-VF.otf.ttc + newins NotoSerifCJK-VF-${COMMIT}.otf.ttc NotoSerifCJK-VF.otf.ttc + insinto /etc/fonts/conf.avail + doins "${FILESDIR}/70-noto-cjk.conf" # From ArchLinux +} diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest new file mode 100644 index 0000000..7cf18a2 --- /dev/null +++ b/media-fonts/noto-emoji/Manifest @@ -0,0 +1 @@ +DIST Noto-COLRv1-d79d23e6822e0f6e5731b114cbfb26b2a4e380da.ttf 4760384 BLAKE2B 7a3190ed3c5f46cd6b15027792d203fef8b863f6bd93cafc3f4a6d043263c58aeb0976ed2be03da227a8f9e308d033322b830734126b27da0fc33656f66d88c1 SHA512 b7fc0e7e4a4c68a02635f3efd0e88e2292a7e85d871e28efc7596da7a11ed1413703a38e7a7bc9c94d0d34a79a22db587547876e633a8391b00500bfc020dae6 diff --git a/media-fonts/noto-emoji/metadata.xml b/media-fonts/noto-emoji/metadata.xml new file mode 100644 index 0000000..7c900b1 --- /dev/null +++ b/media-fonts/noto-emoji/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> diff --git a/media-fonts/noto-emoji/noto-emoji-20231130.ebuild b/media-fonts/noto-emoji/noto-emoji-20231130.ebuild new file mode 100644 index 0000000..5c0337f --- /dev/null +++ b/media-fonts/noto-emoji/noto-emoji-20231130.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit font + +DESCRIPTION="Google Noto Emoji fonts" +HOMEPAGE="https://fonts.google.com/noto/specimen/Noto+Emoji" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +COMMIT="d79d23e6822e0f6e5731b114cbfb26b2a4e380da" +SRC_URI="https://github.com/googlefonts/noto-emoji/raw/${COMMIT}/fonts/Noto-COLRv1.ttf -> Noto-COLRv1-${COMMIT}.ttf" + +S="${WORKDIR}" + +FONT_SUFFIX="ttf" + +src_compile() { + for f in "${DISTDIR}"/*.ttf; do + fn=${f##*/} + cp "$f" "${fn/-$COMMIT}" + done +} diff --git a/media-fonts/noto/Manifest b/media-fonts/noto/Manifest new file mode 100644 index 0000000..7013cb3 --- /dev/null +++ b/media-fonts/noto/Manifest @@ -0,0 +1,4 @@ +DIST NotoSans-Italic[wdth,wght]-8bcb8b16321f305a4fca87dcbdef453e19dfc987.ttf 2675320 BLAKE2B 763c2562ae44c74cd3889c9e9b222f5e8136d33c2382f9e2a4710a73d2f4675e49e30912458234bd7d799f9774fb7493dcd37b11bb7e84afa8efe1c21f59f448 SHA512 6c0a5a85f8ef0cdebd8d64b221f6fbfe1aff85ad21d518e8bc0acb8c59e78de495d58b013df53a9a26f6bbb056ee3876692308cdc9cf2459c5719387ece0e044 +DIST NotoSans[wdth,wght]-8bcb8b16321f305a4fca87dcbdef453e19dfc987.ttf 2493792 BLAKE2B a2c8904c841d553d129cc57f7b35828034f9825c7fb63929f7bfbc889c7ecebc16009d5b39c5d79b69addf2226d10f2eb4979a479857130ee5dd3b9cdc2ff968 SHA512 a4ebea5ec83d554b35bca70ac22a077a19dd41cafe0a23622ade62a278b4a5a8d9f3b453945bc128f2a27469f8d287c669a77a8aad5d9cb93bde5a20e76dc5cc +DIST NotoSerif-Italic[wdth,wght]-8bcb8b16321f305a4fca87dcbdef453e19dfc987.ttf 2448496 BLAKE2B 853301c53445355fcd0be6f13aaebdc7cd5d5820dcd2972bb8521a94e9a4aa80f1e8dab264c202eeb41ba383968d94918869256883746c62dd1b2a043bc1ff80 SHA512 fa63eef7fa9f30bc9c48ed62038031bbbad3c9408aae6f9854fb93bceb18c8247f6c5de79dbbcf3a5082a188f37ec847452cf094a9411bacd2e747ebe24f630d +DIST NotoSerif[wdth,wght]-8bcb8b16321f305a4fca87dcbdef453e19dfc987.ttf 2420628 BLAKE2B f19080179e54567a92edb576143940be99734e841479ba2fdea4c65862e637a5f3216082ca426f18354aadb962955a83dd47e89d1a24b4a8433fa825b10388d0 SHA512 c419f4d2777cd4c97038b97190eb50274bb9c2f2e508d5bdac53eb218c0b31ff7c7b8d0f4111fbd41ba866671f7224e3374f06e5b9179e8f0ab42eae6a077a38 diff --git a/media-fonts/noto/files/66-noto-mono.conf b/media-fonts/noto/files/66-noto-mono.conf new file mode 100644 index 0000000..21d6c36 --- /dev/null +++ b/media-fonts/noto/files/66-noto-mono.conf @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <alias> + <family>monospace</family> + <prefer> + <family>Noto Sans Mono</family> + </prefer> + </alias> + <alias> + <family>Noto Sans Mono</family> + <default> + <family>monospace</family> + </default> + </alias> +</fontconfig> diff --git a/media-fonts/noto/files/66-noto-sans.conf b/media-fonts/noto/files/66-noto-sans.conf new file mode 100644 index 0000000..012aebe --- /dev/null +++ b/media-fonts/noto/files/66-noto-sans.conf @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <alias> + <family>sans-serif</family> + <prefer> + <family>Noto Sans</family> + </prefer> + </alias> + <alias> + <family>Noto Sans</family> + <default> + <family>sans-serif</family> + </default> + </alias> +</fontconfig> diff --git a/media-fonts/noto/files/66-noto-serif.conf b/media-fonts/noto/files/66-noto-serif.conf new file mode 100644 index 0000000..036baf7 --- /dev/null +++ b/media-fonts/noto/files/66-noto-serif.conf @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <alias> + <family>serif</family> + <prefer> + <family>Noto Serif</family> + </prefer> + </alias> + <alias> + <family>Noto Serif</family> + <default> + <family>serif</family> + </default> + </alias> +</fontconfig> diff --git a/media-fonts/noto/metadata.xml b/media-fonts/noto/metadata.xml new file mode 100644 index 0000000..7c900b1 --- /dev/null +++ b/media-fonts/noto/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> diff --git a/media-fonts/noto/noto-20231001.ebuild b/media-fonts/noto/noto-20231001.ebuild new file mode 100644 index 0000000..15104ae --- /dev/null +++ b/media-fonts/noto/noto-20231001.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit font + +DESCRIPTION="Google's font family that aims to support all the world's languages" +HOMEPAGE="https://fonts.google.com/noto https://github.com/notofonts/notofonts.github.io" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMIT="8bcb8b16321f305a4fca87dcbdef453e19dfc987" +SRC_URI=" + https://github.com/notofonts/notofonts.github.io/raw/${COMMIT}/fonts/NotoSans/googlefonts/variable/NotoSans%5Bwdth%2Cwght%5D.ttf -> NotoSans[wdth,wght]-${COMMIT}.ttf + https://github.com/notofonts/notofonts.github.io/raw/${COMMIT}/fonts/NotoSans/googlefonts/variable/NotoSans-Italic%5Bwdth%2Cwght%5D.ttf -> NotoSans-Italic[wdth,wght]-${COMMIT}.ttf + https://github.com/notofonts/notofonts.github.io/raw/${COMMIT}/fonts/NotoSerif/googlefonts/variable/NotoSerif%5Bwdth%2Cwght%5D.ttf -> NotoSerif[wdth,wght]-${COMMIT}.ttf + https://github.com/notofonts/notofonts.github.io/raw/${COMMIT}/fonts/NotoSerif/googlefonts/variable/NotoSerif-Italic%5Bwdth%2Cwght%5D.ttf -> NotoSerif-Italic[wdth,wght]-${COMMIT}.ttf +" + +S="${WORKDIR}" + +FONT_SUFFIX="ttf" +FONT_CONF=( + # From ArchLinux + "${FILESDIR}/66-noto-serif.conf" + "${FILESDIR}/66-noto-mono.conf" + "${FILESDIR}/66-noto-sans.conf" +) + +src_compile() { + for f in "${DISTDIR}"/*.ttf; do + fn=${f##*/} + cp "$f" "${fn/-$COMMIT}" + done +} |