summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrus Harrison <cyrush@llnl.gov>2015-04-30 22:42:53 -0700
committerCyrus Harrison <cyrush@llnl.gov>2015-04-30 22:42:53 -0700
commit8c4fe6d2492ffbbf0aa0469849e36b2cca1ae583 (patch)
tree77aa2024a231836e14f3acd793536792f52bd259
parent1d6524f299644ef0db07d526bc71c9f4a1c0bf40 (diff)
downloadspack-8c4fe6d2492ffbbf0aa0469849e36b2cca1ae583.tar.gz
spack-8c4fe6d2492ffbbf0aa0469849e36b2cca1ae583.tar.bz2
spack-8c4fe6d2492ffbbf0aa0469849e36b2cca1ae583.tar.xz
spack-8c4fe6d2492ffbbf0aa0469849e36b2cca1ae583.zip
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")