homebrew-core/Formula/stgit.rb
Mike McQuaid d9bb6e6be5 stgit: don't depend on :python.
Use the system Python instead.
2014-05-06 19:34:03 +01:00

24 lines
658 B
Ruby

require 'formula'
class Stgit < Formula
homepage 'http://gna.org/projects/stgit/'
url 'http://download.gna.org/stgit/stgit-0.17.1.tar.gz'
sha1 '5918fd983919ab70ab191868b84e917a06556cc2'
head 'git://repo.or.cz/stgit.git'
def install
ENV['PYTHON'] = 'python' # overrides 'python2' built into makefile
system "make", "prefix=#{prefix}", "all"
system "make", "prefix=#{prefix}", "install"
end
test do
system "git", "init"
(testpath/"test").write "test"
system "git", "add", "test"
system "git", "commit", "--message", "Initial commit", "test"
system "#{bin}/stg", "init"
system "#{bin}/stg", "log"
end
end