ruby-module.sh (389B)
1# 2# This helper is for templates installing ruby modules. 3# 4 5do_install() { 6 local _vendorlibdir=$(ruby -e 'puts RbConfig::CONFIG["vendorlibdir"]') 7 8 if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then 9 _vendorlibdir="${_vendorlibdir//lib$XBPS_WORDSIZE/lib$XBPS_TARGET_WORDSIZE}" 10 fi 11 12 LANG=C ruby install.rb --destdir=${DESTDIR} --sitelibdir=${_vendorlibdir} ${make_install_args} 13}