2013-01-09 21:44:05 +00:00
|
|
|
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
|
2013-03-10 04:51:48 +00:00
|
|
|
system *%W{#{bin}/cpulimit -l 10 ls}
|
2013-01-09 21:44:05 +00:00
|
|
|
end
|
|
|
|
end
|