summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")