diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-04-25 11:31:53 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-04-29 10:59:37 -0700 |
commit | a0c91791c5ac995b80111a92c94d8fb760caa6e3 (patch) | |
tree | e0c7785361bb5bc0fcc4721b847a95994fabcf14 | |
parent | 07ef48a036c6bfb661e10b38ece655b929510269 (diff) | |
download | spack-a0c91791c5ac995b80111a92c94d8fb760caa6e3.tar.gz spack-a0c91791c5ac995b80111a92c94d8fb760caa6e3.tar.bz2 spack-a0c91791c5ac995b80111a92c94d8fb760caa6e3.tar.xz spack-a0c91791c5ac995b80111a92c94d8fb760caa6e3.zip |
SPACK-25: Add package for boost. Works on Linux currently.
-rw-r--r-- | var/spack/packages/boost/package.py | 60 | ||||
-rw-r--r-- | var/spack/packages/dyninst/package.py | 1 |
2 files changed, 61 insertions, 0 deletions
diff --git a/var/spack/packages/boost/package.py b/var/spack/packages/boost/package.py new file mode 100644 index 0000000000..71c3058d79 --- /dev/null +++ b/var/spack/packages/boost/package.py @@ -0,0 +1,60 @@ +from spack import * + +class Boost(Package): + """Boost provides free peer-reviewed portable C++ source + libraries, emphasizing libraries that work well with the C++ + Standard Library. + + Boost libraries are intended to be widely useful, and usable + across a broad spectrum of applications. The Boost license + encourages both commercial and non-commercial use. + """ + homepage = "http://www.boost.org" + url = "http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2" + list_url = "http://sourceforge.net/projects/boost/files/boost/" + list_depth = 2 + + versions = { + '1.55.0' : 'd6eef4b4cacb2183f2bf265a5a03a354', + '1.54.0' : '15cb8c0803064faef0c4ddf5bc5ca279', + '1.53.0' : 'a00d22605d5dbcfb4c9936a9b35bc4c2', + '1.52.0' : '3a855e0f919107e0ca4de4d84ad3f750', + '1.51.0' : '4b6bd483b692fd138aef84ed2c8eb679', + '1.50.0' : '52dd00be775e689f55a987baebccc462', + '1.49.0' : '0d202cb811f934282dea64856a175698', + '1.48.0' : 'd1e9a7a7f532bb031a3c175d86688d95', + '1.47.0' : 'a2dc343f7bc7f83f8941e47ed4a18200', + '1.46.1' : '7375679575f4c8db605d426fc721d506', + '1.46.0' : '37b12f1702319b73876b0097982087e0', + '1.45.0' : 'd405c606354789d0426bc07bea617e58', + '1.44.0' : 'f02578f5218f217a9f20e9c30e119c6a', + '1.43.0' : 'dd49767bfb726b0c774f7db0cef91ed1', + '1.42.0' : '7bf3b4eb841b62ffb0ade2b82218ebe6', + '1.41.0' : '8bb65e133907db727a2a825c5400d0a6', + '1.40.0' : 'ec3875caeac8c52c7c129802a8483bd7', + '1.39.0' : 'a17281fd88c48e0d866e1a12deecbcc0', + '1.38.0' : '5eca2116d39d61382b8f8235915cb267', + '1.37.0' : '8d9f990bfb7e83769fa5f1d6f065bc92', + '1.36.0' : '328bfec66c312150e4c2a78dcecb504b', + '1.35.0' : 'dce952a7214e72d6597516bcac84048b', + '1.34.1' : '2d938467e8a448a2c9763e0a9f8ca7e5', + '1.34.0' : 'ed5b9291ffad776f8757a916e1726ad0' + } + + def url_for_version(self, version): + """Handle Boost's weird URLs, which write the version two different ways.""" + parts = [str(p) for p in Version(version)] + dots = ".".join(parts) + underscores = "_".join(parts) + return "http://downloads.sourceforge.net/project/boost/boost/%s/boost_%s.tar.bz2" % ( + dots, underscores) + + + def install(self, spec, prefix): + bootstrap = Executable('./bootstrap.sh') + bootstrap() + + b2 = Executable('./b2') + b2('install', + '-j %s' % make_jobs, + '--prefix=%s' % prefix) diff --git a/var/spack/packages/dyninst/package.py b/var/spack/packages/dyninst/package.py index 2318317de5..3f8696b6d8 100644 --- a/var/spack/packages/dyninst/package.py +++ b/var/spack/packages/dyninst/package.py @@ -34,6 +34,7 @@ class Dyninst(Package): depends_on("libelf") depends_on("libdwarf") + depends_on("boost@1.42:") def install(self, spec, prefix): configure("--prefix=" + prefix) |