Skip to content

Instantly share code, notes, and snippets.

@andykram
Created August 17, 2012 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andykram/3377097 to your computer and use it in GitHub Desktop.
Save andykram/3377097 to your computer and use it in GitHub Desktop.
GTI Homebrew Recipe
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Gti < Formula
homepage 'http://r-wos.org/hacks/gti'
url 'https://github.com/rwos/gti/tarball/master'
sha1 'f34d37ba4345b3b97eaa64280e6f60a6881c38d8'
version "0.1"
head 'https://github.com/rwos/gti.git'
def install
system "make", "PREFIX=#{prefix}", "CC=#{ENV.cc}"
bin.install("gti")
end
def test
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test gti`.
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment