blob: 24b53a13e40893333a0284137d2dfe7c00623d61 [file] [log] [blame]
William A. Kennington IIIb95905d2021-06-02 12:40:56 -07001def get_minor_dir(v):
2 import re
3 m = re.match(r"^([0-9]+)\.([0-9]+)", v)
4 return "%s.%s" % (m.group(1), m.group(2))
5
6def get_real_name(n):
7 import re
8 m = re.match(r"^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n)
9 return "%s" % (m.group(1))
10
11VERMINOR = "${@get_minor_dir("${PV}")}"
12REALNAME = "${@get_real_name("${BPN}")}"
13
14SRC_URI = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive"
15S = "${WORKDIR}/${REALNAME}-${PV}"
16
17CLUTTERBASEBUILDCLASS ??= "autotools"
18inherit ${CLUTTERBASEBUILDCLASS} pkgconfig gtk-doc gettext