summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-04-15 08:40:36 +0200
committerKoen Kooi <koen@openembedded.org>2010-04-15 09:38:31 +0200
commitafe441d2c653dff06855d5c8977018d65b87564c (patch)
tree4858ae25bc96251b04ad2dc5d20dc7ba127fc47a /classes
parentf2aac8bf86312fe5cf68b28f14552bca7f865714 (diff)
gnome: split out gnomebase.bbclass that doesn't have gconf and gmime depends
Diffstat (limited to 'classes')
-rw-r--r--classes/gnome.bbclass33
-rw-r--r--classes/gnomebase.bbclass30
-rw-r--r--classes/recipe_sanity.bbclass2
3 files changed, 32 insertions, 33 deletions
diff --git a/classes/gnome.bbclass b/classes/gnome.bbclass
index 57ff3672b2..d5fbe265bc 100644
--- a/classes/gnome.bbclass
+++ b/classes/gnome.bbclass
@@ -1,34 +1,3 @@
-def gnome_verdir(v):
- import re
- m = re.match("^([0-9]+)\.([0-9]+)", v)
- return "%s.%s" % (m.group(1), m.group(2))
+inherit gnomebase gtk-icon-cache gconf mime
-SECTION ?= "x11/gnome"
-SRC_URI = "${GNOME_MIRROR}/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.bz2;name=archive"
-
-DEPENDS += "gnome-common"
-
-FILES_${PN} += "${datadir}/application-registry \
- ${datadir}/mime-info \
- ${datadir}/mime/packages \
- ${datadir}/mime/application \
- ${datadir}/gnome-2.0 \
- ${datadir}/polkit* \
-"
-
-FILES_${PN}-doc += "${datadir}/devhelp"
-
-inherit autotools gtk-icon-cache pkgconfig gconf mime
-
-AUTOTOOLS_STAGE_PKGCONFIG = "1"
-
-gnome_stage_includes() {
- autotools_stage_includes
-}
-
-do_install_append() {
- rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
- rm -rf ${D}${localstatedir}/scrollkeeper/*
- rm -f ${D}${datadir}/applications/*.cache
-}
diff --git a/classes/gnomebase.bbclass b/classes/gnomebase.bbclass
new file mode 100644
index 0000000000..b50504f983
--- /dev/null
+++ b/classes/gnomebase.bbclass
@@ -0,0 +1,30 @@
+def gnome_verdir(v):
+ import re
+ m = re.match("^([0-9]+)\.([0-9]+)", v)
+ return "%s.%s" % (m.group(1), m.group(2))
+
+SECTION ?= "x11/gnome"
+SRC_URI = "${GNOME_MIRROR}/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.bz2;name=archive"
+
+DEPENDS += "gnome-common"
+
+FILES_${PN} += "${datadir}/application-registry \
+ ${datadir}/mime-info \
+ ${datadir}/mime/packages \
+ ${datadir}/mime/application \
+ ${datadir}/gnome-2.0 \
+ ${datadir}/polkit* \
+"
+
+FILES_${PN}-doc += "${datadir}/devhelp"
+
+inherit autotools pkgconfig
+
+AUTOTOOLS_STAGE_PKGCONFIG = "1"
+
+do_install_append() {
+ rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+ rm -rf ${D}${localstatedir}/scrollkeeper/*
+ rm -f ${D}${datadir}/applications/*.cache
+}
+
diff --git a/classes/recipe_sanity.bbclass b/classes/recipe_sanity.bbclass
index 127806e6da..daae4aed5b 100644
--- a/classes/recipe_sanity.bbclass
+++ b/classes/recipe_sanity.bbclass
@@ -51,7 +51,7 @@ def can_use_autotools_base(cfgdata, d):
if not bb.data.inherits_class("autotools", d):
return False
- for i in ["autoreconf"] + ["%s_do_configure" % cls for cls in ["gnome", "e", "autotools", "autotools_stage", "efl", "gpephone", "openmoko", "openmoko2", "xfce", "xlibs"]]:
+ for i in ["autoreconf"] + ["%s_do_configure" % cls for cls in ["gnomebase", "gnome", "e", "autotools", "autotools_stage", "efl", "gpephone", "openmoko", "openmoko2", "xfce", "xlibs"]]:
if cfg.find(i) != -1:
return False