homebrew-core/Formula/gource.rb
Sebastian Staudt 4ee91e6358 gource 0.37
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-12-06 18:58:23 -08:00

36 lines
912 B
Ruby

require 'formula'
class Gource < Formula
homepage 'http://code.google.com/p/gource/'
url 'https://github.com/acaudwell/Gource.git', :tag => "gource-0.37"
version "0.37"
head 'https://github.com/acaudwell/Gource.git'
depends_on 'pkg-config' => :build
depends_on 'sdl'
depends_on 'sdl_image'
depends_on 'jpeg'
depends_on 'pcre'
depends_on 'glew'
def install
ENV.x11 # Put freetype-config in path
# For non-/usr/local installs
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
system "autoreconf -f -i" unless File.exist? "configure"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-sdltest",
"--disable-freetypetest"
system "make install"
end
def test
Dir.chdir HOMEBREW_REPOSITORY do
system "#{bin}/gource"
end
end
end