2011-03-10 05:11:03 +00:00
|
|
|
class Boxes < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Draw boxes around text"
|
2015-01-23 09:15:18 +00:00
|
|
|
homepage "http://boxes.thomasjensen.com/"
|
|
|
|
url "https://github.com/ascii-boxes/boxes/archive/v1.1.2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "4d5e536be91b476ee48640bef9122f3114b16fe2da9b9906947308b94682c5fe"
|
2015-10-05 12:06:25 +00:00
|
|
|
head "https://github.com/ascii-boxes/boxes.git"
|
2010-07-01 18:59:12 +00:00
|
|
|
|
2014-12-31 04:59:19 +00:00
|
|
|
bottle do
|
2015-01-20 22:09:10 +00:00
|
|
|
sha1 "fc7adbf52e65497a6203df64bd46c5187b6202ca" => :yosemite
|
|
|
|
sha1 "692ee3b2ce7a9209fb2e5dea6b210e05d93a4ffd" => :mavericks
|
|
|
|
sha1 "7a53ae56f1202d8c908cbaa8caddf7f501b07158" => :mountain_lion
|
2014-12-31 04:59:19 +00:00
|
|
|
end
|
|
|
|
|
2010-07-01 18:59:12 +00:00
|
|
|
def install
|
2014-11-18 20:10:47 +00:00
|
|
|
ENV.m32
|
|
|
|
|
2010-07-01 18:59:12 +00:00
|
|
|
# distro uses /usr/share/boxes change to prefix
|
2014-11-18 20:10:47 +00:00
|
|
|
system "make",
|
|
|
|
"GLOBALCONF=#{share}/boxes-config",
|
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
# Force 32 bit compile
|
|
|
|
"CFLAGS_ADDTL=-m32",
|
|
|
|
"LDFLAGS_ADDTL=-m32"
|
2010-07-01 18:59:12 +00:00
|
|
|
|
2015-01-23 09:15:18 +00:00
|
|
|
bin.install "src/boxes"
|
|
|
|
man1.install "doc/boxes.1"
|
|
|
|
share.install "boxes-config"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "/* test brew */", pipe_output("#{bin}/boxes", "test brew")
|
2010-07-01 18:59:12 +00:00
|
|
|
end
|
|
|
|
end
|