homebrew-core/Formula/gource.rb
Sebastian Staudt 1c58fec715 gource: Update to 0.38
Gource now requires boost and glm.

Closes Homebrew/homebrew#11782.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-04-22 12:10:05 -07:00

44 lines
1.1 KiB
Ruby

require 'formula'
class Gource < Formula
homepage 'http://code.google.com/p/gource/'
url 'http://gource.googlecode.com/files/gource-0.38.tar.gz'
sha1 '78f8c2064114313851f53b657d12db28abb89fae'
head 'https://github.com/acaudwell/Gource.git'
depends_on 'glm' => :build
depends_on 'pkg-config' => :build
depends_on 'boost'
depends_on 'glew'
depends_on 'jpeg'
depends_on 'pcre'
depends_on 'sdl'
depends_on 'sdl_image'
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
depends_on "libtool" => :build
end
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" if ARGV.build_head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-sdltest",
"--disable-freetypetest"
system "make install"
end
def test
cd HOMEBREW_REPOSITORY do
system "#{bin}/gource"
end
end
end