Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add platform check #238

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
using Homebrew
Homebrew.update()
using Compat

if Sys.isapple()
Homebrew.update()
end

10 changes: 6 additions & 4 deletions src/Homebrew.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ need is downloaded/installed, then calls `update_env()` to set the environment
properly so that packages being installed can find their binaries.
"""
function __init__()
# Let's see if Homebrew is installed. If not, let's do that first!
(isdir(brew_prefix) && isdir(tappath)) || install_brew()
if Sys.isapple()
# Let's see if Homebrew is installed. If not, let's do that first!
(isdir(brew_prefix) && isdir(tappath)) || install_brew()

# Update environment variables such as PATH, DL_LOAD_PATH, etc...
update_env()
# Update environment variables such as PATH, DL_LOAD_PATH, etc...
update_env()
end
end


Expand Down