Skip to content

Instantly share code, notes, and snippets.

@mitmul
Created April 18, 2013 05:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mitmul/5410467 to your computer and use it in GitHub Desktop.
Save mitmul/5410467 to your computer and use it in GitHub Desktop.
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Sge < Formula
homepage 'https://github.com/flibitijibibo/libSGE/'
url 'git://github.com/flibitijibibo/libSGE.git'
sha1 ''
version 'r030809'
# depends_on 'cmake' => :build
#depends_on :x11 # if your formula requires any X11/XQuartz components
depends_on "sdl"
def install
# ENV.j1 # if your formula's build system can't parallelize
#system "./configure", "--disable-debug", "--disable-dependency-tracking",
# "--prefix=#{prefix}"
# system "cmake", ".", *std_cmake_args
system "export HAVE_SDL='y'"
system "make"
system "make", "install" # if this fails, try separate make/make install steps
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# 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 sge`.
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment