homebrew-core/Formula/gource.rb

52 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Gource < Formula
homepage 'http://code.google.com/p/gource/'
url 'http://gource.googlecode.com/files/gource-0.38.tar.gz'
sha1 '78f8c2064114313851f53b657d12db28abb89fae'
2012-07-07 18:08:22 +00:00
2011-05-27 05:02:55 +00:00
head 'https://github.com/acaudwell/Gource.git'
2012-08-31 20:58:04 +00:00
if build.head?
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
end
2012-08-31 20:58:04 +00:00
depends_on :freetype
2012-07-07 18:08:22 +00:00
depends_on 'pkg-config' => :build
depends_on 'glm' => :build
depends_on 'boost'
depends_on 'glew'
depends_on 'jpeg'
depends_on 'pcre'
depends_on 'sdl'
depends_on 'sdl_image'
def patches
# Fix for API change in boost 1.50.0; can be removed in next version
# http://code.google.com/p/gource/issues/detail?id=162
"https://github.com/acaudwell/Gource/commit/408371e10f931e2330ff94bd7291b5d1c8c80e9b.patch"
end
def install
# For non-/usr/local installs
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
2012-08-31 20:58:04 +00:00
system "autoreconf -f -i" if 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