diff options
| author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
|---|---|---|
| committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
| commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
| tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/classes/clutter.bbclass | |
| download | poky-daisy-140929.tar.gz | |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/classes/clutter.bbclass')
| -rw-r--r-- | meta/classes/clutter.bbclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/classes/clutter.bbclass b/meta/classes/clutter.bbclass new file mode 100644 index 0000000000..167407dfdc --- /dev/null +++ b/meta/classes/clutter.bbclass | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | |||
| 2 | def 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 | |||
| 7 | def 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 | |||
| 12 | VERMINOR = "${@get_minor_dir("${PV}")}" | ||
| 13 | REALNAME = "${@get_real_name("${BPN}")}" | ||
| 14 | |||
| 15 | CLUTTER_SRC_FTP = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive" | ||
| 16 | |||
| 17 | CLUTTER_SRC_GIT = "git://git.gnome.org/${REALNAME}" | ||
| 18 | |||
| 19 | SRC_URI = "${CLUTTER_SRC_FTP}" | ||
| 20 | S = "${WORKDIR}/${REALNAME}-${PV}" | ||
| 21 | |||
| 22 | inherit autotools pkgconfig gtk-doc gettext | ||
