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
d0c91c93
Commit
d0c91c93
authored
Nov 04, 2016
by
Yuichiro NAITO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support FreeBSD 11-RELEASE
parent
8ef0c34c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
bin/ruby-build
+17
-0
No files found.
bin/ruby-build
View file @
d0c91c93
...
@@ -553,6 +553,7 @@ build_package_standard() {
...
@@ -553,6 +553,7 @@ build_package_standard() {
local
PACKAGE_CFLAGS
=
"
${
package_var_name
}
_CFLAGS"
local
PACKAGE_CFLAGS
=
"
${
package_var_name
}
_CFLAGS"
[
"
$package_var_name
"
=
"RUBY"
]
&&
use_homebrew_readline
||
true
[
"
$package_var_name
"
=
"RUBY"
]
&&
use_homebrew_readline
||
true
[
"
$package_var_name
"
=
"RUBY"
]
&&
use_freebsd_pkg
||
true
(
if
[
"
${
CFLAGS
+defined
}
"
]
||
[
"
${
!PACKAGE_CFLAGS+defined
}
"
]
;
then
(
if
[
"
${
CFLAGS
+defined
}
"
]
||
[
"
${
!PACKAGE_CFLAGS+defined
}
"
]
;
then
export
CFLAGS
=
"
$CFLAGS
${
!PACKAGE_CFLAGS
}
"
export
CFLAGS
=
"
$CFLAGS
${
!PACKAGE_CFLAGS
}
"
...
@@ -918,6 +919,22 @@ use_homebrew_yaml() {
...
@@ -918,6 +919,22 @@ use_homebrew_yaml() {
fi
fi
}
}
use_freebsd_pkg
()
{
# check if FreeBSD 11-R or later
if
[
"FreeBSD"
=
"
$(
uname
-s
)
"
]
;
then
if
[
"
$(
uname
-r
| sed
's/[^[:digit:]].*//'
)
"
-ge
11
]
;
then
if
$(
pkg info
-e
libedit
)
;
then
# use if libedit is installed
package_option ruby configure
--enable-libedit
package_option ruby configure
--with-libedit-dir
=
"/usr/local"
elif
$(
pkg info
-e
readline
)
;
then
# use if readline is installed
package_option ruby configure
--with-readline-dir
=
"/usr/local"
fi
fi
fi
}
use_homebrew_readline
()
{
use_homebrew_readline
()
{
if
[[
"
$RUBY_CONFIGURE_OPTS
"
!=
*
--with-readline-dir
=
*
]]
;
then
if
[[
"
$RUBY_CONFIGURE_OPTS
"
!=
*
--with-readline-dir
=
*
]]
;
then
local
libdir
=
"
$(
brew
--prefix
readline 2>/dev/null
||
true
)
"
local
libdir
=
"
$(
brew
--prefix
readline 2>/dev/null
||
true
)
"
...
...
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