diff options
| author | squircle | 2014-06-26 14:00:01 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-27 08:30:14 +0100 |
| commit | f1f2a8af3914c7abdd211c7b0923110002bcf46b (patch) | |
| tree | 4d347f4b952db59c5d3b7806d8d85c1a33f09611 /Library/Formula | |
| parent | bf2f76de2ae6fb05ecaa68833da7e89bb85c68d0 (diff) | |
| download | homebrew-f1f2a8af3914c7abdd211c7b0923110002bcf46b.tar.bz2 | |
slurm 0.4.0 (new formula)
Add a formula for slurm, an ncurses network load/traffic monitor.
https://github.com/mattthias/slurm
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/slurm.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/slurm.rb b/Library/Formula/slurm.rb new file mode 100644 index 000000000..f3fbc0732 --- /dev/null +++ b/Library/Formula/slurm.rb @@ -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'] ) |
