Skip to content

Instantly share code, notes, and snippets.

@oskarizu
Created January 28, 2016 14:50
Show Gist options
  • Save oskarizu/7def7e84337579ac1ea7 to your computer and use it in GitHub Desktop.
Save oskarizu/7def7e84337579ac1ea7 to your computer and use it in GitHub Desktop.
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.2.4/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.2.4" "https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.bz2#31203696adbfdda6f2874a2de31f7c5a1f3bcb6628f4d1a241de21b158cd5c76" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
#!/usr/bin/env bash
if command -v brew > /dev/null
then
if brew --prefix openssl > /dev/null
then
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-openssl-dir=`brew --prefix openssl`"
fi
if brew --prefix readline > /dev/null
then
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-readline-dir=`brew --prefix readline`"
fi
fi
echo "==> Installing ruby version:"
rbenv install ./2.2.4-railsexpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment