diff options
author | Joseph Ciurej <ciurej1@llnl.gov> | 2016-02-16 13:24:01 -0800 |
---|---|---|
committer | Joseph Ciurej <ciurej1@llnl.gov> | 2016-02-16 13:24:01 -0800 |
commit | 09254014b182ccf4cbc4ce291141b7ab39b9171d (patch) | |
tree | d802a494078fb20cb66082f352d58bd78a7e2c92 /var | |
parent | 3c8bbeafc78c00cd93fa4526a0e55bf16d36b454 (diff) | |
download | spack-09254014b182ccf4cbc4ce291141b7ab39b9171d.tar.gz spack-09254014b182ccf4cbc4ce291141b7ab39b9171d.tar.bz2 spack-09254014b182ccf4cbc4ce291141b7ab39b9171d.tar.xz spack-09254014b182ccf4cbc4ce291141b7ab39b9171d.zip |
Added the installation files for the "TetGen" package.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/tetgen/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tetgen/package.py b/var/spack/repos/builtin/packages/tetgen/package.py new file mode 100644 index 0000000000..30c2b76655 --- /dev/null +++ b/var/spack/repos/builtin/packages/tetgen/package.py @@ -0,0 +1,28 @@ +from spack import * + +class Tetgen(Package): + """TetGen is a program and library that can be used to generate tetrahedral + meshes for given 3D polyhedral domains. TetGen generates exact constrained + Delaunay tetrahedralizations, boundary conforming Delaunay meshes, and + Voronoi paritions.""" + + homepage = "http://www.tetgen.org" + url = "http://www.tetgen.org/files/tetgen1.4.3.tar.gz" + + version('1.4.3', 'd6a4bcdde2ac804f7ec66c29dcb63c18') + + # TODO: Make this a build dependency once build dependencies are supported + # (see: https://github.com/LLNL/spack/pull/378). + depends_on('cmake@2.8.7:', when='@1.5.0:') + + def install(self, spec, prefix): + make('tetgen', 'tetlib') + + mkdirp(prefix.bin) + install('tetgen', prefix.bin) + + mkdirp(prefix.include) + install('tetgen.h', prefix.include) + + mkdirp(prefix.lib) + install('libtet.a', prefix.lib) |