aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boxes.rb
blob: 3a36389114de3477aabab5a118427d2c974722a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Boxes < Formula
  homepage 'http://boxes.thomasjensen.com/'
  url 'http://boxes.thomasjensen.com/download/boxes-1.1.src.tar.gz'
  md5 'd2ef9fa28a87bf32b3fe0c47ab82fa97'

  def install
    # distro uses /usr/share/boxes change to prefix
    system "make", "GLOBALCONF=#{share}/boxes-config", "CC=#{ENV.cc}"

    # No make install have to manually copy files
    bin.install 'src/boxes'
    man1.install 'doc/boxes.1'
    share.install 'boxes-config'
  end
end