slurm 0.4.0 (new formula)
Add a formula for slurm, an ncurses network load/traffic monitor. https://github.com/mattthias/slurm
This commit is contained in:
parent
f72350b19b
commit
686a22ae5a
1 changed files with 36 additions and 0 deletions
36
Formula/slurm.rb
Normal file
36
Formula/slurm.rb
Normal file
|
@ -0,0 +1,36 @@
|
|||
require "formula"
|
||||
|
||||
class Slurm < Formula
|
||||
homepage "https://github.com/mattthias/slurm"
|
||||
url "https://github.com/mattthias/slurm/archive/upstream/0.4.0.tar.gz"
|
||||
sha1 "b50c2245513f1241f78a487504eb5e460aec9a04"
|
||||
|
||||
depends_on "scons" => :build
|
||||
|
||||
# patch to support colour ncurses on OS X
|
||||
# see https://github.com/mattthias/slurm/pull/2
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
scons
|
||||
bin.install "slurm"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/slurm", "-h"
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index 8c85b77..de3d82b 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -5,6 +5,8 @@ if os.uname()[0] == 'Linux':
|
||||
env.Append(CPPDEFINES=['_HAVE_NCURSES','_HAVE_NCURSES_COLOR'])
|
||||
elif os.uname()[0] == 'GNU/kFreeBSD':
|
||||
env.Append(CPPDEFINES=['_HAVE_NCURSES','_HAVE_NCURSES_COLOR'])
|
||||
+elif os.uname()[0] == 'Darwin':
|
||||
+ env.Append(CPPDEFINES=['_HAVE_NCURSES','_HAVE_NCURSES_COLOR'])
|
||||
|
||||
env.Append( LIBS = ['ncurses'] )
|
Loading…
Reference in a new issue