diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-05-18 15:29:56 +0200 |
---|---|---|
committer | Andreas Müller <schnitzeltony@googlemail.com> | 2012-09-18 15:53:59 +0200 |
commit | a2417b3b98bd6200e211c333a7044ccdb08dc515 (patch) | |
tree | 0f116f332b2210edc61128806d95f2d163e121d7 | |
parent | 4d234731b2770f8983f16ba22177ed022fe8eea9 (diff) | |
download | meta-openembedded-a2417b3b98bd6200e211c333a7044ccdb08dc515.tar.gz |
xfce.bbclass: change SRC_URI calculation
* grabbed from oe-core gnomebase.bbclass
* old calculation did not work for version numbers with multiple digits (4.10)
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
-rw-r--r-- | meta-xfce/classes/xfce.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-xfce/classes/xfce.bbclass b/meta-xfce/classes/xfce.bbclass index 2350c2703..f4ef55643 100644 --- a/meta-xfce/classes/xfce.bbclass +++ b/meta-xfce/classes/xfce.bbclass | |||
@@ -1,5 +1,10 @@ | |||
1 | def xfce_verdir(v): | ||
2 | import re | ||
3 | m = re.match("^([0-9]+)\.([0-9]+)", v) | ||
4 | return "%s.%s" % (m.group(1), m.group(2)) | ||
5 | |||
1 | HOMEPAGE = "http://www.xfce.org" | 6 | HOMEPAGE = "http://www.xfce.org" |
2 | SRC_URI = "http://archive.xfce.org/src/xfce/${BPN}/${@'${PV}'[0:3]}/${BPN}-${PV}.tar.bz2" | 7 | SRC_URI = "http://archive.xfce.org/src/xfce/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2" |
3 | 8 | ||
4 | inherit autotools gettext gtk-icon-cache pkgconfig | 9 | inherit autotools gettext gtk-icon-cache pkgconfig |
5 | 10 | ||