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