From 298ab6aa962b7c2a70a2e373ee8deee880fe1ab2 Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Fri, 9 May 2008 01:28:57 +0000 Subject: python: introduce MAJ_VER variable so that no further changes to a bb file are necessary even with major releases * applied to python-pygtk and python-gobject * gnome projects projects host every major release in a separate directory --- packages/python/python-pygtk_2.8.6.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/python/python-pygtk_2.8.6.bb') diff --git a/packages/python/python-pygtk_2.8.6.bb b/packages/python/python-pygtk_2.8.6.bb index 361737684c..9f602e7200 100644 --- a/packages/python/python-pygtk_2.8.6.bb +++ b/packages/python/python-pygtk_2.8.6.bb @@ -8,7 +8,8 @@ SRCNAME = "pygtk" LICENSE = "LGPL" PR = "r1" -SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.8/${SRCNAME}-${PV}.tar.bz2 \ +MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}" +SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/${MAJ_VER}/${SRCNAME}-${PV}.tar.bz2 \ file://acinclude.m4" S = "${WORKDIR}/${SRCNAME}-${PV}" -- cgit v1.2.3