Massive conversion from Package to CMakePackage (#4975)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Tethex(Package):
|
||||
class Tethex(CMakePackage):
|
||||
"""Tethex is designed to convert triangular (in 2D) or tetrahedral (in 3D)
|
||||
Gmsh's mesh to quadrilateral or hexahedral one respectively. These meshes
|
||||
can be used in software packages working with hexahedrals only - for
|
||||
@@ -38,12 +38,13 @@ class Tethex(Package):
|
||||
version('0.0.7', '6c9e4a18a6637deb4400c6d77ec03184')
|
||||
version('develop', git='https://github.com/martemyev/tethex.git')
|
||||
|
||||
depends_on('cmake', type='build')
|
||||
variant('build_type', default='Release',
|
||||
description='The build type to build',
|
||||
values=('Debug', 'Release'))
|
||||
|
||||
depends_on('cmake@2.8:', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
cmake('.')
|
||||
make()
|
||||
|
||||
# install by hand
|
||||
mkdirp(prefix.bin)
|
||||
install('tethex', prefix.bin)
|
||||
|
Reference in New Issue
Block a user