homebrew-core/Formula/gource.rb

42 lines
1 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/'
2012-03-11 20:08:40 +00:00
url 'http://gource.googlecode.com/files/gource-0.37.tar.gz'
sha1 '87d88b5cbf312e160e55582f8e187c87b3df097d'
2011-05-27 05:02:55 +00:00
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'
2012-03-11 20:08:40 +00:00
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"
2012-03-11 20:08:40 +00:00
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