Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "An interpreter of object-oriented scripting language" |
| 2 | DESCRIPTION = "Ruby is an interpreted scripting language for quick \ |
| 3 | and easy object-oriented programming. It has many features to process \ |
| 4 | text files and to do system management tasks (as in Perl). \ |
| 5 | It is simple, straight-forward, and extensible. \ |
| 6 | " |
| 7 | HOMEPAGE = "http://www.ruby-lang.org/" |
| 8 | SECTION = "devel/ruby" |
Brad Bishop | 64c979e | 2019-11-04 13:55:29 -0500 | [diff] [blame] | 9 | LICENSE = "Ruby | BSD-2-Clause | BSD-3-Clause | GPLv2 | ISC | MIT" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=5b8c87559868796979806100db3f3805 \ |
| 11 | file://BSDL;md5=8b50bc6de8f586dc66790ba11d064d75 \ |
| 12 | file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 13 | file://LEGAL;md5=cfe5b0bc9f051b58c7e78db882ca5f9b \ |
| 14 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 16 | DEPENDS = "ruby-native zlib openssl libyaml gdbm readline libffi" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | DEPENDS:class-native = "openssl-native libyaml-native readline-native zlib-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |
| 19 | SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" |
| 20 | SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \ |
Brad Bishop | 64c979e | 2019-11-04 13:55:29 -0500 | [diff] [blame] | 21 | file://0001-extmk-fix-cross-compilation-of-external-gems.patch \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | file://0002-Obey-LDFLAGS-for-the-link-of-libruby.patch \ |
| 23 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 26 | inherit autotools ptest |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
| 28 | |
| 29 | # This snippet lets compiled extensions which rely on external libraries, |
| 30 | # such as zlib, compile properly. If we don't do this, then when extmk.rb |
| 31 | # runs, it uses the native libraries instead of the target libraries, and so |
| 32 | # none of the linking operations succeed -- which makes extconf.rb think |
| 33 | # that the libraries aren't available and hence that the extension can't be |
| 34 | # built. |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | do_configure:prepend() { |
Brad Bishop | 1d80a2e | 2019-11-15 16:35:03 -0500 | [diff] [blame] | 37 | sed -i "s#%%TARGET_CFLAGS%%#$CFLAGS#; s#%%TARGET_LDFLAGS%%#$LDFLAGS#" ${S}/common.mk |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 38 | rm -rf ${S}/ruby/ |
| 39 | } |