Skip to content

Commit

Permalink
gource: cleanup audit --strict, sha256, add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Mar 31, 2015
1 parent e2b9da6 commit 844fc4f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Library/Formula/gource.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require "formula"

class Gource < Formula
homepage "http://code.google.com/p/gource/"
homepage "https://github.com/acaudwell/Gource"
url "https://github.com/acaudwell/Gource/releases/download/gource-0.43/gource-0.43.tar.gz"
sha1 "dda56952f9cc19821ae7c146736b00556ef51edf"
sha256 "85a40ac8e4f5c277764216465c248d6b76589ceac012541c4cc03883a24abde4"

head do
url "https://github.com/acaudwell/Gource.git"
Expand Down Expand Up @@ -44,11 +42,20 @@ def install
# For non-/usr/local installs
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"

system "autoreconf -f -i" if build.head?
system "autoreconf", "-f", "-i" if build.head?

system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-x"
system "make install"
system "make", "install"
end

test do
(testpath/"test-file").write "test contents"
system "git", "init"
system "git", "add", "test-file"
system "git", "commit", "--message=Initial commit"
system "#{bin}/gource", "--output-ppm-stream", "out.ppm", "--time-scale", "4"
assert File.exist? "out.ppm"
end
end

0 comments on commit 844fc4f

Please sign in to comment.