-
-
Save jcalvert/beda4e1bce86e5ffccba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_reconfigure() { | |
test -f configure || autoconf | |
} | |
build_package_patch_ruby_railsexpress() { | |
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/01-zero-broken-tests.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/02-improve-gc-stats.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/03-display-more-detailed-stack-trace.patch | |
} | |
install_package "openssl-1.0.1e" "https://www.openssl.org/source/openssl-1.0.1e.tar.gz#66bf6f10f060d561929de96f9dfe5b8c" mac_openssl --if has_broken_mac_openssl | |
install_package "ruby-2_2_2" "https://github.com/ruby/ruby/archive/v2_2_2.tar.gz" reconfigure patch_ruby_railsexpress ldflags_dirs standard verify_openssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.1.0-railsexpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment