blob: f5cd04f97f713146242c5d91ac839664d581b260 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001
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
Brad Bishop004d4992018-10-02 23:54:45 +020017CLUTTER_SRC_GIT = "git://gitlab.gnome.org/GNOME/${REALNAME};protocol=https"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018
19SRC_URI = "${CLUTTER_SRC_FTP}"
20S = "${WORKDIR}/${REALNAME}-${PV}"
21
22inherit autotools pkgconfig gtk-doc gettext