Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
Brad Bishop | 004d499 | 2018-10-02 23:54:45 +0200 | [diff] [blame] | 17 | CLUTTER_SRC_GIT = "git://gitlab.gnome.org/GNOME/${REALNAME};protocol=https" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |
| 19 | SRC_URI = "${CLUTTER_SRC_FTP}" |
| 20 | S = "${WORKDIR}/${REALNAME}-${PV}" |
| 21 | |
| 22 | inherit autotools pkgconfig gtk-doc gettext |