summaryrefslogtreecommitdiff
path: root/meta/classes/gnome.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/gnome.bbclass')
-rw-r--r--meta/classes/gnome.bbclass20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/classes/gnome.bbclass b/meta/classes/gnome.bbclass
new file mode 100644
index 000000000..8643989b7
--- /dev/null
+++ b/meta/classes/gnome.bbclass
@@ -0,0 +1,20 @@
+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}/${PN}/${@gnome_verdir("${PV}")}/${PN}-${PV}.tar.bz2"
+
+DEPENDS += "gnome-common"
+
+FILES_${PN} += "${datadir}/application-registry ${datadir}/mime-info \
+ ${datadir}/gnome-2.0"
+
+inherit autotools pkgconfig gconf
+
+EXTRA_AUTORECONF += "-I ${STAGING_DIR}/${HOST_SYS}/share/aclocal/gnome2-macros"
+
+gnome_stage_includes() {
+ autotools_stage_includes
+}