blob: 11eccd5022da944f411f2644b118ba973a53b85d (
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
31
|
require 'formula'
class Boxes < Formula
homepage 'http://boxes.thomasjensen.com/'
url 'https://github.com/ascii-boxes/boxes/archive/v1.1.1.tar.gz'
head 'https://github.com/ascii-boxes/boxes.git'
sha1 'fff0d7636c50a4ffa88389981a3d32e8d7a83b39'
bottle do
sha1 "6ace9ba08d5d1b528015598c5ed44b86c35c15f3" => :yosemite
sha1 "132294a712de399d24b7ebdc55ea611a1f9b0fe6" => :mavericks
sha1 "3078e1f6738312c3bc7b3c4a38043b037cc01fa0" => :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
# These flags are only (as of 1.1.1) supported on HEAD
"CFLAGS_ADDTL=-m32",
"LDFLAGS_ADDTL=-m32"
bin.install 'src/boxes'
man1.install 'doc/boxes.1'
share.install 'boxes-config'
end
end
|