summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorhealther <healther@users.noreply.github.com>2017-08-16 17:29:02 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2017-08-16 10:29:02 -0500
commitf6a452d3ad1352c05d3f971aa2e12f993daf0832 (patch)
tree339ae2950526b466117c2ea6b363dcdd2f0be453 /var
parentdbdf38f61738efe4fb4b6eb6b6b64c0f7dc6d0c5 (diff)
downloadspack-f6a452d3ad1352c05d3f971aa2e12f993daf0832.tar.gz
spack-f6a452d3ad1352c05d3f971aa2e12f993daf0832.tar.bz2
spack-f6a452d3ad1352c05d3f971aa2e12f993daf0832.tar.xz
spack-f6a452d3ad1352c05d3f971aa2e12f993daf0832.zip
Add package rr (#5105)
* Add package rr * Flake8 fixes * fix flake8 no2 * add future dependency stub, add hw dependency and clean up * add missing self
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/rr/package.py66
1 files changed, 66 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rr/package.py b/var/spack/repos/builtin/packages/rr/package.py
new file mode 100644
index 0000000000..5337d7eef4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/rr/package.py
@@ -0,0 +1,66 @@
+##############################################################################
+# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/llnl/spack
+# Please also see the LICENSE file for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class Rr(CMakePackage):
+ """Application execution recorder, player and debugger"""
+ homepage = "http://rr-project.org/"
+ url = "https://github.com/mozilla/rr/archive/4.5.0.tar.gz"
+
+ version('4.5.0', '1ec0aed0559b81143f59a200eeb302ef')
+ version('4.4.0', '6d1cbb4fafbf6711114369907cf1efb1')
+ version('4.3.0', '31470564e8b7eb317f619e4ef2244082')
+
+ depends_on('gdb')
+ depends_on('git')
+ depends_on('zlib')
+ # depends_on('capnproto', when='@4.6:') # not yet in spack
+ # depends_on('libcapnp') # needed for future releases
+ depends_on('pkg-config', type='build')
+ depends_on('py-pexpect', type='build') # actually tests
+
+ # rr needs architecture Nehalem and beyond, how can spack
+ # test this?
+
+ # Only 'Release' is supported at the moment
+ variant('build_type', default='Release',
+ description='The build type to build',
+ values=('Release'))
+
+ def patch(self):
+ # because otherwise CMake would try and fail to set RPATH of
+ # rr_exec_stub
+ filter_file(
+ r'^(install\(TARGETS .*)\s*rr_exec_stub', r'\1', 'CMakeLists.txt')
+
+ def cmake_args(self):
+ return ['-Ddisable32bit=ON']
+
+ @run_after('install')
+ def install_stub(self):
+ with working_dir(self.build_directory):
+ mkdirp(self.prefix.bin)
+ install('bin/rr_exec_stub', self.prefix.bin)