Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | def get_minor_dir(v): |
| 2 | import re |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 3 | m = re.match(r"^([0-9]+)\.([0-9]+)", v) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | return "%s.%s" % (m.group(1), m.group(2)) |
| 5 | |
| 6 | def get_real_name(n): |
| 7 | import re |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame] | 8 | m = re.match(r"^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | return "%s" % (m.group(1)) |
| 10 | |
| 11 | VERMINOR = "${@get_minor_dir("${PV}")}" |
| 12 | REALNAME = "${@get_real_name("${BPN}")}" |
| 13 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | SRC_URI = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | S = "${WORKDIR}/${REALNAME}-${PV}" |
| 16 | |
| 17 | inherit autotools pkgconfig gtk-doc gettext |