blob: 24b53a13e40893333a0284137d2dfe7c00623d61 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001def get_minor_dir(v):
2 import re
Brad Bishop977dc1a2019-02-06 16:01:43 -05003 m = re.match(r"^([0-9]+)\.([0-9]+)", v)
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004 return "%s.%s" % (m.group(1), m.group(2))
5
6def get_real_name(n):
7 import re
Brad Bishop977dc1a2019-02-06 16:01:43 -05008 m = re.match(r"^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n)
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009 return "%s" % (m.group(1))
10
11VERMINOR = "${@get_minor_dir("${PV}")}"
12REALNAME = "${@get_real_name("${BPN}")}"
13
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014SRC_URI = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015S = "${WORKDIR}/${REALNAME}-${PV}"
16
Brad Bishop19323692019-04-05 15:28:33 -040017CLUTTERBASEBUILDCLASS ??= "autotools"
18inherit ${CLUTTERBASEBUILDCLASS} pkgconfig gtk-doc gettext