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/"
|
2017-03-18 10:04:18 +00:00
|
|
|
url "https://github.com/ascii-boxes/boxes/archive/v1.2.tar.gz"
|
|
|
|
sha256 "ba237f6d4936bdace133d5f370674fd4c63bf0d767999a104bada6460c5d1913"
|
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
|
2017-03-18 10:08:43 +00:00
|
|
|
sha256 "ebb5d353fb518ceb79ad3f52c0e53e867c5fc7bef1577cdca712ce91e522af56" => :sierra
|
|
|
|
sha256 "6f0a27e8bad4e4294bf4b4f82d1774eaf987cc7e8e6486f3204619ab84f01b13" => :el_capitan
|
|
|
|
sha256 "ae79b8cff43636d551a7f3e34dd74c5d6c15c526c79b6a9ad6b0fb2d3b60c0e0" => :yosemite
|
2014-12-31 04:59:19 +00:00
|
|
|
end
|
|
|
|
|
2017-03-13 13:44:06 +00:00
|
|
|
def install
|
2010-07-01 18:59:12 +00:00
|
|
|
# distro uses /usr/share/boxes change to prefix
|
2017-03-13 13:44:06 +00:00
|
|
|
system "make", "GLOBALCONF=#{share}/boxes-config", "CC=#{ENV.cc}"
|
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
|
2017-03-17 06:27:07 +00:00
|
|
|
assert_match "test brew", pipe_output("#{bin}/boxes", "test brew")
|
2010-07-01 18:59:12 +00:00
|
|
|
end
|
|
|
|
end
|