Skip to content

Commit 9979cc3

Browse files
committed
move build_package_ree_installer function to ruby-build script
1 parent c97e574 commit 9979cc3

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

bin/ruby-build

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,19 @@ build_package_ruby() {
126126
} >&4 2>&1
127127
}
128128

129+
build_package_ree_installer() {
130+
local options=""
131+
if [[ "Darwin" = "$(uname)" ]]; then
132+
options="--no-tcmalloc"
133+
fi
134+
135+
# Work around install_useful_libraries crash with --dont-install-useful-gems
136+
mkdir -p "$PREFIX_PATH/lib/ruby/gems/1.8/gems"
137+
138+
{ ./installer --auto "$PREFIX_PATH" --dont-install-useful-gems $options
139+
} >&4 2>&1
140+
}
141+
129142
build_package_rbx() {
130143
local package_name="$1"
131144

share/ruby-build/ree-1.8.7-2010.02

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
build_package_ree_installer() {
2-
local options=""
3-
if [[ "Darwin" = "$(uname)" ]]; then
4-
options="--no-tcmalloc"
5-
fi
6-
7-
# Work around install_useful_libraries crash with --dont-install-useful-gems
8-
mkdir -p "$PREFIX_PATH/lib/ruby/gems/1.8/gems"
9-
10-
{ ./installer --auto "$PREFIX_PATH" --dont-install-useful-gems $options
11-
} >&4 2>&1
12-
}
13-
141
use_gcc42_on_lion
152
install_package "ruby-enterprise-1.8.7-2010.02" "http://files.rubyforge.vm.bytemark.co.uk/emm-ruby/ruby-enterprise-1.8.7-2010.02.tar.gz" ree_installer
163
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby

share/ruby-build/ree-1.8.7-2011.03

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
build_package_ree_installer() {
2-
local options=""
3-
if [[ "Darwin" = "$(uname)" ]]; then
4-
options="--no-tcmalloc"
5-
fi
6-
7-
{ ./installer --auto "$PREFIX_PATH" --dont-install-useful-gems $options
8-
} >&4 2>&1
9-
}
10-
111
use_gcc42_on_lion
122
install_package "ruby-enterprise-1.8.7-2011.03" "http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz" ree_installer
133
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby

0 commit comments

Comments
 (0)