Skip to content

Commit

Permalink
ttf-fonts: call update-fonts only on target, not during do_rootfs
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information
shr-project authored and koenkooi committed May 10, 2012
1 parent 54efc1e commit 0e2593e
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LICENSE = "Arphic Public License"
LIC_FILES_CHKSUM = "file://README;md5=62be011094b7865ddc4d1a648444d31a"
SRC_DISTRIBUTE_LICENSES += "${PN}"
RPROVIDES_${PN} = "virtual-chinese-font"
PR = "r3"
PR = "r4"

SRC_URI = \
"http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.${PV}.1.orig.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-graphics/ttf-fonts/ttf-dejavu_2.23.bb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RDEPENDS_${PN}-sans-condensed = "${PN}-common"
RDEPENDS_${PN}-serif = "${PN}-common"
RDEPENDS_${PN}-serif-condensed = "${PN}-common"
RDEPENDS_${PN}-common = ""
PR = "r4"
PR = "r5"

SRC_URI = "${SOURCEFORGE_MIRROR}/dejavu/dejavu-fonts-ttf-${PV}.tar.bz2 \
file://30-dejavu-aliases.conf"
Expand Down
1 change: 1 addition & 0 deletions meta-oe/recipes-graphics/ttf-fonts/ttf-droid_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://README.txt;md5=83544262a86f1f1ec761e75897df92bc"
SRCREV = "21e6e2de1f0062f949fcc52d0b4559dfa3246e0e"
PV = "0.1+gitr${SRCPV}"
PR = "r1"

SRC_URI = "git://github.com/android/platform_frameworks_base.git;protocol=git;branch=master"

Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DESCRIPTION = "Gentium fonts - TTF Version"
HOMEPAGE = "http://scripts.sil.org/gentium"
LICENSE = "SIL Open Font License"
LICENSE_URL = "http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=OFL"
PR = "r4"
PR = "r5"

SRC_URI = "${DEBIAN_MIRROR}/main/t/ttf-gentium/ttf-gentium_${PV}.orig.tar.gz \
file://OFL.gz"
Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-graphics/ttf-fonts/ttf-hunkyfonts_0.3.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require ttf.inc
DESCRIPTION = "Hunky fonts - TTF Version"
HOMEPAGE = "http://sourceforge.net/projects/hunkyfonts"
LICENSE = "LGPL"
PR = "r4"
PR = "r5"

SRC_URI = "${SOURCEFORGE_MIRROR}/hunkyfonts/hunkyfonts-${PV}.tar.bz2"

Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-graphics/ttf-fonts/ttf-liberation_0.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
file://License.txt;md5=5b171c5100029d884fcea21d9a2b7543 \
"

PR = "r4"
PR = "r5"

SRC_URI = "http://fedorahosted.org/liberation-fonts/export/807b6dfd069b998cd9b4d3158da98817ef23c79d/F-9/liberation-fonts-ttf-3.tar.gz"
S = "${WORKDIR}/liberation-fonts-${PV}"
Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-graphics/ttf-fonts/ttf-mplus_027.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require ttf.inc
DESCRIPTION = "MPlus font - TTF Edition"
HOMEPAGE = "http://dejavu.sourceforge.net/wiki/"
LICENSE = "${PN}"
PR = "r1"
PR = "r2"

SRC_URI = "http://osdn.dl.sourceforge.jp/mplus-fonts/6650/mplus-TESTFLIGHT-${PV}.tar.gz"
S = "${WORKDIR}/mplus-TESTFLIGHT-${PV}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LICENSE = "Public domain"
LIC_FILES_CHKSUM = "file://README;md5=97d739900be6e852830f55aa3c07d4a0"
SRC_DISTRIBUTE_LICENSES += "${PN}"
RPROVIDES_${PN} = "virtual-japanese-font"
PR = "r6"
PR = "r7"

SRC_URI = "http://osdn.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2"
S = "${WORKDIR}/sazanami-20040629"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require ttf.inc
DESCRIPTION = "Ubuntu Font Family - TTF Version"
HOMEPAGE = "http://font.ubuntu.com"
LICENSE = "UFL"
PR = "r1"
PR = "r2"

SRC_URI = "http://font.ubuntu.com/download/ubuntu-font-family-${PV}+ufl.zip"
SRC_URI[md5sum] = "2c3287ea72f81ce025095f7a6d68af28"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DESCRIPTION = "WenQuanYi Zen Hei - A Hei-Ti Style Chinese font"
AUTHOR = "Qianqian Fang and The WenQuanYi Project Contributors"
HOMEPAGE = "http://wqy.sourceforge.net/en/"
LICENSE = "GPLv2"
PR = "r1"
PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/wqy/wqy-zenhei-${PV}-0.tar.gz"
S = "${WORKDIR}/wqy-zenhei"
Expand Down
8 changes: 6 additions & 2 deletions meta-oe/recipes-graphics/ttf-fonts/ttf.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ do_install() {
}

pkg_postinst_append() {
update-fonts
if [ -z "$D" ]; then
update-fonts
fi
}

pkg_postrm_append() {
update-fonts
if [ -z "$D" ]; then
update-fonts
fi
}

inherit allarch

0 comments on commit 0e2593e

Please sign in to comment.