aboutsummaryrefslogtreecommitdiffstats
path: root/Formula/git.rb
blob: 0f0620f407ebea2b81efe0458a9e0843c9b697fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'brewkit'

class GitManuals <Formula
  @url='http://kernel.org/pub/software/scm/git/git-manpages-1.6.3.1.tar.bz2'
  @md5='971d573e8f261feb83290a59728c2b33'
end

class Git <Formula
  @url='http://kernel.org/pub/software/scm/git/git-1.6.3.1.tar.bz2'
  @md5='c1f4aab741359c29f0fbf28563ac7387'
  @homepage='http://git-scm.com'

  def install
    system "./configure --prefix='#{prefix}' --disable-debug"
    system "make install"

    # the manuals come separately, well sort of, it's easier this way though
    GitManuals.new.brew { FileUtils.mv Dir['*'], man }
  end
end