[oe-commits] : add chinese font ttf-arphic-uming
OE GIT Trial
gittrial at amethyst.openembedded.net
Wed Sep 24 09:13:01 UTC 2008
Module: OE.dev
Branch: master
Commit: 4a7963904feacd414969d86142eaa4b5847edff3
URL: http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=4a7963904feacd414969d86142eaa4b5847edff3
Author: <mickeyl at openembedded.org>
Date: Wed Sep 24 08:57:21 2008 +0000
add chinese font ttf-arphic-uming
---
packages/ttf-fonts/ttf-arphic-uming_20080216.bb | 15 +++++++++++++++
packages/ttf-fonts/ttf.inc | 7 ++++++-
2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/packages/ttf-fonts/ttf-arphic-uming_20080216.bb b/packages/ttf-fonts/ttf-arphic-uming_20080216.bb
new file mode 100644
index 0000000..6c2da7b
--- /dev/null
+++ b/packages/ttf-fonts/ttf-arphic-uming_20080216.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "Unicode Mingti (printed) TrueType Font"
+HOMEPAGE = "http://www.freedesktop.org/wiki/Software/CJKUnifonts"
+LICENSE = "${PN}"
+SRC_DISTRIBUTE_LICENSES += "${PN}"
+RPROVIDES = "virtual/chinese-font"
+PR = "r0"
+
+SRC_URI = \
+"http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.${PV}.1.orig.tar.gz"
+S = "${WORKDIR}"
+
+require ttf.inc
+
+FILES_${PN} = "${datadir}"
+
diff --git a/packages/ttf-fonts/ttf.inc b/packages/ttf-fonts/ttf.inc
index 00363c5..98bd5b8 100644
--- a/packages/ttf-fonts/ttf.inc
+++ b/packages/ttf-fonts/ttf.inc
@@ -4,7 +4,12 @@ RRECOMMENDS += "font-update-common"
do_install() {
install -d ${D}${datadir}/fonts/truetype/
- install -m 0644 ${S}/*.ttf ${D}${datadir}/fonts/truetype/
+ if [ -e *.ttf ]; then
+ install -m 0644 *.ttf ${D}${datadir}/fonts/truetype/
+ fi
+ if [ -e *.ttc ]; then
+ install -m 0644 *.ttc ${D}${datadir}/fonts/truetype/
+ fi
}
pkg_postinst_append() {
More information about the Openembedded-commits
mailing list