package.py : added CMakePackage, changed qhull, ibmisc, openjpeg to work as examples

This commit is contained in:
alalazo
2016-07-13 17:36:06 +02:00
parent ad16830f71
commit 7cedd620f1
4 changed files with 161 additions and 125 deletions

View File

@@ -24,7 +24,8 @@
##############################################################################
from spack import *
class Qhull(Package):
class Qhull(CMakePackage):
"""Qhull computes the convex hull, Delaunay triangulation, Voronoi
diagram, halfspace intersection about a point, furt hest-site
Delaunay triangulation, and furthest-site Voronoi diagram. The
@@ -47,8 +48,7 @@ class Qhull(Package):
depends_on('cmake')
def install(self, spec, prefix):
with working_dir('spack-build', create=True):
cmake('..', *std_cmake_args)
make()
make("install")
@CMakePackage.sanity_check('build')
@CMakePackage.on_package_attributes(run_tests=True)
def check(self):
make('test')