summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayeul d'Avezac <m.davezac@ucl.ac.uk>2017-04-04 12:55:02 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-04 06:55:02 -0500
commit0e32369a264f1fdf5656ec24b188c77c699f51a7 (patch)
tree9e88425ce9cdf11ed4f196c22ce69ca0c31ec584
parent8276bd75fce8b0b10a7189f345e737d2d8fe8cfa (diff)
downloadspack-0e32369a264f1fdf5656ec24b188c77c699f51a7.tar.gz
spack-0e32369a264f1fdf5656ec24b188c77c699f51a7.tar.bz2
spack-0e32369a264f1fdf5656ec24b188c77c699f51a7.tar.xz
spack-0e32369a264f1fdf5656ec24b188c77c699f51a7.zip
Cppcheck (#3684)
* Adds cppcheck version 1.72 * cppcheck installation requires cfg files Without these files, cppcheck does not work correctly
-rw-r--r--var/spack/repos/builtin/packages/cppcheck/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cppcheck/package.py b/var/spack/repos/builtin/packages/cppcheck/package.py
index fd48fcb7e3..254674c7bf 100644
--- a/var/spack/repos/builtin/packages/cppcheck/package.py
+++ b/var/spack/repos/builtin/packages/cppcheck/package.py
@@ -23,6 +23,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
+import os
+import shutil
class Cppcheck(Package):
@@ -30,11 +32,13 @@ class Cppcheck(Package):
homepage = "http://cppcheck.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.68/cppcheck-1.68.tar.bz2"
+ version('1.72', '2bd36f91ae0191ef5273bb7f6dc0d72e')
version('1.68', 'c015195f5d61a542f350269030150708')
def install(self, spec, prefix):
# cppcheck does not have a configure script
- make()
+ make("CFGDIR=%s" % os.path.join(prefix, 'cfg'))
# manually install the final cppcheck binary
mkdirp(prefix.bin)
install('cppcheck', prefix.bin)
+ shutil.copytree('cfg', os.path.join(prefix, 'cfg'))