aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2015-03-31 12:52:51 +0100
committerMike McQuaid2015-03-31 12:53:56 +0100
commit844fc4f0dea4f145245d9f5aa2cd32e616ecdf13 (patch)
tree2b86bedddd54fe47dde09707109ed55cfa7fea97
parente2b9da6faab9561cfaf7a5c643e488e6cac653f1 (diff)
downloadhomebrew-844fc4f0dea4f145245d9f5aa2cd32e616ecdf13.tar.bz2
gource: cleanup audit --strict, sha256, add test.
-rw-r--r--Library/Formula/gource.rb19
1 files changed, 13 insertions, 6 deletions
diff --git a/Library/Formula/gource.rb b/Library/Formula/gource.rb
index 0fe58891f..b29625362 100644
--- a/Library/Formula/gource.rb
+++ b/Library/Formula/gource.rb
@@ -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"
@@ -44,11 +42,20 @@ class Gource < Formula
# 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