18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= ruby |
28 COMPONENT_NAME= ruby |
29 COMPONENT_VERSION= 1.8.7 |
29 COMPONENT_VERSION= 1.8.7 |
30 COMPONENT_PATCH_VERSION= 357 |
30 COMPONENT_PATCH_VERSION= 374 |
31 COMPONENT_PROJECT_URL= http://www.ruby-lang.org/ |
31 COMPONENT_PROJECT_URL= http://www.ruby-lang.org/ |
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-p$(COMPONENT_PATCH_VERSION) |
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-p$(COMPONENT_PATCH_VERSION) |
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
34 COMPONENT_ARCHIVE_HASH= \ |
34 COMPONENT_ARCHIVE_HASH= \ |
35 sha256:5c64b63a597b4cb545887364e1fd1e0601a7aeb545e576e74a6d8e88a2765a37 |
35 sha256:b4e34703137f7bfb8761c4ea474f7438d6ccf440b3d35f39cc5e4d4e239c07e3 |
36 COMPONENT_ARCHIVE_URL= http://ftp.ruby-lang.org/pub/ruby/1.8/$(COMPONENT_ARCHIVE) |
36 COMPONENT_ARCHIVE_URL= http://ftp.ruby-lang.org/pub/ruby/1.8/$(COMPONENT_ARCHIVE) |
37 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION) |
37 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION) |
38 |
38 |
39 # rubygems |
39 # rubygems |
40 COMPONENT_SRC_1= rubygems-1.3.5 |
40 COMPONENT_SRC_1= rubygems-1.3.5 |
116 |
116 |
117 # don't use LD_Z_IGNORE: causes ruby linker problems with |
117 # don't use LD_Z_IGNORE: causes ruby linker problems with |
118 # unreferenced symbol tgetent in libreadline, similar to CR #6919344 |
118 # unreferenced symbol tgetent in libreadline, similar to CR #6919344 |
119 LD_Z_IGNORE= |
119 LD_Z_IGNORE= |
120 |
120 |
|
121 # Several of the drb tests will leave stray ruby processes behind; |
|
122 # move these tests aside so they won't be run by the test target. |
|
123 # They aren't needed by the build or packages, so we keep them |
|
124 # renamed. |
|
125 COMPONENT_PRE_TEST_ACTION += \ |
|
126 if [ -e $(SOURCE_DIR)/test/drb/test_drbssl.rb ]; then \ |
|
127 $(MV) $(SOURCE_DIR)/test/drb/test_drbssl.rb $(SOURCE_DIR)/test/drb/test_drbssl.rb-save; \ |
|
128 fi |
|
129 |
121 CONFIGURE_PREFIX = $(USRDIR)/$(COMPONENT_NAME)/$(RUBY_VER) |
130 CONFIGURE_PREFIX = $(USRDIR)/$(COMPONENT_NAME)/$(RUBY_VER) |
122 CONFIGURE_OPTIONS += $(DTRACE_FLAG) |
131 CONFIGURE_OPTIONS += $(DTRACE_FLAG) |
123 CONFIGURE_OPTIONS += --enable-shared |
132 CONFIGURE_OPTIONS += --enable-shared |
124 CONFIGURE_OPTIONS += --enable-install-doc |
133 CONFIGURE_OPTIONS += --enable-install-doc |
125 CONFIGURE_OPTIONS += --disable-option-checking |
134 CONFIGURE_OPTIONS += --disable-option-checking |