aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boxes.rb
diff options
context:
space:
mode:
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