Skip to content

Instantly share code, notes, and snippets.

@844196
Created March 12, 2015 16:03
Show Gist options
  • Save 844196/eb6789159bb29d8505c6 to your computer and use it in GitHub Desktop.
Save 844196/eb6789159bb29d8505c6 to your computer and use it in GitHub Desktop.
require "formula"
class Clangsay < Formula
homepage "https://github.com/sasairc/clangsay"
url "https://github.com/sasairc/clangsay/archive/v0.0.5.tar.gz"
sha256 "35bd8c0eb61be8b26482b682ddaa4fc51f56bf644222a996bccd74613b1330a3"
version "0.0.5"
option "zsh-completion", "Install zsh completion"
depends_on "cowsay"
depends_on "pkg-config"
depends_on "glib"
def install
system "make", "PREFIX=#{prefix}", "COWPATH=#{HOMEBREW_PREFIX}/share/cows"
system "make", "install-bin", "PREFIX=#{prefix}"
if build.include?('zsh-completion')
ENV['FPATH'].split(':').find do |path|
path.install "_clangsay"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment