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 COMPONENT_BUGDB= utility/ruby |
38 COMPONENT_BUGDB= utility/ruby |
39 |
39 |
40 # rubygems |
40 # rubygems |
117 |
117 |
118 # don't use LD_Z_IGNORE: causes ruby linker problems with |
118 # don't use LD_Z_IGNORE: causes ruby linker problems with |
119 # unreferenced symbol tgetent in libreadline, similar to CR #6919344 |
119 # unreferenced symbol tgetent in libreadline, similar to CR #6919344 |
120 LD_Z_IGNORE= |
120 LD_Z_IGNORE= |
121 |
121 |
|
122 # Several of the drb tests will leave stray ruby processes behind; |
|
123 # move these tests aside so they won't be run by the test target. |
|
124 # They aren't needed by the build or packages, so we keep them |
|
125 # renamed. |
|
126 COMPONENT_PRE_TEST_ACTION += \ |
|
127 if [ -e $(SOURCE_DIR)/test/drb/test_drbssl.rb ]; then \ |
|
128 $(MV) $(SOURCE_DIR)/test/drb/test_drbssl.rb $(SOURCE_DIR)/test/drb/test_drbssl.rb-save; \ |
|
129 fi |
|
130 |
122 CONFIGURE_PREFIX = $(USRDIR)/$(COMPONENT_NAME)/$(RUBY_VER) |
131 CONFIGURE_PREFIX = $(USRDIR)/$(COMPONENT_NAME)/$(RUBY_VER) |
123 CONFIGURE_OPTIONS += $(DTRACE_FLAG) |
132 CONFIGURE_OPTIONS += $(DTRACE_FLAG) |
124 CONFIGURE_OPTIONS += --enable-shared |
133 CONFIGURE_OPTIONS += --enable-shared |
125 CONFIGURE_OPTIONS += --enable-install-doc |
134 CONFIGURE_OPTIONS += --enable-install-doc |
126 CONFIGURE_OPTIONS += --disable-option-checking |
135 CONFIGURE_OPTIONS += --disable-option-checking |