summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-05-01 11:07:34 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-05-01 11:07:34 -0700
commitbbc973cc5ffc08ec299523612b5025fdfe78408b (patch)
tree77aa2024a231836e14f3acd793536792f52bd259
parent1d6524f299644ef0db07d526bc71c9f4a1c0bf40 (diff)
parent8c4fe6d2492ffbbf0aa0469849e36b2cca1ae583 (diff)
downloadspack-bbc973cc5ffc08ec299523612b5025fdfe78408b.tar.gz
spack-bbc973cc5ffc08ec299523612b5025fdfe78408b.tar.bz2
spack-bbc973cc5ffc08ec299523612b5025fdfe78408b.tar.xz
spack-bbc973cc5ffc08ec299523612b5025fdfe78408b.zip
Merge pull request #41 from cyrush/code_chk_pkgs
added simple spack package files for uncrustify and cppcheck
-rw-r--r--var/spack/packages/cppcheck/package.py15
-rw-r--r--var/spack/packages/uncrustify/package.py14
2 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/packages/cppcheck/package.py b/var/spack/packages/cppcheck/package.py
new file mode 100644
index 0000000000..8e98f457ee
--- /dev/null
+++ b/var/spack/packages/cppcheck/package.py
@@ -0,0 +1,15 @@
+from spack import *
+
+class Cppcheck(Package):
+ """A tool for static C/C++ code analysis."""
+ homepage = "http://cppcheck.sourceforge.net/"
+ url = "http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.68/cppcheck-1.68.tar.bz2"
+
+ version('1.68', 'c015195f5d61a542f350269030150708')
+
+ def install(self, spec, prefix):
+ # cppcheck does not have a configure script
+ make()
+ # manually install the final cppcheck binary
+ mkdirp(prefix.bin)
+ install('cppcheck', prefix.bin)
diff --git a/var/spack/packages/uncrustify/package.py b/var/spack/packages/uncrustify/package.py
new file mode 100644
index 0000000000..d3f2d1b473
--- /dev/null
+++ b/var/spack/packages/uncrustify/package.py
@@ -0,0 +1,14 @@
+from spack import *
+
+class Uncrustify(Package):
+ """Source Code Beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA"""
+
+ homepage = "http://uncrustify.sourceforge.net/"
+ url = "http://downloads.sourceforge.net/project/uncrustify/uncrustify/uncrustify-0.61/uncrustify-0.61.tar.gz"
+
+ version('0.61', 'b6140106e74c64e831d0b1c4b6cf7727')
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+ make()
+ make("install")