[oe-commits] Rolf Leggewie : ruby: introduce SHRT_VER to follow recent restructuring of upstream FTP server

git version control git at git.openembedded.org
Fri Jun 19 05:04:04 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 036881b90919d04089d418067d076f391d82ea29
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=036881b90919d04089d418067d076f391d82ea29

Author: Rolf Leggewie <oe-devel at rolf.leggewie.biz>
Date:   Fri Jun 19 14:00:36 2009 +0900

ruby: introduce SHRT_VER to follow recent restructuring of upstream FTP server

* update SRC_URI and checksums.ini

---

 conf/checksums.ini    |    2 +-
 recipes/ruby/ruby.inc |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/conf/checksums.ini b/conf/checksums.ini
index 4f3a124..587590b 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -21174,7 +21174,7 @@ sha256=554456550ca6e792297d6d39367120af5b2bd6181d514a43faf4e2f565721908
 md5=dc0f37d933b0b6c713ad617e09441f3b
 sha256=257722380b39e84e700e9f2d2f6600ba724723f1ed59327bfce47a57d293eeee
 
-[ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz]
+[ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.5.tar.gz]
 md5=3fbb02294a8ca33d4684055adba5ed6f
 sha256=19590e972b80333e26a6514c34d976c2037138361481a16f27b75e5d33f33a58
 
diff --git a/recipes/ruby/ruby.inc b/recipes/ruby/ruby.inc
index 978bf4b..4fdfdca 100644
--- a/recipes/ruby/ruby.inc
+++ b/recipes/ruby/ruby.inc
@@ -4,7 +4,8 @@ SECTION = "devel/ruby"
 PRIORITY = "optional"
 LICENSE = "GPL"
 
-SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/ruby-${PV}.tar.gz \
+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 \
            file://openssl.patch;patch=1 \
            file://disable_wide_getaddrinfo_check.patch;patch=1"





More information about the Openembedded-commits mailing list