Permalink
Browse files

Merge pull request #1002 from chulkilee/brew-info

print when using homebrew packages
  • Loading branch information...
2 parents 96c723e + 5118c42 commit 636646c141a4c4e0c873e829e6e427d97775eed7 @hsbt hsbt committed on GitHub Jan 11, 2017
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/ruby-build
View
@@ -914,6 +914,7 @@ needs_yaml() {
use_homebrew_yaml() {
local libdir="$(brew --prefix libyaml 2>/dev/null || true)"
if [ -d "$libdir" ]; then
+ echo "ruby-build: use libyaml from homebrew"
package_option ruby configure --with-libyaml-dir="$libdir"
else
return 1
@@ -948,6 +949,7 @@ use_homebrew_readline() {
if [[ "$RUBY_CONFIGURE_OPTS" != *--with-readline-dir=* ]]; then
local libdir="$(brew --prefix readline 2>/dev/null || true)"
if [ -d "$libdir" ]; then
+ echo "ruby-build: use readline from homebrew"
package_option ruby configure --with-readline-dir="$libdir"
else
return 1
@@ -965,6 +967,7 @@ has_broken_mac_openssl() {
use_homebrew_openssl() {
local ssldir="$(brew --prefix openssl 2>/dev/null || true)"
if [ -d "$ssldir" ]; then
+ echo "ruby-build: use openssl from homebrew"
package_option ruby configure --with-openssl-dir="$ssldir"
else
return 1

0 comments on commit 636646c

Please sign in to comment.