aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cpulimit.rb
diff options
context:
space:
mode:
authorTobias Tangemann2013-01-09 22:44:05 +0100
committerJack Nagel2013-03-09 22:37:22 -0600
commitae654a1b98f8271e1c75c6162cd8f99d58faf282 (patch)
treeca64a853e00e1ec7e4114de6d3b1048eb4154ac2 /Library/Formula/cpulimit.rb
parentcb7542229eecfe6ce5ba3ea9be872054b3ae3044 (diff)
downloadhomebrew-ae654a1b98f8271e1c75c6162cd8f99d58faf282.tar.bz2
cpulimit 0.1
Closes #16975. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/cpulimit.rb')
-rw-r--r--Library/Formula/cpulimit.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/cpulimit.rb b/Library/Formula/cpulimit.rb
new file mode 100644
index 000000000..7bea6e92a
--- /dev/null
+++ b/Library/Formula/cpulimit.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Cpulimit < Formula
+ homepage 'http://cpulimit.sourceforge.net/'
+ url 'https://github.com/opsengine/cpulimit/archive/v0.1.tar.gz'
+ sha1 'b7c16821a3e04698b79b28905b68b8c518417466'
+
+ head 'https://github.com/opsengine/cpulimit.git'
+
+ def install
+ system 'make'
+ bin.install 'src/cpulimit'
+ end
+
+ test do
+ system 'cpulimit', '-l', '10', 'ls'
+ end
+end