2014-11-25 16:54:17 +00:00
|
|
|
#
|
|
|
|
# This helper is for templates installing ruby modules.
|
|
|
|
#
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
local _vendorlibdir=$(ruby -e 'puts RbConfig::CONFIG["vendorlibdir"]')
|
|
|
|
|
2021-02-24 00:37:15 +00:00
|
|
|
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
|
|
|
|
_vendorlibdir="${_vendorlibdir//lib$XBPS_WORDSIZE/lib$XBPS_TARGET_WORDSIZE}"
|
|
|
|
fi
|
|
|
|
|
2015-07-29 08:24:53 +00:00
|
|
|
LANG=C ruby install.rb --destdir=${DESTDIR} --sitelibdir=${_vendorlibdir} ${make_install_args}
|
2014-11-25 16:54:17 +00:00
|
|
|
}
|