Last active
August 29, 2015 13:57
-
-
Save mediafinger/9788132 to your computer and use it in GitHub Desktop.
2.1.0-p27-railsexpress
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-current-2.1.1-fixes.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/02-zero-broken-tests.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/03-improve-gc-stats.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/04-display-more-detailed-stack-trace.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/05-show-full-backtrace-on-stack-overflow.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/06-fix-missing-c-return-event.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/07-backport-006e66b6680f60adfb434ee7397f0dbc77de7873.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/08-funny-falcon-stc-density.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/09-funny-falcon-stc-pool-allocation.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/10-aman-opt-aset-aref-str.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/11-funny-falcon-method-cache.patch | |
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/12-backport-r44370.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_1_0" "https://github.com/ruby/ruby/archive/v2_1_0.tar.gz#994a6092845d681b440ef3c8fe29a6d2" 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 | |
VERSION="2.1.0-p27" | |
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 | |
ruby-build ./$VERSION-railsexpress $HOME/.rbfu/rubies/$VERSION-railsexpress --disable-install-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just run
install-railsexpress
to install the patched ruby version into rbfu's default directory for rubies.