From patchwork Tue Feb 5 09:35:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6/8] liberation-fonts: use the new fontcache.bbclass Date: Tue, 05 Feb 2013 09:35:00 -0000 From: Laurentiu Palcu X-Patchwork-Id: 44069 Message-Id: <79697b5de00846a83d02e244a7ed60c4e16557d6.1360055640.git.laurentiu.palcu@intel.com> To: openembedded-core@lists.openembedded.org This will add the proper postinst/postrm scriptlets. [YOCTO #2599] Signed-off-by: Laurentiu Palcu --- .../ttf-fonts/liberation-fonts_1.04.bb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb index b0a8242..67e36e2 100644 --- a/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb +++ b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb @@ -9,10 +9,12 @@ SECTION = "x11/fonts" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" RDEPENDS_${PN} = "fontconfig-utils" -PR = "r2" +PR = "r3" PE = "1" -inherit allarch +inherit allarch fontcache + +FONT_PACKAGES = "${PN}" SRC_URI = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-${PV}.tar.gz \ file://30-liberation-aliases.conf" @@ -33,13 +35,5 @@ do_install () { install -m 0644 License.txt ${D}${datadir}/doc/${PN}/ } -pkg_postinst_${PN} () { -#!/bin/sh -if [ "x$D" != "x" ] ; then - exit 1 -fi -fc-cache -} - PACKAGES = "${PN}" FILES_${PN} += "${sysconfdir} ${datadir}"