X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/ed198efe08283cc4bb823e818daf2946fc4d9c45..8fcd0f1a727ffcc2788c19a77461fb260408ed47:/packages/ruby/build.sh diff --git a/packages/ruby/build.sh b/packages/ruby/build.sh index 07eb0502..4da90b72 100644 --- a/packages/ruby/build.sh +++ b/packages/ruby/build.sh @@ -1,11 +1,12 @@ TERMUX_PKG_HOMEPAGE=https://www.ruby-lang.org/ TERMUX_PKG_DESCRIPTION="Dynamic programming language with a focus on simplicity and productivity" _MAJOR_VERSION=2.4 -TERMUX_PKG_VERSION=${_MAJOR_VERSION}.0 +TERMUX_PKG_VERSION=${_MAJOR_VERSION}.2 +TERMUX_PKG_REVISION=2 +TERMUX_PKG_SHA256=748a8980d30141bd1a4124e11745bb105b436fb1890826e0d2b9ea31af27f735 TERMUX_PKG_SRCURL=https://cache.ruby-lang.org/pub/ruby/${_MAJOR_VERSION}/ruby-${TERMUX_PKG_VERSION}.tar.xz -TERMUX_PKG_SHA256=3a87fef45cba48b9322236be60c455c13fd4220184ce7287600361319bb63690 # libbffi is used by the fiddle extension module: -TERMUX_PKG_DEPENDS="libandroid-support, libffi, libgmp, readline, openssl, libutil" +TERMUX_PKG_DEPENDS="libandroid-support, libffi, libgmp, readline, openssl, libutil, libyaml" # Needed to fix compilation on android: TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_setgroups=no ac_cv_func_setresuid=no ac_cv_func_setreuid=no --enable-rubygems" # The gdbm module seems to be very little used: @@ -17,11 +18,6 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" rb_cv_type_deprecated=x" # getresuid(2) does not work on ChromeOS - https://github.com/termux/termux-app/issues/147: # TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_getresuid=no" -termux_step_pre_configure() { - export GEM_HOME=$TERMUX_PREFIX/var/lib/gems - mkdir -p $GEM_HOME -} - termux_step_make_install () { make install make uninstall # remove possible remains to get fresh timestamps @@ -36,9 +32,6 @@ termux_step_make_install () { perl -p -i -e 's/^.*CONFIG\["MKDIR_P"\].*$/ CONFIG["MKDIR_P"] = "mkdir -p"/' $RBCONFIG perl -p -i -e 's/^.*CONFIG\["EGREP"\].*$/ CONFIG["EGREP"] = "grep -E"/' $RBCONFIG perl -p -i -e 's/^.*CONFIG\["GREP"\].*$/ CONFIG["GREP"] = "grep"/' $RBCONFIG - - # Fix mention of $_SPECSFLAG in rbconfig: - perl -p -i -e "s|${_SPECSFLAG}||g" $RBCONFIG } termux_step_post_massage () {