diff options
Diffstat (limited to 'poky/meta/classes/clutter.bbclass')
-rw-r--r-- | poky/meta/classes/clutter.bbclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/poky/meta/classes/clutter.bbclass b/poky/meta/classes/clutter.bbclass new file mode 100644 index 000000000..167407dfd --- /dev/null +++ b/poky/meta/classes/clutter.bbclass @@ -0,0 +1,22 @@ + +def get_minor_dir(v): + import re + m = re.match("^([0-9]+)\.([0-9]+)", v) + return "%s.%s" % (m.group(1), m.group(2)) + +def get_real_name(n): + import re + m = re.match("^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n) + return "%s" % (m.group(1)) + +VERMINOR = "${@get_minor_dir("${PV}")}" +REALNAME = "${@get_real_name("${BPN}")}" + +CLUTTER_SRC_FTP = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive" + +CLUTTER_SRC_GIT = "git://git.gnome.org/${REALNAME}" + +SRC_URI = "${CLUTTER_SRC_FTP}" +S = "${WORKDIR}/${REALNAME}-${PV}" + +inherit autotools pkgconfig gtk-doc gettext |