blob: 1be1c1000d004cf30a219c840f0e1105818a80ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  | 
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'
  depends_on :python
  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
  |