Have you ever wondered how to install homebrew without XCode? Well, you can do it by just isntalling the command-line tools only.
Install Command Line Tools
When this is finished, you can install homebrew!
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"