aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boxes.rb
diff options
context:
space:
mode:
authorDevin Weaver2010-07-01 14:59:12 -0400
committerAdam Vandenberg2010-07-01 23:23:04 -0700
commit7e00404df0493724f1eca96d7e9989e7abdf5fd8 (patch)
tree541d6e83a6ea4baa412953705fb0656e788bf48f /Library/Formula/boxes.rb
parent9858ece197591c7c1b97a2d4bf212418f21140e4 (diff)
downloadhomebrew-7e00404df0493724f1eca96d7e9989e7abdf5fd8.tar.bz2
Adds new formula: boxes
http://boxes.thomasjensen.com/ /* _\|/_ (o o) +----oOO-{_}-OOo----+ | boxes draws any | | kind of boxes | | around your text! | +------------------*/ A simple text filter that will add boxes of ASCII text around the filtered text. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/boxes.rb')
-rw-r--r--Library/Formula/boxes.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/boxes.rb b/Library/Formula/boxes.rb
new file mode 100644
index 000000000..3e23e93b2
--- /dev/null
+++ b/Library/Formula/boxes.rb
@@ -0,0 +1,21 @@
+require 'formula'
+
+class Boxes <Formula
+ url 'http://boxes.thomasjensen.com/download/boxes-1.1.src.tar.gz'
+ homepage 'http://boxes.thomasjensen.com/'
+ md5 'd2ef9fa28a87bf32b3fe0c47ab82fa97'
+
+ def install
+ # distro uses /usr/share/boxes change to prefix
+ inreplace 'Makefile' do |contents|
+ contents.change_make_var! "GLOBALCONF", "#{share}/boxes-config"
+ end
+
+ system "make"
+
+ # No make install have to manually copy files
+ bin.install 'src/boxes'
+ man1.install 'doc/boxes.1'
+ share.install 'boxes-config'
+ end
+end