summaryrefslogtreecommitdiff
path: root/multitech/recipes/ruby/ruby_1.9.3-p392.bb
blob: 4d3f3f15b7dc8bf3d5bc2c8de2497e0c06b3a3b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require ruby.inc
PR = "${INC_PR}.0"

DEPENDS += "libyaml"

SRC_URI += "\
  file://ruby-1.9.3-socket-extconf-hardcode-wide-getaddr-info-test-outcome.patch \
  file://ruby-1.9.3-always-use-i386.patch \
  file://ruby-1.9.3-disable-versioned-paths.patch \
  file://ruby-1.9.3-fix-s390x-build.patch \
  file://ruby-1.9.3-rubygems-1.8.11-uninstaller.patch \
  file://ruby-1.9.3-bignum-test-fix.patch \
  file://ruby-1.9.3-custom-rubygems-location.patch \
  file://rubygems-1.8.11-binary-extensions.patch \
  file://ruby-1.9.3-mkmf-verbose.patch \
  file://ruby-1.9.3-install-cross.patch \
  file://ruby-1.9.3-Makefile-in.patch"

SRC_URI[md5sum] = "f689a7b61379f83cbbed3c7077d83859"
SRC_URI[sha256sum] = "8861ddadb2cd30fb30e42122741130d12f6543c3d62d05906cd41076db70975f"

EXTRA_OECONF = "\
  --enable-wide-getaddrinfo \
  --with-rubygemsdir=${datadir}/rubygems \
  --disable-versioned-paths \
  --disable-rpath \
  --enable-shared"

EXTRA_OEMAKE = " \
  LIBRUBYARG='-lruby-static'"

DLDFLAGS+='--hash-style=gnu'

do_install() {
	if [ ${PN} = "ruby" ]; then
		oe_runmake 'DESTDIR=${D}' install install-cross
	else
		oe_runmake 'DESTDIR=${D}' install
	fi
}

FILES_${PN} += "${datadir}/rubygems \
                ${datadir}/ri"

FILES_${PN}-dbg += "${libdir}/ruby/*/.debug \
                    ${libdir}/ruby/*/*/.debug \
                    ${libdir}/ruby/*/*/*/.debug"

BBCLASSEXTEND = "native"