components/ruby/ruby-18/Makefile
changeset 1567 b5493d203180
parent 1482 7a1f84fbc2d7
child 1584 7acd6f4409b8
equal deleted inserted replaced
1566:d1c87d1ecd13 1567:b5493d203180
    66 PROTO_RBCONFIG_FILE=$(PROTORUBYDIR)/lib/ruby/$(RUBY_VER)/$(MACH)-solaris$(SOLARIS_VERSION)/rbconfig.rb
    66 PROTO_RBCONFIG_FILE=$(PROTORUBYDIR)/lib/ruby/$(RUBY_VER)/$(MACH)-solaris$(SOLARIS_VERSION)/rbconfig.rb
    67 
    67 
    68 # these macros are used in the package manifest
    68 # these macros are used in the package manifest
    69 PKG_MACROS+=	RUBY_VER=$(RUBY_VER)
    69 PKG_MACROS+=	RUBY_VER=$(RUBY_VER)
    70 
    70 
       
    71 # patches to rubygems are in a separate directory from the ruby patches
       
    72 PATCH_DIR_1 = rubygems-patches
       
    73 PATCHES_1 = $(shell find $(PATCH_DIR_1) -type f -name $(PATCH_PATTERN) \
       
    74     2>/dev/null | sort)
       
    75 
    71 # Since configure.in is patched, we need to autoconf after the patch.
    76 # Since configure.in is patched, we need to autoconf after the patch.
    72 # Also, unpack the 2nd archive for rubygems.
    77 # Also, unpack the 2nd archive for rubygems.
    73 # Rubygems does not have patches, nor does it use configure nor make.
    78 # Rubygems has patches, but it does not use configure nor make.
    74 COMPONENT_PREP_ACTION = (cd $(@D) ; autoconf); \
    79 COMPONENT_PREP_ACTION = (cd $(@D) ; autoconf); \
    75 	$(RM) -r $(SOURCE_DIR_1); \
    80 	$(RM) -r $(SOURCE_DIR_1); \
    76 	$(UNPACK) $(UNPACK_ARGS) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1)
    81 	$(UNPACK) $(UNPACK_ARGS) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1); \
       
    82 	$(foreach patch,$(PATCHES_1), \
       
    83 	$(GPATCH) -d $(SOURCE_DIR_1) $(GPATCH_FLAGS) < $(patch))
    77 
    84 
    78 # These modifications of ruby.1 must occur after ruby
    85 # These modifications of ruby.1 must occur after ruby
    79 # is installed, not before.  Although there are some other patches
    86 # is installed, not before.  Although there are some other patches
    80 # to ruby.1 that occur before, the ruby installation does some 
    87 # to ruby.1 that occur before, the ruby installation does some 
    81 # formatting of ruby.1 that won't occur if the below changes
    88 # formatting of ruby.1 that won't occur if the below changes