clearsilver: fix various build issues
[openembedded.git] / recipes / ruby / ruby.inc
blob4fdfdca976676de65af65481dd47876a5a6ccdab
1 DESCRIPTION = "Ruby is an interpreted scripting language \
2 for quick and easy object-oriented programming."
3 SECTION = "devel/ruby"
4 PRIORITY = "optional"
5 LICENSE = "GPL"
7 SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
8 SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \
9            file://extmk_run.patch;patch=1 \
10            file://openssl.patch;patch=1 \
11            file://disable_wide_getaddrinfo_check.patch;patch=1"
13 S = "${WORKDIR}/ruby-${PV}"
15 inherit autotools
17 # This snippet lets compiled extensions which rely on external libraries,
18 # such as zlib, compile properly.  If we don't do this, then when extmk.rb
19 # runs, it uses the native libraries instead of the target libraries, and so
20 # none of the linking operations succeed -- which makes extconf.rb think
21 # that the libraries aren't available and hence that the extension can't be
22 # built.
24 do_configure_prepend() {
25         sed -i "s#%%TARGET_CFLAGS%%#$TARGET_CFLAGS#; s#%%TARGET_LDFLAGS%%#$TARGET_LDFLAGS#" ${S}/common.mk
26         rm -rf ${S}/ruby/