Created
August 1, 2012 16:31
-
-
Save Bertrand/3228523 to your computer and use it in GitHub Desktop.
Build a ruby version with falcon and fotonauts patches
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
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#36c852831d02cf90508c29852361d01b" | |
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