Skip to content

Instantly share code, notes, and snippets.

@sgerrand
Created November 15, 2012 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgerrand/4077048 to your computer and use it in GitHub Desktop.
Save sgerrand/4077048 to your computer and use it in GitHub Desktop.
Custom brew formula for Ruby v1.9.3-327
build_package_combined_patch() {
local package_name="$1"
{
curl https://raw.github.com/gist/3905045/bf9d1c84c72cdce5be52d8b2dfd4d86a1cdbf185/gistfile1.txt | git apply
curl https://raw.github.com/wayneeseguin/rvm/master/patches/ruby/1.9.3/p286/falcon.diff | git apply
curl https://raw.github.com/wayneeseguin/rvm/master/patches/ruby/1.9.3/p327/ruby-multilib.patch | git apply
autoconf
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
make -j 8
make install
} >&4 2>&1
}
CC=$(which clang) install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
CC=$(which clang) install_package "ruby-1.9.3-p327" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz" combined_patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment