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
c23b5041
Commit
c23b5041
authored
Oct 26, 2013
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'freebsd-make'
parents
cb1128ca
da840a82
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
bin/ruby-build
+5
-1
test/build.bats
+16
-2
test/fixtures/definitions/vanilla-ruby
+1
-0
No files found.
bin/ruby-build
View file @
c23b5041
...
...
@@ -793,7 +793,11 @@ if "${CC:-cc}" -x c /dev/null -E -Wno-error=shorten-64-to-32 &>/dev/null; then
fi
if
[
-z
"
$MAKE
"
]
;
then
export
MAKE
=
"make"
if
[[
"FreeBSD"
=
"
$(
uname
-s
)
"
]]
;
then
export
MAKE
=
"gmake"
else
export
MAKE
=
"make"
fi
fi
if
[
-n
"
$RUBY_BUILD_CACHE_PATH
"
]
&&
[
-d
"
$RUBY_BUILD_CACHE_PATH
"
]
;
then
...
...
test/build.bats
View file @
c23b5041
...
...
@@ -2,6 +2,7 @@
load test_helper
export RUBY_BUILD_CACHE_PATH="$TMP/cache"
export MAKE=make
setup() {
mkdir -p "$INSTALL_ROOT"
...
...
@@ -32,8 +33,8 @@ OUT
}
stub_make_install() {
stub
make
\
' : echo make "$@" >> build.log'
\
stub
"$MAKE"
\
" : echo \"$MAKE \$@\" >> build.log"
\
"install : cat build.log >> '$INSTALL_ROOT/build.log'"
}
...
...
@@ -92,3 +93,16 @@ OUT
assert_success
assert [ -x ./here/bin/package ]
}
@test "make on FreeBSD defaults to gmake" {
cached_tarball "ruby-2.0.0"
stub uname "-s : echo FreeBSD"
MAKE=gmake stub_make_install
MAKE= install_fixture definitions/vanilla-ruby
assert_success
unstub gmake
unstub uname
}
test/fixtures/definitions/vanilla-ruby
0 → 100644
View file @
c23b5041
install_package "ruby-2.0.0" "http://ruby-lang.org/ruby/2.0/ruby-2.0.0.tar.gz"
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