summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/ttf-fonts/ttf.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/ttf-fonts/ttf.inc')
-rw-r--r--meta-oe/recipes-graphics/ttf-fonts/ttf.inc16
1 files changed, 1 insertions, 15 deletions
diff --git a/meta-oe/recipes-graphics/ttf-fonts/ttf.inc b/meta-oe/recipes-graphics/ttf-fonts/ttf.inc
index d48f692fe..70283be78 100644
--- a/meta-oe/recipes-graphics/ttf-fonts/ttf.inc
+++ b/meta-oe/recipes-graphics/ttf-fonts/ttf.inc
@@ -1,7 +1,5 @@
1DESCRIPTION ?= "TrueType font package ${PN}" 1DESCRIPTION ?= "TrueType font package ${PN}"
2SECTION = "fonts" 2SECTION = "fonts"
3# don't use RRECOMMENDS_${PN} here because sometimes each font is packaged to separate package and each one needs this dep to call update-fonts
4RRECOMMENDS += "font-update-common"
5 3
6# we don't need a compiler nor a c library for these fonts 4# we don't need a compiler nor a c library for these fonts
7INHIBIT_DEFAULT_DEPS = "1" 5INHIBIT_DEFAULT_DEPS = "1"
@@ -11,16 +9,4 @@ do_install() {
11 find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \; 9 find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \;
12} 10}
13 11
14pkg_postinst_append() { 12inherit allarch update-fonts
15 if [ -z "$D" ]; then
16 update-fonts
17 fi
18}
19
20pkg_postrm_append() {
21 if [ -z "$D" ]; then
22 update-fonts
23 fi
24}
25
26inherit allarch