libgee: define common INC_PR and use it in all specific version recipes
authorSimon Busch <morphis@gravedo.de>
Wed, 13 Oct 2010 21:03:03 +0000 (21:03 +0000)
committerKhem Raj <raj.khem@gmail.com>
Thu, 14 Oct 2010 14:53:24 +0000 (07:53 -0700)
Until now there is now way to indicate that the libgee.inc common part of libgee has
changed - the PR is only defined in the specific version recipes. This adds the INC_PR var
to to the common libgee.inc and use it in the specific version recipes.
INC_PR is initial set to the highest value of both version 0.5.2 and 0.6.0.

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/libgee/libgee.inc
recipes/libgee/libgee_0.5.2.bb
recipes/libgee/libgee_0.6.0.bb

index 918f45b..5148386 100644 (file)
@@ -5,6 +5,7 @@ SECTION = "libs"
 DEPENDS = "glib-2.0 gobject-introspection"
 BBCLASSEXTEND = "native"
 LICENSE = "LGPL"
+INC_PR = "r4"
 PE = "1"
 
 inherit autotools vala
index 5c94620..223537d 100644 (file)
@@ -1,4 +1,6 @@
 require libgee.inc
+
+PR = "${INC_PR}.0"
 PE = "1"
 
 SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libgee/0.5/${BPN}-${PV}.tar.bz2"
index 41bfce1..9460e97 100644 (file)
@@ -1,6 +1,6 @@
 require libgee.inc
 PE = "1"
-PR = "r3"
+PR = "${INC_PR}.0"
 
 SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libgee/0.6/${BPN}-${PV}.tar.bz2"
 S = "${WORKDIR}/${BPN}-${PV}"