summaryrefslogtreecommitdiff
path: root/media-fonts/opendesktop-fonts
diff options
context:
space:
mode:
Diffstat (limited to 'media-fonts/opendesktop-fonts')
-rw-r--r--media-fonts/opendesktop-fonts/Manifest2
-rw-r--r--media-fonts/opendesktop-fonts/files/opendesktop-fonts-1.4.2-multivalue.patch190
-rw-r--r--media-fonts/opendesktop-fonts/opendesktop-fonts-1.4.2-r1.ebuild27
3 files changed, 219 insertions, 0 deletions
diff --git a/media-fonts/opendesktop-fonts/Manifest b/media-fonts/opendesktop-fonts/Manifest
index 903bf6657fc3..baa28538399e 100644
--- a/media-fonts/opendesktop-fonts/Manifest
+++ b/media-fonts/opendesktop-fonts/Manifest
@@ -1,3 +1,5 @@
+AUX opendesktop-fonts-1.4.2-multivalue.patch 5022 BLAKE2B 71ab1c289670854ed2c9649dfd338b04dfa21c4fdb9344d58f245c1bd1825765fb9ea41025b5ec31475e032362149e3f5692af665a889a4b31a2a27e011adc8a SHA512 487053638d9fab66151a0dc15b8b721388c16812ec1fc1402c43ec2efdc2cbc2a8100a412d62f7cfd90afc8f5a5385a4a96a8eefbe9a0c8a9a3446f44ced9f61
DIST opendesktop-fonts-1.4.2.tar.gz 22246044 BLAKE2B c00a55793278f900408b2958ed932e5a7cd4d7d1a7f01895ab13516f551cb0791bd1360a0978297a73ab3c57e2fa4f9f6fc5ac633296bda8f6125f0c0da432fe SHA512 09a5d8a8357f88716c68eb70ca1464c069645aeffe3aeef72a195f1e22e3baf260f655cddf7a8d8d2542c6a7420b61206b11d887af162277da84899a67662b50
+EBUILD opendesktop-fonts-1.4.2-r1.ebuild 709 BLAKE2B 7e22d04246cf4c52b32c8a39103ca2596d1f1888b06f5335015deab98336d6065a0234f5064699a6bc93c800490fc7a2eb67a871e77c12d40f68118053c6716c SHA512 4a91b6552139e12ca8365fea91fe644493e99253f0990e44fc23d63bafd61e680fabb0e29f85ef31de16b9ba7af270213c4334e4552eb30548035c21632b132c
EBUILD opendesktop-fonts-1.4.2.ebuild 635 BLAKE2B b8d657a55572f5513a93fbcea2588155a8fa85d64fc84b7dcf36bca16b132d1fc3fb14bd929f52b6b1e4fca3c91f15f1eadad0c131b4d2e6842340092b39d123 SHA512 7954c985bd7d8ffaa7c41cfccf16300b71517bd20383b9f4359d19ce80466de1eaf1745330465157074d38f877fd21f14da6bab5627bdfc9b8c1b577bd7f3c33
MISC metadata.xml 325 BLAKE2B 23152e65f27b271d7bf65bdc6441a3ed2788f95efd9b59a463054c74e39f57e0be4124a52c1d34fde0fcbea3cba763740dfb745201bb4bf06db310b3bc822c44 SHA512 da7a53ea557206d262ea9596322cee71cf5a5f433b8c96a353305b343000cb782ccc7f73197786cb7b1664b3cc7d85dbf84670f4d4dbcf3f57d428d4dae5d0b4
diff --git a/media-fonts/opendesktop-fonts/files/opendesktop-fonts-1.4.2-multivalue.patch b/media-fonts/opendesktop-fonts/files/opendesktop-fonts-1.4.2-multivalue.patch
new file mode 100644
index 000000000000..8aa561cd1074
--- /dev/null
+++ b/media-fonts/opendesktop-fonts/files/opendesktop-fonts-1.4.2-multivalue.patch
@@ -0,0 +1,190 @@
+Fixup alias & test blocks in fontconfig definition.
+
+Fixes: https://bugs.gentoo.org/671790
+Partial-Credit: <code@edoceo.com>
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+See-Also: https://cromwell-intl.com/open-source/font-config-warnings.html
+See-Also: https://cixtor.com/blog/fontconfig-warning
+
+--- opendesktop-fonts-1.4.2/69-odofonts.conf 2007-09-10 02:09:37.000000000 -0700
++++ opendesktop-fonts-1.4.2/69-odofonts.conf 2019-02-23 14:03:02.280680514 -0800
+@@ -1,38 +1,104 @@
+ <?xml version="1.0"?>
+ <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+ <fontconfig>
++<!-- serif group -->
+ <alias>
+ <family>文鼎PL新宋</family>
++ <default><family>serif</family></default>
++</alias>
++<alias>
+ <family>AR PL New Sung</family>
++ <default><family>serif</family></default>
++</alias>
++<alias>
+ <family>新細明體</family>
++ <default><family>serif</family></default>
++</alias>
++<alias>
+ <family>PMingLiU</family>
++ <default><family>serif</family></default>
++</alias>
++<alias>
+ <family>宋体</family>
++ <default><family>serif</family></default>
++</alias>
++<alias>
+ <family>SimSun</family>
++ <default><family>serif</family></default>
++</alias>
++<alias>
+ <family>文鼎PL新宋 ExtB</family>
++ <default><family>serif</family></default>
++</alias>
++<alias>
+ <family>AR PL New Sung ExtB</family>
+ <default><family>serif</family></default>
+ </alias>
+
++<!-- sans-serif group -->
+ <alias>
+ <family>文鼎PL新宋</family>
++ <default><family>sans-serif</family></default>
++</alias>
++<alias>
+ <family>AR PL New Sung</family>
++ <default><family>sans-serif</family></default>
++</alias>
++<alias>
+ <family>新細明體</family>
++ <default><family>sans-serif</family></default>
++</alias>
++<alias>
+ <family>PMingLiU</family>
++ <default><family>sans-serif</family></default>
++</alias>
++<alias>
+ <family>宋体</family>
++ <default><family>sans-serif</family></default>
++</alias>
++<alias>
+ <family>SimSun</family>
++ <default><family>sans-serif</family></default>
++</alias>
++<alias>
+ <family>文鼎PL新宋 ExtB</family>
++ <default><family>sans-serif</family></default>
++</alias>
++<alias>
+ <family>AR PL New Sung ExtB</family>
+ <default><family>sans-serif</family></default>
+ </alias>
+
++<!-- monospace group -->
+ <alias>
+ <family>文鼎PL新宋 Mono</family>
++ <default><family>monospace</family></default>
++</alias>
++<alias>
+ <family>AR PL New Sung Mono</family>
++ <default><family>monospace</family></default>
++</alias>
++<alias>
+ <family>細明體</family>
++ <default><family>monospace</family></default>
++</alias>
++<alias>
+ <family>MingLiU</family>
++ <default><family>monospace</family></default>
++</alias>
++<alias>
+ <family>新宋体</family>
++ <default><family>monospace</family></default>
++</alias>
++<alias>
+ <family>NSimSun</family>
++ <default><family>monospace</family></default>
++</alias>
++<alias>
+ <family>文鼎PL新宋 ExtB</family>
++ <default><family>monospace</family></default>
++</alias>
++<alias>
+ <family>AR PL New Sung ExtB</family>
+ <default><family>monospace</family></default>
+ </alias>
+@@ -82,12 +148,26 @@
+ <match target="font">
+ <test name="family" compare="eq">
+ <string>文鼎PL新宋</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>AR PL New Sung</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>新細明體</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>PMingLiU</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>宋体</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>SimSun</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>文鼎PL新宋 ExtB</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>AR PL New Sung ExtB</string>
+ </test>
+ <edit name="embeddedbitmap">
+@@ -98,10 +178,20 @@
+ <match target="font">
+ <test name="family" compare="eq">
+ <string>文鼎PL新宋 Mono</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>AR PL New Sung Mono</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>細明體</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>MingLiU</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>新宋体</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>NSimSun</string>
+ </test>
+ <edit name="globaladvance">
+@@ -115,12 +205,26 @@
+ <match target="font">
+ <test name="family" compare="eq">
+ <string>文鼎PL新中楷</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>AR PL New Kai</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>標楷體</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>DFKai-SB</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>楷体</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>SimKai</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>文鼎PL新中楷 ExtB</string>
++ </test>
++ <test name="family" compare="eq">
+ <string>AR PL New Kai ExtB</string>
+ </test>
+ <edit name="globaladvance">
diff --git a/media-fonts/opendesktop-fonts/opendesktop-fonts-1.4.2-r1.ebuild b/media-fonts/opendesktop-fonts/opendesktop-fonts-1.4.2-r1.ebuild
new file mode 100644
index 000000000000..0c3aee0affb2
--- /dev/null
+++ b/media-fonts/opendesktop-fonts/opendesktop-fonts-1.4.2-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit font
+
+DESCRIPTION="Chinese TrueType Fonts"
+#HOMEPAGE="http://www.opendesktop.org.tw/"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="Arphic"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+FONT_SUFFIX="ttf ttc"
+FONT_S="${S}"
+FONT_CONF=(
+ "69-odofonts.conf"
+ "80-odofonts-original.conf"
+ "80-odofonts-simulate-MS-simplified-chinese.conf"
+ "80-odofonts-simulate-MS-triditional-chinese.conf"
+)
+DOCS="AUTHORS Changelog*"
+PATCHES=( "${FILESDIR}"/opendesktop-fonts-1.4.2-multivalue.patch )