diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cpulimit.rb | 18 |
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 |
