summaryrefslogtreecommitdiffstats
path: root/meta/classes/clutter.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/clutter.bbclass')
-rw-r--r--meta/classes/clutter.bbclass22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/classes/clutter.bbclass b/meta/classes/clutter.bbclass
new file mode 100644
index 0000000..167407d
--- /dev/null
+++ b/meta/classes/clutter.bbclass
@@ -0,0 +1,22 @@
1
2def get_minor_dir(v):
3 import re
4 m = re.match("^([0-9]+)\.([0-9]+)", v)
5 return "%s.%s" % (m.group(1), m.group(2))
6
7def get_real_name(n):
8 import re
9 m = re.match("^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n)
10 return "%s" % (m.group(1))
11
12VERMINOR = "${@get_minor_dir("${PV}")}"
13REALNAME = "${@get_real_name("${BPN}")}"
14
15CLUTTER_SRC_FTP = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive"
16
17CLUTTER_SRC_GIT = "git://git.gnome.org/${REALNAME}"
18
19SRC_URI = "${CLUTTER_SRC_FTP}"
20S = "${WORKDIR}/${REALNAME}-${PV}"
21
22inherit autotools pkgconfig gtk-doc gettext