summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-10-20 12:22:20 +0200
committerPacho Ramos <pacho@gentoo.org>2018-10-20 13:38:54 +0200
commit8d785e66ad9d0391cec0dbd00fcfa1a95ef795b9 (patch)
treeefe94c45cb77ef5a07b887c9d584df9c79504037 /media-fonts/noto-cjk
parentmedia-fonts/noto: Version bump (diff)
downloadgentoo-8d785e66ad9d0391cec0dbd00fcfa1a95ef795b9.tar.gz
gentoo-8d785e66ad9d0391cec0dbd00fcfa1a95ef795b9.tar.bz2
gentoo-8d785e66ad9d0391cec0dbd00fcfa1a95ef795b9.zip
media-fonts/noto-cjk: Version bump
Closes: https://bugs.gentoo.org/616974 Signed-off-by: Pacho Ramos <pacho@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'media-fonts/noto-cjk')
-rw-r--r--media-fonts/noto-cjk/Manifest1
-rw-r--r--media-fonts/noto-cjk/files/70-noto-cjk.conf147
-rw-r--r--media-fonts/noto-cjk/noto-cjk-20170602.ebuild27
3 files changed, 175 insertions, 0 deletions
diff --git a/media-fonts/noto-cjk/Manifest b/media-fonts/noto-cjk/Manifest
index b9b29f2283c2..fdc0caa2f069 100644
--- a/media-fonts/noto-cjk/Manifest
+++ b/media-fonts/noto-cjk/Manifest
@@ -1 +1,2 @@
DIST noto-cjk-20150615.tar.xz 390518224 BLAKE2B 273018f6d0792ae90bc0d9f44a43f300a7fbd2ca2cbdbf71af911e1cfc0d4f0bb30b5d1f2b15d9bf4df279266921d46987f166dd4559ea15e747db7a22494145 SHA512 738bd840d14c3fc3665b9c6e50b1b2d5981ccdc5e660a6498b4611b8019208f0880df062741d9dec8bdcd54234eed46655e1c739cf872d9dfa5fa0523954a7d3
+DIST noto-cjk-20170602.tar.gz 1667938394 BLAKE2B 51ed7c48bccef0dff75ddc5ec108b61f0f5ceedc41608919dc1071a2308f96c3d2883af932935c32db6dd017e067079d45776eb865200560f2f9c6b89e57dd8c SHA512 861431e1eb0c21b8b7b03f9a97ae61c59a2e513314a24f0c50e2953daac3cba78fa418af32cf66ec100a26c88f5e07bd33eb3ed80b533d97a452fefa5a06b4dc
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 000000000000..c1052bb4c573
--- /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/noto-cjk-20170602.ebuild b/media-fonts/noto-cjk/noto-cjk-20170602.ebuild
new file mode 100644
index 000000000000..3e65ff1b5d76
--- /dev/null
+++ b/media-fonts/noto-cjk/noto-cjk-20170602.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit font
+
+DESCRIPTION="Google's CJK font family"
+HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlei18n/noto-cjk"
+
+COMMIT="32a5844539f2e348ed36b44e990f9b06d7fb89fe"
+SRC_URI="https://github.com/googlei18n/noto-cjk/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RESTRICT="binchecks strip"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+FONT_S="${S}"
+FONT_SUFFIX="ttc otf"
+FONT_CONF=(
+ # From ArchLinux
+ "${FILESDIR}/70-noto-cjk.conf"
+)