summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libevent
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-11-26 14:19:27 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-11-26 14:19:27 -0800
commit89d5127900dda96b2a583c4c1a9bdac8e51c1c15 (patch)
treefe491c5c4046702cc9ddb84d63375e28a610f1b1 /var/spack/repos/builtin/packages/libevent
parent04f032d6e397ce219a673c93277683060def52fd (diff)
downloadspack-89d5127900dda96b2a583c4c1a9bdac8e51c1c15.tar.gz
spack-89d5127900dda96b2a583c4c1a9bdac8e51c1c15.tar.bz2
spack-89d5127900dda96b2a583c4c1a9bdac8e51c1c15.tar.xz
spack-89d5127900dda96b2a583c4c1a9bdac8e51c1c15.zip
New, cleaner package repository structure.
Package repositories now look like this: top-level-dir/ repo.yaml packages/ libelf/ package.py mpich/ package.py ... This leaves room at the top level for additional metadata, source, per-repo configs, indexes, etc., and it makes it easy to see that something is a spack repo (just look for repo.yaml and packages).
Diffstat (limited to 'var/spack/repos/builtin/packages/libevent')
-rw-r--r--var/spack/repos/builtin/packages/libevent/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libevent/package.py b/var/spack/repos/builtin/packages/libevent/package.py
new file mode 100644
index 0000000000..11b1083d67
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libevent/package.py
@@ -0,0 +1,30 @@
+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"
+
+ version('2.0.21', 'b2405cc9ebf264aa47ff615d9de527a2')
+ version('2.0.20', '94270cdee32c0cd0aa9f4ee6ede27e8e')
+ version('2.0.19', '91111579769f46055b0a438f5cc59572')
+ version('2.0.18', 'aa1ce9bc0dee7b8084f6855765f2c86a')
+ version('2.0.17', 'dad64aaaaff16b5fbec25160c06fee9a')
+ version('2.0.16', '899efcffccdb3d5111419df76e7dc8df')
+ version('2.0.15', '2643abe7ba242df15c08b2cc14ec8759')
+ version('2.0.14', 'cac0f379da35d3b98f83ac16fcfe1df4')
+ version('2.0.13', 'af786b4b3f790c9d3279792edf7867fc')
+ version('2.0.12', '42986228baf95e325778ed328a93e070')
+
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+
+ make()
+ make("install")