aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boxes.rb
blob: de66d4a8dca94639b8ea5bcdd2099a9e77f4438c (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
27
28
29
30
require 'formula'

class Boxes < Formula
  homepage 'http://boxes.thomasjensen.com/'
  url 'https://github.com/ascii-boxes/boxes/archive/v1.1.2.tar.gz'
  head 'https://github.com/ascii-boxes/boxes.git'
  sha1 'dcd466efe1878e4ee612a5eee8f4caf8baac7f31'

  bottle do
    sha1 "fc7adbf52e65497a6203df64bd46c5187b6202ca" => :yosemite
    sha1 "692ee3b2ce7a9209fb2e5dea6b210e05d93a4ffd" => :mavericks
    sha1 "7a53ae56f1202d8c908cbaa8caddf7f501b07158" => :mountain_lion
  end

  def install
    ENV.m32

    # distro uses /usr/share/boxes change to prefix
    system "make",
      "GLOBALCONF=#{share}/boxes-config",
      "CC=#{ENV.cc}",
      # Force 32 bit compile
      "CFLAGS_ADDTL=-m32",
      "LDFLAGS_ADDTL=-m32"

    bin.install 'src/boxes'
    man1.install 'doc/boxes.1'
    share.install 'boxes-config'
  end
end