homebrew-core/Formula/gource.rb

51 lines
1.5 KiB
Ruby

class Gource < Formula
desc "Version Control Visualization Tool"
homepage "https://github.com/acaudwell/Gource"
url "https://github.com/acaudwell/Gource/releases/download/gource-0.51/gource-0.51.tar.gz"
sha256 "19a3f888b1825aa7ed46f52cebce5012e3c62439e3d281102f21814c7a58e79a"
license "GPL-3.0"
revision 1
bottle do
sha256 "544380bd35795b5a809d536b6458b9e4a0f8fc940f36f6f8e54255091aa98250" => :catalina
sha256 "a603e1573f244abd8bc2a8963538ca6da27fbff90e68666e752678159c215baa" => :mojave
sha256 "9e1ed79145083e62e52f6416b08d0d80c778cae6a8ba83808fb17f841cd6c136" => :high_sierra
end
head do
url "https://github.com/acaudwell/Gource.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "glm" => :build
depends_on "pkg-config" => :build
depends_on "boost"
depends_on "freetype"
depends_on "glew"
depends_on "libpng"
depends_on "pcre"
depends_on "sdl2"
depends_on "sdl2_image"
def install
# clang on Mt. Lion will try to build against libstdc++,
# despite -std=gnu++0x
ENV.libcxx
system "autoreconf", "-f", "-i" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-boost=#{Formula["boost"].opt_prefix}",
"--without-x"
system "make", "install"
end
test do
system "#{bin}/gource", "--help"
end
end