mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
There are various escape characters in these stings which python warns about so use the correct regex markup for them. (From OE-Core rev: 252b69c9f2abe3258366c540f56b156ed63e5437) (From OE-Core rev: 778f33d40c7e2f4174cc99d25516e5db63d6f75b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
509 B
Plaintext
18 lines
509 B
Plaintext
def get_minor_dir(v):
|
|
import re
|
|
m = re.match(r"^([0-9]+)\.([0-9]+)", v)
|
|
return "%s.%s" % (m.group(1), m.group(2))
|
|
|
|
def get_real_name(n):
|
|
import re
|
|
m = re.match(r"^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n)
|
|
return "%s" % (m.group(1))
|
|
|
|
VERMINOR = "${@get_minor_dir("${PV}")}"
|
|
REALNAME = "${@get_real_name("${BPN}")}"
|
|
|
|
SRC_URI = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive"
|
|
S = "${WORKDIR}/${REALNAME}-${PV}"
|
|
|
|
inherit autotools pkgconfig gtk-doc gettext
|