aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lolcode.rb
blob: 345b6b52b58635072038dea83e55d2565352d08c (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
require 'formula'

class Lolcode < Formula
  homepage 'http://www.icanhaslolcode.org/'
  url 'https://github.com/justinmeza/lci/tarball/v0.9.2'
  head 'https://github.com/justinmeza/lolcode.git'
  md5 'bb757687aabea302351cbbce77e01c26'

  def install
    inreplace 'Makefile' do |s|
      s.change_make_var! "prefix", prefix
    end

    system "make"

    # v0.9.2 should use 'make install'.
    # Later versions can just copy the 'lolcode' bin.
    if ARGV.build_head?
      bin.install 'lolcode'
    else
      bin.mkpath
      system "make install"
    end
  end
end