2010-02-12 00:48:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gource < Formula
|
2010-02-12 00:48:54 +00:00
|
|
|
homepage 'http://code.google.com/p/gource/'
|
2011-12-05 20:36:45 +00:00
|
|
|
url 'https://github.com/acaudwell/Gource.git', :tag => "gource-0.37"
|
|
|
|
version "0.37"
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/acaudwell/Gource.git'
|
2010-02-12 00:48:54 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-02-12 00:48:54 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_image'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'pcre'
|
2010-06-16 14:49:10 +00:00
|
|
|
depends_on 'glew'
|
2010-02-12 00:48:54 +00:00
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
# download a tarball with configure and remove the need for these!
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2010-02-12 00:48:54 +00:00
|
|
|
def install
|
2010-04-07 05:58:35 +00:00
|
|
|
ENV.x11 # Put freetype-config in path
|
2010-02-12 00:48:54 +00:00
|
|
|
|
2010-07-31 17:25:49 +00:00
|
|
|
# For non-/usr/local installs
|
|
|
|
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
system "autoreconf -f -i"
|
2010-02-12 00:48:54 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-sdltest",
|
|
|
|
"--disable-freetypetest"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-09-26 16:46:36 +00:00
|
|
|
|
|
|
|
def test
|
2012-02-21 06:04:21 +00:00
|
|
|
cd HOMEBREW_REPOSITORY do
|
2011-09-01 20:00:28 +00:00
|
|
|
system "#{bin}/gource"
|
2010-09-26 16:46:36 +00:00
|
|
|
end
|
|
|
|
end
|
2010-02-12 00:48:54 +00:00
|
|
|
end
|