From f31a38532f107460e788f8a14f3e7751d6887cfa Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 6 Apr 2017 21:33:19 +0200 Subject: libSplash & PNGwriter: CMakePackage (#3739) Use new CMakePackage base class --- var/spack/repos/builtin/packages/libsplash/package.py | 10 +--------- var/spack/repos/builtin/packages/pngwriter/package.py | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/var/spack/repos/builtin/packages/libsplash/package.py b/var/spack/repos/builtin/packages/libsplash/package.py index c87dae19be..eb302e596b 100644 --- a/var/spack/repos/builtin/packages/libsplash/package.py +++ b/var/spack/repos/builtin/packages/libsplash/package.py @@ -25,7 +25,7 @@ from spack import * -class Libsplash(Package): +class Libsplash(CMakePackage): """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 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+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') diff --git a/var/spack/repos/builtin/packages/pngwriter/package.py b/var/spack/repos/builtin/packages/pngwriter/package.py index 6a34ab5abf..2950129765 100644 --- a/var/spack/repos/builtin/packages/pngwriter/package.py +++ b/var/spack/repos/builtin/packages/pngwriter/package.py @@ -25,7 +25,7 @@ from spack import * -class Pngwriter(Package): +class Pngwriter(CMakePackage): """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 and intuitive as possible. It supports plotting and reading pixels in the @@ -49,11 +49,3 @@ class Pngwriter(Package): depends_on('libpng') depends_on('zlib') 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') -- cgit v1.2.3-70-g09d2