chiark / gitweb /
ruby: Ensure realine extension is built
authorFredrik Fornwall <fredrik@fornwall.net>
Tue, 10 May 2016 12:28:22 +0000 (08:28 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 10 May 2016 12:28:22 +0000 (08:28 -0400)
Fixes #257.

packages/ruby/build.sh

index 517d36cc00ec7110202eec1721ac2d3007b594cf..065fbe82ac7148fddd2079b3e709a7564dc3f474 100644 (file)
@@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.ruby-lang.org/
 TERMUX_PKG_DESCRIPTION="Dynamic programming language with a focus on simplicity and productivity"
 _MAJOR_VERSION=2.3
 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1
 TERMUX_PKG_DESCRIPTION="Dynamic programming language with a focus on simplicity and productivity"
 _MAJOR_VERSION=2.3
 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1
-TERMUX_PKG_BUILD_REVISION=1
+TERMUX_PKG_BUILD_REVISION=2
 TERMUX_PKG_SRCURL=http://cache.ruby-lang.org/pub/ruby/${_MAJOR_VERSION}/ruby-${TERMUX_PKG_VERSION}.tar.xz
 # libbffi is used by the fiddle extension module:
 TERMUX_PKG_DEPENDS="libffi, libgmp, readline, openssl, libutil"
 TERMUX_PKG_SRCURL=http://cache.ruby-lang.org/pub/ruby/${_MAJOR_VERSION}/ruby-${TERMUX_PKG_VERSION}.tar.xz
 # libbffi is used by the fiddle extension module:
 TERMUX_PKG_DEPENDS="libffi, libgmp, readline, openssl, libutil"
@@ -47,3 +47,9 @@ termux_step_make_install () {
        # Fix mention of $_SPECSFLAG in rbconfig:
        perl -p -i -e "s|${_SPECSFLAG}||g" $RBCONFIG
 }
        # Fix mention of $_SPECSFLAG in rbconfig:
        perl -p -i -e "s|${_SPECSFLAG}||g" $RBCONFIG
 }
+
+termux_step_post_massage () {
+        if [ ! -f $TERMUX_PREFIX/lib/ruby/${_MAJOR_VERSION}.0/${TERMUX_HOST_PLATFORM}/readline.so ]; then
+                echo "Error: The readline extension was not built"
+        fi
+}