summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorhealther <healther@users.noreply.github.com>2018-04-21 17:26:37 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-04-21 10:26:37 -0500
commit8cc24fa20bb4b805d6bf0a854c15bd375e614c00 (patch)
treec9594ea917aadc784370dc403bd5fe768445424b /var
parent5794f432a951f5d7ceb90357a793acba6322876e (diff)
downloadspack-8cc24fa20bb4b805d6bf0a854c15bd375e614c00.tar.gz
spack-8cc24fa20bb4b805d6bf0a854c15bd375e614c00.tar.bz2
spack-8cc24fa20bb4b805d6bf0a854c15bd375e614c00.tar.xz
spack-8cc24fa20bb4b805d6bf0a854c15bd375e614c00.zip
add variant htmlreport to package cppcheck (#7824)
Change-Id: I31766d3ceb4fa8852b9bdc82444e36514e760f4b
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cppcheck/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cppcheck/package.py b/var/spack/repos/builtin/packages/cppcheck/package.py
index ef8a849a1e..6286941b84 100644
--- a/var/spack/repos/builtin/packages/cppcheck/package.py
+++ b/var/spack/repos/builtin/packages/cppcheck/package.py
@@ -37,6 +37,10 @@ class Cppcheck(Package):
version('1.72', '2bd36f91ae0191ef5273bb7f6dc0d72e')
version('1.68', 'c015195f5d61a542f350269030150708')
+ variant('htmlreport', default=False, description="Install cppcheck-htmlreport")
+
+ depends_on('py-pygments', when='+htmlreport', type='run')
+
def install(self, spec, prefix):
# cppcheck does not have a configure script
make("CFGDIR=%s" % os.path.join(prefix, 'cfg'))
@@ -44,3 +48,5 @@ class Cppcheck(Package):
mkdirp(prefix.bin)
install('cppcheck', prefix.bin)
shutil.copytree('cfg', os.path.join(prefix, 'cfg'))
+ if spec.satisfies('+htmlreport'):
+ install('htmlreport/cppcheck-htmlreport', prefix.bin)