2010-01-22 21:58:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Stgit < Formula
|
2014-02-02 09:32:18 +00:00
|
|
|
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'
|
|
|
|
|
2010-01-22 21:58:10 +00:00
|
|
|
def install
|
2014-02-02 09:32:18 +00:00
|
|
|
ENV['PYTHON'] = 'python' # overrides 'python2' built into makefile
|
2010-01-22 21:58:10 +00:00
|
|
|
system "make", "prefix=#{prefix}", "all"
|
|
|
|
system "make", "prefix=#{prefix}", "install"
|
|
|
|
end
|
2014-02-02 09:36:25 +00:00
|
|
|
|
|
|
|
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
|
2010-01-22 21:58:10 +00:00
|
|
|
end
|