m-cli 0.1.1

This commit is contained in:
rgcr 2016-08-03 14:10:50 -05:00 committed by Mike McQuaid
parent c0828aa8e5
commit ac19f04921

View file

@ -1,17 +1,20 @@
class MCli < Formula
desc "Swiss Army Knife for Mac OS X"
homepage "https://github.com/rgcr/m-cli"
url "https://github.com/rgcr/m-cli/archive/v0.1.0.tar.gz"
sha256 "d28f9b4abdb783554eee01432ffb55dbd206f018b6825018f00fe722af799963"
url "https://github.com/rgcr/m-cli/archive/v0.1.1.tar.gz"
sha256 "66c4b158c1fdfa976a33c97069ae96c2428ca92f5a01b27430ef36930a267d53"
bottle :unneeded
def install
prefix.install Dir["*"]
# Use absolute rather than relative path to plugins.
inreplace prefix/"m" do |s|
# Use absolute rather than relative path to plugins.
s.gsub! /^\[ -L.*|^\s+\|\| pushd.*|^popd.*/, ""
s.gsub! /MPATH=.*/, "MPATH=#{prefix}"
# Disable options "update" && "uninstall", they must be handled by brew
s.gsub! /update_mcli \&\&.*/, "printf \"Try: brew update && brew upgrade m-cli \\n\" && exit 0"
s.gsub! /uninstall_mcli \&\&.*/, "printf \"Try: brew uninstall m-cli \\n\" && exit 0"
end
bin.install_symlink "#{prefix}/m" => "m"