summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Todd Gamblin <gamblin2@llnl.gov>2014-06-05 17:40:00 -0700
committerGeorge Todd Gamblin <gamblin2@llnl.gov>2014-06-05 17:40:00 -0700
commitc66a6a16f9224ee340ba3f602115dc638f5807c4 (patch)
treec0934b905d9f3175aeae33c95b35d050d5d01398 /var
parentd89ee5795b8adf96b3cbfd8a9a97b0f4bd4ed573 (diff)
parente402a2e27cc2942a20916615c8eb06999c0320e6 (diff)
downloadspack-c66a6a16f9224ee340ba3f602115dc638f5807c4.tar.gz
spack-c66a6a16f9224ee340ba3f602115dc638f5807c4.tar.bz2
spack-c66a6a16f9224ee340ba3f602115dc638f5807c4.tar.xz
spack-c66a6a16f9224ee340ba3f602115dc638f5807c4.zip
Merge pull request #11 in SCALE/spack from features/tmux to develop
# By David Beckingsale # Via David Beckingsale * commit 'e402a2e27cc2942a20916615c8eb06999c0320e6': Added tmux and supporting packages (ncurses and libevent)
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/libevent/package.py31
-rw-r--r--var/spack/packages/ncurses/package.py21
-rw-r--r--var/spack/packages/tmux/package.py24
3 files changed, 76 insertions, 0 deletions
diff --git a/var/spack/packages/libevent/package.py b/var/spack/packages/libevent/package.py
new file mode 100644
index 0000000000..9b45b532d7
--- /dev/null
+++ b/var/spack/packages/libevent/package.py
@@ -0,0 +1,31 @@
+from spack import *
+
+class Libevent(Package):
+ """The libevent API provides a mechanism to execute a callback function
+ when a specific event occurs on a file descriptor or after a timeout has been
+ reached. Furthermore, libevent also support callbacks due to signals or regular
+ timeouts.
+ """
+
+ homepage = "http://libevent.org"
+ url = "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
+ list_url = "http://libevent.org/old-releases.html"
+
+ versions = {
+ '2.0.21' : 'b2405cc9ebf264aa47ff615d9de527a2',
+ '2.0.20' : '94270cdee32c0cd0aa9f4ee6ede27e8e',
+ '2.0.19' : '91111579769f46055b0a438f5cc59572',
+ '2.0.18' : 'aa1ce9bc0dee7b8084f6855765f2c86a',
+ '2.0.17' : 'dad64aaaaff16b5fbec25160c06fee9a',
+ '2.0.16' : '899efcffccdb3d5111419df76e7dc8df',
+ '2.0.15' : '2643abe7ba242df15c08b2cc14ec8759',
+ '2.0.14' : 'cac0f379da35d3b98f83ac16fcfe1df4',
+ '2.0.13' : 'af786b4b3f790c9d3279792edf7867fc',
+ '2.0.12' : '42986228baf95e325778ed328a93e070',
+ }
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+
+ make()
+ make("install")
diff --git a/var/spack/packages/ncurses/package.py b/var/spack/packages/ncurses/package.py
new file mode 100644
index 0000000000..221860374b
--- /dev/null
+++ b/var/spack/packages/ncurses/package.py
@@ -0,0 +1,21 @@
+from spack import *
+
+class Ncurses(Package):
+ """The ncurses (new curses) library is a free software emulation of curses
+ in System V Release 4.0, and more. It uses terminfo format, supports pads and
+ color and multiple highlights and forms characters and function-key mapping,
+ and has all the other SYSV-curses enhancements over BSD curses.
+ """
+
+ homepage = "http://invisible-island.net/ncurses/ncurses.html"
+ url = "http://invisible-island.net/datafiles/release/ncurses.tar.gz"
+
+ versions = { 'stable' : '8cb9c412e5f2d96bc6f459aa8c6282a1' }
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+ make()
+ make("install")
+
+ def url_for_version(self, version):
+ return "http://invisible-island.net/datafiles/release/ncurses.tar.gz"
diff --git a/var/spack/packages/tmux/package.py b/var/spack/packages/tmux/package.py
new file mode 100644
index 0000000000..d4e3d9f829
--- /dev/null
+++ b/var/spack/packages/tmux/package.py
@@ -0,0 +1,24 @@
+from spack import *
+
+class Tmux(Package):
+ """tmux is a terminal multiplexer. What is a terminal multiplexer? It lets
+ you switch easily between several programs in one terminal, detach them (they
+ keep running in the background) and reattach them to a different terminal. And
+ do a lot more.
+ """
+
+ homepage = "http://tmux.sourceforge.net"
+ url = "http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz"
+
+ versions = { '1.9a' : 'b07601711f96f1d260b390513b509a2d', }
+
+ depends_on('libevent')
+ depends_on('ncurses')
+
+ def install(self, spec, prefix):
+ configure(
+ "--prefix=%s" % prefix,
+ "PKG_CONFIG_PATH=%s:%s" % (spec['libevent'].prefix, spec['ncurses'].prefix))
+
+ make()
+ make("install")