From 8c4fe6d2492ffbbf0aa0469849e36b2cca1ae583 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Thu, 30 Apr 2015 22:42:53 -0700 Subject: added simple spack package files for uncrustify and cppcheck --- var/spack/packages/cppcheck/package.py | 15 +++++++++++++++ var/spack/packages/uncrustify/package.py | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 var/spack/packages/cppcheck/package.py create mode 100644 var/spack/packages/uncrustify/package.py 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") -- cgit v1.2.3-70-g09d2