package/wqy-zenhei: new package
authorKlaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Fri, 4 Dec 2020 14:17:37 +0000 (11:17 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 2 Jan 2021 17:39:21 +0000 (18:39 +0100)
Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/wqy-zenhei/Config.in [new file with mode: 0644]
package/wqy-zenhei/wqy-zenhei.hash [new file with mode: 0644]
package/wqy-zenhei/wqy-zenhei.mk [new file with mode: 0644]

index b19a12be5adbb8ec6e2716e379d47bea56b07d47..28f7d9e3cae1424bfc796fc34ce9a721dd2114f2 100644 (file)
@@ -1467,6 +1467,9 @@ F:        package/ramsmp/
 N:     Kieran Bingham <kieran.bingham@ideasonboard.com>
 F:     package/libcamera/
 
+N:     Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
+F:     package/wqy-zenhei/
+
 N:     Koen Martens <gmc@sonologic.nl>
 F:     package/capnproto/
 F:     package/linuxconsoletools/
index 2a516df4c6f89e4af2ff88afe879b04a5fc26f64..219dba1c9dbbfd4b7b9a5bbf69b70acdc0b14cc8 100644 (file)
@@ -241,6 +241,7 @@ comment "Fonts"
        source "package/ghostscript-fonts/Config.in"
        source "package/inconsolata/Config.in"
        source "package/liberation/Config.in"
+       source "package/wqy-zenhei/Config.in"
 
 comment "Icons"
        source "package/adwaita-icon-theme/Config.in"
diff --git a/package/wqy-zenhei/Config.in b/package/wqy-zenhei/Config.in
new file mode 100644 (file)
index 0000000..f9135e0
--- /dev/null
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_WQY_ZENHEI
+       bool "wqy-zenhei"
+       help
+         "WenQuanYi Zen Hei" is a Hei-Ti Style (sans-serif) Chinese
+         font capable of text formatting and on-screen display of
+         both simplified and traditional forms of Chinese Hanzi
+         glyphs (among many other languages). Both the proportional
+         "WenQuanYi Zen Hei", as well as the monospaced typeface
+         "WenQuanYi Zen Hei Mono" provides over 35,000 glyphs,
+         including over 21,000 Chinese Hanzi. This font provides full
+         coverage of GBK (CP936) charset, CJK Unified Ideographs, as
+         well as the code-points needed for zh_CN, zh_SG, zh_TW,
+         zh_HK, zh_MO, ja (Japanese) and ko (Korean) locales for
+         fontconfig.
+
+         https://sourceforge.net/projects/wqy/
diff --git a/package/wqy-zenhei/wqy-zenhei.hash b/package/wqy-zenhei/wqy-zenhei.hash
new file mode 100644 (file)
index 0000000..386f16e
--- /dev/null
@@ -0,0 +1,6 @@
+# from https://sourceforge.net/projects/wqy/files/wqy-zenhei/0.9.45%20%28Fighting-state%20RC1%29/
+md5  4c6c3f4e902dd5ee0a121e8c41d040bd  wqy-zenhei-0.9.45.tar.gz
+sha1  b86b65d3048ade868fcc89229cfac6baf80a3e54  wqy-zenhei-0.9.45.tar.gz
+# locally calculated
+sha256  e4b7e306475bf9427d1757578f0e4528930c84c44eaa3f167d4c42f110ee75d6  wqy-zenhei-0.9.45.tar.gz
+sha256  871c2a85e6bbf7bec65043820b706a265ed95d4e58c577fbb2c9f60c39c26ca7  COPYING
diff --git a/package/wqy-zenhei/wqy-zenhei.mk b/package/wqy-zenhei/wqy-zenhei.mk
new file mode 100644 (file)
index 0000000..88e60f3
--- /dev/null
@@ -0,0 +1,27 @@
+################################################################################
+#
+# wqy-zenhei
+#
+################################################################################
+
+WQY_ZENHEI_VERSION = 0.9.45
+WQY_ZENHEI_SITE = https://downloads.sourceforge.net/project/wqy/wqy-zenhei/$(WQY_ZENHEI_VERSION)%20%28Fighting-state%20RC1%29
+WQY_ZENHEI_LICENSE =  GPL-2.0-with-font-exception
+WQY_ZENHEI_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
+define WQY_ZENHEI_FONTCONFIG_CONF_INSTALL_CMDS
+       $(INSTALL) -D -m 0644 $(@D)/43-wqy-zenhei-sharp.conf \
+           $(TARGET_DIR)/usr/share/fontconfig/conf.avail/43-wqy-zenhei-sharp.conf
+       $(INSTALL) -D -m 0644 $(@D)/44-wqy-zenhei.conf \
+           $(TARGET_DIR)/usr/share/fontconfig/conf.avail/44-wqy-zenhei.conf
+endef
+endif
+
+define WQY_ZENHEI_INSTALL_TARGET_CMDS
+       $(INSTALL) -D -m 0644 $(@D)/wqy-zenhei.ttc \
+               $(TARGET_DIR)/usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc
+       $(WQY_ZENHEI_FONTCONFIG_CONF_INSTALL_CMDS)
+endef
+
+$(eval $(generic-package))