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
fdcc0a76
Commit
fdcc0a76
authored
Nov 27, 2016
by
Yuichiro NAITO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefers readline
It's needed for older ruby (before 2.1) and works latter versions, too.
parent
8b2c3ef4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
bin/ruby-build
+5
-4
No files found.
bin/ruby-build
View file @
fdcc0a76
...
@@ -931,13 +931,14 @@ use_freebsd_pkg() {
...
@@ -931,13 +931,14 @@ use_freebsd_pkg() {
# check if 11-R or later
# check if 11-R or later
release
=
"
$(
uname
-r
)
"
release
=
"
$(
uname
-r
)
"
if
[
"
${
release
%%.*
}
"
-ge
11
]
;
then
if
[
"
${
release
%%.*
}
"
-ge
11
]
;
then
if
pkg info
-e
libedit
>
/dev/null
;
then
# prefers readline to compile most of ruby versions
if
pkg info
-e
readline
>
/dev/null
;
then
# use readline from Ports Collection
package_option ruby configure
--with-readline-dir
=
"/usr/local"
elif
pkg info
-e
libedit
>
/dev/null
;
then
# use libedit from Ports Collection
# use libedit from Ports Collection
package_option ruby configure
--enable-libedit
package_option ruby configure
--enable-libedit
package_option ruby configure
--with-libedit-dir
=
"/usr/local"
package_option ruby configure
--with-libedit-dir
=
"/usr/local"
elif
pkg info
-e
readline
>
/dev/null
;
then
# use readline from Ports Collection
package_option ruby configure
--with-readline-dir
=
"/usr/local"
fi
fi
fi
fi
fi
fi
...
...
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