diff options
| author | Baptiste Fontaine | 2015-01-23 10:15:18 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-23 18:05:00 +0100 |
| commit | b501b72529a36d3b5ef24627c07b21fe678a3d8b (patch) | |
| tree | 2510c53cd1b692669af56bc328cba88e47f50319 /Library | |
| parent | c7af756f1e3b299c1367b293eea8e6527f11f078 (diff) | |
| download | homebrew-b501b72529a36d3b5ef24627c07b21fe678a3d8b.tar.bz2 | |
boxes: modernize, test added
Closes #36157.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/boxes.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/boxes.rb b/Library/Formula/boxes.rb index de66d4a8d..66f0110f8 100644 --- a/Library/Formula/boxes.rb +++ b/Library/Formula/boxes.rb @@ -1,10 +1,8 @@ -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' + 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 @@ -23,8 +21,12 @@ class Boxes < Formula "CFLAGS_ADDTL=-m32", "LDFLAGS_ADDTL=-m32" - bin.install 'src/boxes' - man1.install 'doc/boxes.1' - share.install 'boxes-config' + 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") end end |
