Last active
August 29, 2015 14:15
-
-
Save todthomson/b17380d32807041d17dd to your computer and use it in GitHub Desktop.
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
| # brew install https://gist.github.com/akunzai/bbcac93646ca08bd8569/raw/scriptcs.rb | |
| require 'formula' | |
| class Scriptcs < Formula | |
| homepage 'https://github.com/scriptcs/scriptcs' | |
| url 'https://github.com/scriptcs/scriptcs.git', :tag => "v0.12" | |
| depends_on "mono" => :recommended | |
| def install | |
| system "./build.sh" | |
| libexec.install Dir["src/ScriptCs/bin/Release/*"] | |
| (libexec/"scriptcs.sh").write <<-EOS.undent | |
| #!/usr/bin/env bash | |
| mono /usr/local/opt/scriptcs/libexec/scriptcs.exe $@ | |
| EOS | |
| (libexec/"scriptcs.sh").chmod 0755 | |
| bin.install_symlink libexec/"scriptcs.sh" => "scriptcs" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment