aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tty-clock.rb
diff options
context:
space:
mode:
authorphySi02013-10-17 03:38:50 +0100
committerAdam Vandenberg2013-10-28 18:56:02 -0700
commit31b7f62c903c99efa2d7c26e9827f2ccbc8d9923 (patch)
treed67544cc508f86269ba9bf439a9c6a9ceabe4ba6 /Library/Formula/tty-clock.rb
parentefc12a9eb54c1243cd211e4b573ab98b86788a21 (diff)
downloadhomebrew-31b7f62c903c99efa2d7c26e9827f2ccbc8d9923.tar.bz2
tty-clock 0.1
Closes #23348. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/tty-clock.rb')
-rw-r--r--Library/Formula/tty-clock.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/tty-clock.rb b/Library/Formula/tty-clock.rb
new file mode 100644
index 000000000..cf0e148b7
--- /dev/null
+++ b/Library/Formula/tty-clock.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class TtyClock < Formula
+ homepage 'https://github.com/xorg62/tty-clock'
+ url 'https://github.com/xorg62/tty-clock/archive/v0.1.tar.gz'
+ sha1 '5350a9c6c391f8a87fd8f467ca3aeb932585e69e'
+ head 'https://github.com/xorg62/tty-clock.git'
+
+ def install
+ inreplace "Makefile", "/usr/local/bin/", "#{bin}/"
+ system "make"
+ system "make install"
+ end
+
+ test do
+ system "#{bin}/tty-clock -i"
+ end
+end