Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
5ddb90f6
Commit
5ddb90f6
authored
Oct 20, 2011
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70 from sstephenson/better-gcc-detection
Better GCC detection
parents
197dd34c
7630d84b
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
62 additions
and
13 deletions
+62
-13
bin/ruby-build
+50
-4
share/ruby-build/1.8.6-p420
+1
-1
share/ruby-build/1.8.7-p249
+1
-1
share/ruby-build/1.8.7-p334
+1
-1
share/ruby-build/1.8.7-p352
+1
-1
share/ruby-build/1.9.1-p378
+1
-0
share/ruby-build/1.9.2-p290
+1
-1
share/ruby-build/1.9.3-dev
+1
-1
share/ruby-build/1.9.3-preview1
+1
-0
share/ruby-build/1.9.3-rc1
+1
-0
share/ruby-build/ree-1.8.6-2009.06
+1
-1
share/ruby-build/ree-1.8.7-2010.02
+1
-1
share/ruby-build/ree-1.8.7-2011.03
+1
-1
No files found.
bin/ruby-build
View file @
5ddb90f6
...
@@ -180,13 +180,59 @@ fix_directory_permissions() {
...
@@ -180,13 +180,59 @@ fix_directory_permissions() {
find
"
$PREFIX_PATH
"
-type
d
-exec
chmod go-w
{}
\;
find
"
$PREFIX_PATH
"
-type
d
-exec
chmod go-w
{}
\;
}
}
use_gcc42_on_lion
()
{
require_gcc
()
{
local
gcc
=
"
$(
locate_gcc
||
true
)
"
if
[
-z
"
$gcc
"
]
;
then
{
echo
echo
"ERROR: This package must be compiled with GCC, and we"
echo
"couldn't find a suitable
\`
gcc' binary on your system."
echo
"Please install GCC and try again."
echo
if
[
"
$(
uname
-s
)
"
=
"Darwin"
]
;
then
if
[
"
$(
uname
-s
)
"
=
"Darwin"
]
;
then
if
[
"
$(
expr
"
$(
sw_vers
-productVersion
| cut
-f
2
-d
.
)
"
\>
=
7
||
true
)
"
-eq
1
]
;
then
echo
"You can install these GCC packages on Mac OS X:"
export
CC
=
/usr/bin/gcc-4.2
echo
"https://github.com/kennethreitz/osx-gcc-installer/downloads"
CONFIGURE_OPTS
=
"--with-gcc=
$CC
$CONFIGURE_OPTS
"
echo
fi
fi
}
>
&3
return
1
fi
fi
export
CC
=
"
$gcc
"
}
locate_gcc
()
{
local
gcc gccs
shopt
-s
nullglob
gccs
=(
/usr/bin/gcc-
*
)
shopt
-u
nullglob
verify_gcc
"
$CC
"
||
verify_gcc
"
$(
command
-v
gcc
||
true
)
"
||
{
for
gcc
in
"
${
gccs
[@]
}
"
;
do
verify_gcc
"
$gcc
"
&&
break
||
true
done
}
return
1
}
verify_gcc
()
{
local
gcc
=
"
$1
"
if
[
-z
"
$gcc
"
]
;
then
return
1
fi
local
version
=
"
$(
"
$gcc
"
--version
||
true
)
"
if
[
-z
"
$version
"
]
;
then
return
1
fi
if
echo
"
$version
"
|
grep
LLVM
>
/dev/null
;
then
return
1
fi
echo
"
$gcc
"
}
}
version
()
{
version
()
{
...
...
share/ruby-build/1.8.6-p420
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
install_package "ruby-1.8.6-p420" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p420.tar.gz"
install_package "ruby-1.8.6-p420" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p420.tar.gz"
install_package "rubygems-1.3.7" "http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz" ruby
install_package "rubygems-1.3.7" "http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz" ruby
share/ruby-build/1.8.7-p249
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
install_package "ruby-1.8.7-p249" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.gz"
install_package "ruby-1.8.7-p249" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.gz"
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
share/ruby-build/1.8.7-p334
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
install_package "ruby-1.8.7-p334" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz"
install_package "ruby-1.8.7-p334" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz"
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
share/ruby-build/1.8.7-p352
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
install_package "ruby-1.8.7-p352" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p352.tar.gz"
install_package "ruby-1.8.7-p352" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p352.tar.gz"
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
share/ruby-build/1.9.1-p378
View file @
5ddb90f6
require_gcc
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "ruby-1.9.1-p378" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p378.tar.gz"
install_package "ruby-1.9.1-p378" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p378.tar.gz"
install_package "rubygems-1.3.5" "http://production.cf.rubygems.org/rubygems/rubygems-1.3.5.tgz" ruby
install_package "rubygems-1.3.5" "http://production.cf.rubygems.org/rubygems/rubygems-1.3.5.tgz" ruby
share/ruby-build/1.9.2-p290
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "ruby-1.9.2-p290" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz"
install_package "ruby-1.9.2-p290" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz"
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby
share/ruby-build/1.9.3-dev
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_git "ruby-1.9.3-dev" "https://github.com/ruby/ruby.git" "ruby_1_9_3" autoconf standard
install_git "ruby-1.9.3-dev" "https://github.com/ruby/ruby.git" "ruby_1_9_3" autoconf standard
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby
share/ruby-build/1.9.3-preview1
View file @
5ddb90f6
require_gcc
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "ruby-1.9.3-preview1" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-preview1.tar.gz"
install_package "ruby-1.9.3-preview1" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-preview1.tar.gz"
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby
share/ruby-build/1.9.3-rc1
View file @
5ddb90f6
require_gcc
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "ruby-1.9.3-rc1" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.tar.gz"
install_package "ruby-1.9.3-rc1" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.tar.gz"
share/ruby-build/ree-1.8.6-2009.06
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
install_package "ruby-enterprise-1.8.6-20090610" "http://files.rubyforge.vm.bytemark.co.uk/emm-ruby/ruby-enterprise-1.8.6-20090610.tar.gz" ree_installer
install_package "ruby-enterprise-1.8.6-20090610" "http://files.rubyforge.vm.bytemark.co.uk/emm-ruby/ruby-enterprise-1.8.6-20090610.tar.gz" ree_installer
install_package "rubygems-1.4.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgz" ruby
install_package "rubygems-1.4.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgz" ruby
share/ruby-build/ree-1.8.7-2010.02
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
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
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
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
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
View file @
5ddb90f6
use_gcc42_on_lion
require_gcc
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
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
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment