libSplash & PNGwriter: CMakePackage (#3739)
Use new CMakePackage base class
This commit is contained in:
parent
95e401fe80
commit
f31a38532f
2 changed files with 2 additions and 18 deletions
|
@ -25,7 +25,7 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Libsplash(Package):
|
class Libsplash(CMakePackage):
|
||||||
"""libSplash aims at developing a HDF5-based I/O library for HPC
|
"""libSplash aims at developing a HDF5-based I/O library for HPC
|
||||||
simulations. It is created as an easy-to-use frontend for the standard HDF5
|
simulations. It is created as an easy-to-use frontend for the standard HDF5
|
||||||
library with support for MPI processes in a cluster environment. While the
|
library with support for MPI processes in a cluster environment. While the
|
||||||
|
@ -54,11 +54,3 @@ class Libsplash(Package):
|
||||||
depends_on('hdf5@1.8.6:')
|
depends_on('hdf5@1.8.6:')
|
||||||
depends_on('hdf5+mpi', when='+mpi')
|
depends_on('hdf5+mpi', when='+mpi')
|
||||||
depends_on('mpi', when='+mpi')
|
depends_on('mpi', when='+mpi')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
|
||||||
with working_dir('spack-build', create=True):
|
|
||||||
cmake('-DCMAKE_INSTALL_PREFIX=%s' % prefix,
|
|
||||||
'..', *std_cmake_args)
|
|
||||||
|
|
||||||
make()
|
|
||||||
make('install')
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Pngwriter(Package):
|
class Pngwriter(CMakePackage):
|
||||||
"""PNGwriter is a very easy to use open source graphics library that uses
|
"""PNGwriter is a very easy to use open source graphics library that uses
|
||||||
PNG as its output format. The interface has been designed to be as simple
|
PNG as its output format. The interface has been designed to be as simple
|
||||||
and intuitive as possible. It supports plotting and reading pixels in the
|
and intuitive as possible. It supports plotting and reading pixels in the
|
||||||
|
@ -49,11 +49,3 @@ class Pngwriter(Package):
|
||||||
depends_on('libpng')
|
depends_on('libpng')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
depends_on('freetype')
|
depends_on('freetype')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
|
||||||
with working_dir('spack-build', create=True):
|
|
||||||
cmake('-DCMAKE_INSTALL_PREFIX=%s' % prefix,
|
|
||||||
'..', *std_cmake_args)
|
|
||||||
|
|
||||||
make()
|
|
||||||
make('install')
|
|
||||||
|
|
Loading…
Reference in a new issue