make-rules/shared-macros.mk
changeset 7130 73b1ef197337
parent 7104 8f45af4c27d7
child 7245 934578b959f0
equal deleted inserted replaced
7129:6587d6b48782 7130:73b1ef197337
   512 # Use the ruby lib versions to represent the RUBY_VERSIONS that
   512 # Use the ruby lib versions to represent the RUBY_VERSIONS that
   513 # need to get built.  This is done because during package transformations
   513 # need to get built.  This is done because during package transformations
   514 # both the ruby version and the ruby library version are needed. 
   514 # both the ruby version and the ruby library version are needed. 
   515 RUBY_VERSIONS = $(RUBY_LIB_VERSION)
   515 RUBY_VERSIONS = $(RUBY_LIB_VERSION)
   516 
   516 
       
   517 # Transform Ruby scripts to call the supported
       
   518 # version-specific ruby; used in multiple *.mk files
       
   519 RUBY_SCRIPT_FIX_FUNC = \
       
   520     $(GNU_GREP) -Rl '^\#! */usr/bin/env ruby' | \
       
   521         /usr/bin/xargs -I\{\} $(GSED) -i -e \
       
   522         '1s%^\#! */usr/bin/env ruby%\#!/usr/ruby/$(RUBY_VERSION)/bin/ruby%' \
       
   523         \{\}
       
   524 
   517 PYTHON.2.7.VENDOR_PACKAGES.32 = /usr/lib/python2.7/vendor-packages
   525 PYTHON.2.7.VENDOR_PACKAGES.32 = /usr/lib/python2.7/vendor-packages
   518 PYTHON.2.7.VENDOR_PACKAGES.64 = /usr/lib/python2.7/vendor-packages/64
   526 PYTHON.2.7.VENDOR_PACKAGES.64 = /usr/lib/python2.7/vendor-packages/64
   519 PYTHON.2.7.VENDOR_PACKAGES = $(PYTHON.2.7.VENDOR_PACKAGES.$(BITS))
   527 PYTHON.2.7.VENDOR_PACKAGES = $(PYTHON.2.7.VENDOR_PACKAGES.$(BITS))
   520 
   528 
   521 PYTHON.3.4.VENDOR_PACKAGES.64 = /usr/lib/python3.4/vendor-packages/64
   529 PYTHON.3.4.VENDOR_PACKAGES.64 = /usr/lib/python3.4/vendor-packages/64