mount.sh: Fixed some small errors
[openembedded.git] / classes / gnome.bbclass
1 def gnome_verdir(v):
2         import re
3         m = re.match("^([0-9]+)\.([0-9]+)", v)
4         return "%s.%s" % (m.group(1), m.group(2))
5
6 SECTION ?= "x11/gnome"
7 SRC_URI = "${GNOME_MIRROR}/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.bz2;name=archive"
8
9 DEPENDS += "gnome-common"
10
11 FILES_${PN} += "${datadir}/application-registry  \
12         ${datadir}/mime-info \
13         ${datadir}/mime/packages \      
14         ${datadir}/mime/application \
15         ${datadir}/gnome-2.0 \
16         ${datadir}/polkit* \
17 "
18
19 FILES_${PN}-doc += "${datadir}/devhelp"
20
21 inherit autotools gtk-icon-cache pkgconfig gconf mime
22
23 AUTOTOOLS_STAGE_PKGCONFIG = "1"
24
25 gnome_stage_includes() {
26         autotools_stage_includes
27 }
28
29 do_install_append() {
30         rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
31         rm -rf ${D}${localstatedir}/scrollkeeper/*
32         rm -f ${D}${datadir}/applications/*.cache
33 }
34