added simple spack package files for uncrustify and cppcheck

This commit is contained in:
Cyrus Harrison 2015-04-30 22:42:53 -07:00
parent 1d6524f299
commit 8c4fe6d249
2 changed files with 29 additions and 0 deletions

View File

@ -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)

View File

@ -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")