Last active
August 29, 2015 13:57
-
-
Save sevki/9423335 to your computer and use it in GitHub Desktop.
irony-mode homebrew formula alpha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "formula" | |
| class IronyMode < Formula | |
| homepage "https://github.com/Sarcasm/irony-mode" | |
| # TODO: url to release to come | |
| head 'https://github.com/Sarcasm/irony-mode.git', :branch => 'develop' | |
| depends_on 'emacs' | |
| depends_on "cmake" => :build | |
| depends_on 'llvm' => 'with-clang' | |
| def install | |
| mkdir 'build' do | |
| # system "cmake", "-DLIBCLANG_INCLUDE_PATH=/usr/local/Cellar/llvm/3.4/lib/clang/3.4/include", "-DLIBCLANG_LIBRARY_PATH=`xcode-select -p`/Toolchains/XcodeDefault.xctoolchain/usr/lib/", ".." | |
| system "cmake", ".." | |
| system "make" | |
| system "make install" | |
| end | |
| bin.install 'build/bin/irony-server' | |
| share.install Dir['elisp/*'] | |
| end | |
| test do | |
| system '#{prefix}/irony-server' #no documentation on how to test stuff | |
| end | |
| def caveats | |
| <<-EOS.undent | |
| You should probably add something like | |
| (add-to-list 'load-path (expand-file-name | |
| "/usr/local/opt/irony-mode/share/")) | |
| You should probably run something like "echo `brew --prefix | |
| irony-mode`/share" to make sure. | |
| irony-server to /usr/local/bin/irony-server so if you have it in | |
| your path it should run smoothly. | |
| EOS | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment