default_pre_build &&
cd "$SOURCE_DIRECTORY" &&

local PYTHON=$(installed_version python) &&
local RUBY=$(installed_version ruby) &&

# fixed import for python plugin
sed -i "s:import r:import radare as r:" src/plug/hack/radare.py &&

# fixed python and ruby paths
sed -i "s:python2.5:python${PYTHON%.?}:g" Makefile.acr src/plug/hack/Makefile &&
sed -i "s:ruby1.8:ruby/${RUBY%.*}:g" Makefile.acr &&

patch -p0 < "$SPELL_DIRECTORY/patch-Makefile_acr.diff"
