Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-devtools / ruby / ruby.inc
1
2 SUMMARY = "An interpreter of object-oriented scripting language"
3 DESCRIPTION = "Ruby is an interpreted scripting language for quick \
4 and easy object-oriented programming. It has many features to process \
5 text files and to do system management tasks (as in Perl). \
6 It is simple, straight-forward, and extensible. \
7 "
8 HOMEPAGE = "http://www.ruby-lang.org/"
9 SECTION = "devel/ruby"
10 LICENSE = "Ruby | BSD | GPLv2"
11 LIC_FILES_CHKSUM = "\
12     file://COPYING;md5=837b32593517ae48b9c3b5c87a5d288c \
13     file://BSDL;md5=19aaf65c88a40b508d17ae4be539c4b5 \
14     file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
15     file://LEGAL;md5=3ce1fae39fe573b818c0af162bce6579 \
16 "
17
18 DEPENDS = "ruby-native zlib openssl tcl libyaml gdbm readline libffi libnsl2"
19 DEPENDS_class-native = "zlib-native openssl-native libyaml-native readline-native libnsl2"
20
21 SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}"
22 SRC_URI = " \
23         http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.gz \
24         file://0002-Obey-LDFLAGS-for-the-link-of-libruby.patch \
25            "
26 # file://0002-Obey-LDFLAGS-for-the-link-of-libruby.patch 
27 # file://extmk.patch 
28 UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/"
29
30 inherit autotools ptest
31
32
33 # This snippet lets compiled extensions which rely on external libraries,
34 # such as zlib, compile properly.  If we don't do this, then when extmk.rb
35 # runs, it uses the native libraries instead of the target libraries, and so
36 # none of the linking operations succeed -- which makes extconf.rb think
37 # that the libraries aren't available and hence that the extension can't be
38 # built.
39
40 do_configure_prepend() {
41     sed -i "s#%%TARGET_CFLAGS%%#$TARGET_CFLAGS#; s#%%TARGET_LDFLAGS%%#$TARGET_LDFLAGS#" ${S}/common.mk
42     rm -rf ${S}/ruby/
43 }