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.9.3 |
29 COMPONENT_VERSION= 1.9.3 |
30 COMPONENT_PATCH_VERSION= 484 |
30 COMPONENT_PATCH_VERSION= 551 |
31 COMPONENT_PROJECT_URL= http://www.ruby-lang.org/ |
31 COMPONENT_PROJECT_URL= http://www.ruby-lang.org/ |
32 COMPONENT_SRC= \ |
32 COMPONENT_SRC= \ |
33 $(COMPONENT_NAME)-$(COMPONENT_VERSION)-p$(COMPONENT_PATCH_VERSION) |
33 $(COMPONENT_NAME)-$(COMPONENT_VERSION)-p$(COMPONENT_PATCH_VERSION) |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
35 COMPONENT_ARCHIVE_HASH= \ |
35 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:d684bc3a5ba72cda9ef30039f783c0f8cdc325bae5c8738c7bf05577cbe8f31d |
36 sha256:bb5be55cd1f49c95bb05b6f587701376b53d310eb1bb7c76fbd445a1c75b51e8 |
37 COMPONENT_ARCHIVE_URL= \ |
37 COMPONENT_ARCHIVE_URL= \ |
38 http://ftp.ruby-lang.org/pub/ruby/1.9/$(COMPONENT_ARCHIVE) |
38 http://ftp.ruby-lang.org/pub/ruby/1.9/$(COMPONENT_ARCHIVE) |
39 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION) |
39 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION) |
40 COMPONENT_BUGDB= utility/ruby |
40 COMPONENT_BUGDB= utility/ruby |
41 |
41 |
42 TPNO= 15969 |
42 TPNO= 20807 |
43 |
43 |
44 include $(WS_MAKE_RULES)/prep.mk |
44 include $(WS_MAKE_RULES)/prep.mk |
45 include $(WS_MAKE_RULES)/ips.mk |
45 include $(WS_MAKE_RULES)/ips.mk |
46 include $(WS_MAKE_RULES)/configure.mk |
46 include $(WS_MAKE_RULES)/configure.mk |
47 |
47 |
125 CONFIGURE_OPTIONS += --enable-rpath |
125 CONFIGURE_OPTIONS += --enable-rpath |
126 # Don't need docs for ruby C source files |
126 # Don't need docs for ruby C source files |
127 CONFIGURE_OPTIONS += --disable-install-capi |
127 CONFIGURE_OPTIONS += --disable-install-capi |
128 CONFIGURE_OPTIONS += --disable-option-checking |
128 CONFIGURE_OPTIONS += --disable-option-checking |
129 CONFIGURE_OPTIONS += --with-openssl |
129 CONFIGURE_OPTIONS += --with-openssl |
|
130 # If Ruby is configured with __builtin_setjmp, may cause |
|
131 # problems with gems compiled with gcc. Studio compiler doesn't |
|
132 # report an error for __builtin_setjmp, but gcc would. |
|
133 CONFIGURE_OPTIONS += --with-setjmp-type=_setjmp |
130 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
134 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
131 |
135 |
132 # fiddle.so (ext/fiddle) links to libffi, which does not define |
136 # fiddle.so (ext/fiddle) links to libffi, which does not define |
133 # ffi_raw_size(), although its prototype is in libffi's |
137 # ffi_raw_size(), although its prototype is in libffi's |
134 # /usr/lib/libffi-3.0/include/ffi.h header file. |
138 # /usr/lib/libffi-3.0/include/ffi.h header file. |
142 ASLR_MODE = $(ASLR_DISABLE) |
146 ASLR_MODE = $(ASLR_DISABLE) |
143 |
147 |
144 CLEAN_PATHS += Solaris/gem.1 Solaris/rbconfig.sedscript.mod \ |
148 CLEAN_PATHS += Solaris/gem.1 Solaris/rbconfig.sedscript.mod \ |
145 Solaris/ruby.1.sedscript.mod |
149 Solaris/ruby.1.sedscript.mod |
146 |
150 |
|
151 # This set of tests goes through thousands of entries in the passwd |
|
152 # and group table, taking hours to run; move it aside so we skip it. |
|
153 # There may also be spurious errors if group memberships are modified |
|
154 # during testing. |
|
155 COMPONENT_PRE_TEST_ACTION += \ |
|
156 ( if test -e $(SOURCE_DIR)/test/etc/test_etc.rb ; then \ |
|
157 $(MV) $(SOURCE_DIR)/test/etc/test_etc.rb \ |
|
158 $(SOURCE_DIR)/test/etc/test_etc.rb-save ; fi ) |
|
159 |
147 # common targets |
160 # common targets |
|
161 |
|
162 configure: $(CONFIGURE_64) |
148 |
163 |
149 build: $(BUILD_64) |
164 build: $(BUILD_64) |
150 |
165 |
151 install: build $(INSTALL_64) |
166 install: build $(INSTALL_64) |
152 |
167 |