diff options
Diffstat (limited to 'meta-oe/recipes-graphics/ttf-fonts/ttf.inc')
-rw-r--r-- | meta-oe/recipes-graphics/ttf-fonts/ttf.inc | 16 |
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 @@ | |||
1 | DESCRIPTION ?= "TrueType font package ${PN}" | 1 | DESCRIPTION ?= "TrueType font package ${PN}" |
2 | SECTION = "fonts" | 2 | SECTION = "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 | ||
4 | RRECOMMENDS += "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 |
7 | INHIBIT_DEFAULT_DEPS = "1" | 5 | INHIBIT_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 | ||
14 | pkg_postinst_append() { | 12 | inherit allarch update-fonts |
15 | if [ -z "$D" ]; then | ||
16 | update-fonts | ||
17 | fi | ||
18 | } | ||
19 | |||
20 | pkg_postrm_append() { | ||
21 | if [ -z "$D" ]; then | ||
22 | update-fonts | ||
23 | fi | ||
24 | } | ||
25 | |||
26 | inherit allarch | ||