Skip to content

Instantly share code, notes, and snippets.

@Bertrand
Created August 1, 2012 16:31
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 Bertrand/3228523 to your computer and use it in GitHub Desktop.
Save Bertrand/3228523 to your computer and use it in GitHub Desktop.
Build a ruby version with falcon and fotonauts patches
RUBY_MAJOR=1
RUBY_MINOR=9
RUBY_TEENY=3
RUBY_PATCH_LEVEL=194
RUBY_NAME="$RUBY_MAJOR.$RUBY_MINOR.$RUBY_TEENY-p$RUBY_PATCH_LEVEL-falcon-fotonauts"
BRANCH_NAME="falcon_and_fotonauts_""$RUBY_MAJOR""_""$RUBY_MINOR""_""$RUBY_TEENY""_""$RUBY_PATCH_LEVEL"
cat <<-EOS > "/tmp/$RUBY_NAME"
build_package_falcon_fotonauts() {
{
autoconf
./configure --prefix="\$PREFIX_PATH" \$CONFIGURE_OPTS
make -j 8
make install
} >&4 2>&1
}
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_git "ruby-$RUBY_NAME" "https://github.com/fotonauts/ruby" "$BRANCH_NAME" falcon_fotonauts
EOS
rbenv install "/tmp/$RUBY_NAME"
rm -rf "/tmp/$RUBY_NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment