Skip to content

Commit

Permalink
Add gitstats formula
Browse files Browse the repository at this point in the history
The author will not create release tags, so we must use the HEAD of the
repository instead.

Replaces the opening shebang to point to OSX-compatible python 2.7.x executable.

Closes hoxu/gitstats#29
Refs Homebrew/legacy-homebrew#14418
Refs Homebrew/legacy-homebrew#25447
  • Loading branch information
miketheman committed Sep 23, 2015
1 parent 84bd9a5 commit b0768ce
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions gitstats.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class Gitstats < Formula
desc "git history statistics generator"
homepage "http://gitstats.sourceforge.net/"
head "https://github.com/hoxu/gitstats.git"

depends_on "gnuplot"

def install
inreplace "gitstats", "#!/usr/bin/env python2", "#!/usr/bin/env python"
system "make", "install", "PREFIX=#{prefix}"

system "make", "man"
man1.install "doc/gitstats.1"
end

test do
system "#{bin}/gitstats"
end
end

0 comments on commit b0768ce

Please sign in to comment.