ruby: Move to using INC_PR and BBCLASSEXTEND
authorKhem Raj <raj.khem@gmail.com>
Mon, 22 Mar 2010 23:51:15 +0000 (16:51 -0700)
committerKhem Raj <raj.khem@gmail.com>
Mon, 22 Mar 2010 23:51:15 +0000 (16:51 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/ruby/ruby-native_1.8.7-p248.bb [deleted file]
recipes/ruby/ruby.inc
recipes/ruby/ruby_1.8.5.bb
recipes/ruby/ruby_1.8.7-p248.bb

diff --git a/recipes/ruby/ruby-native_1.8.7-p248.bb b/recipes/ruby/ruby-native_1.8.7-p248.bb
deleted file mode 100644 (file)
index a20e254..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-require ruby_${PV}.bb
-DEPENDS = ""
-inherit native
index 4fdfdca..c9bad79 100644 (file)
@@ -4,6 +4,8 @@ SECTION = "devel/ruby"
 PRIORITY = "optional"
 LICENSE = "GPL"
 
+INC_PR = "r1"
+
 SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
 SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \
            file://extmk_run.patch;patch=1 \
index 6260614..e1cc3bb 100644 (file)
@@ -1,7 +1,7 @@
 require ruby.inc
 DEPENDS = "ruby-native zlib openssl"
 
-PR = "r1"
+PR = "${INC_PR}.0"
 
 FILES_${PN}-dbg += "${libdir}/ruby/1.8/*/.debug \
                     ${libdir}/ruby/1.8/*/*/.debug"
index 827327b..ae660fb 100644 (file)
@@ -1,4 +1,5 @@
 require ruby.inc
+PR = "${INC_PR}.0"
 DEPENDS = "ruby-native zlib openssl"
 SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \
            file://extmk_run.patch;patch=1 \
@@ -6,4 +7,4 @@ SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \
 "
 FILES_${PN}-dbg += "${libdir}/ruby/1.8/*/.debug \
                     ${libdir}/ruby/1.8/*/*/.debug"
-
+BBCLASSEXTEND = "native"