summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMartin Pokorny <mpokorny@nrao.edu>2020-01-17 19:02:51 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2020-01-17 20:02:51 -0600
commitcacd57d3401c48490870df2a9c1b7ab51d0e5065 (patch)
tree245c8204621f1129c29c40d0bf43c69b7fae8b7c /var
parentc6a691182151341fbc554365903115bd834288bf (diff)
downloadspack-cacd57d3401c48490870df2a9c1b7ab51d0e5065.tar.gz
spack-cacd57d3401c48490870df2a9c1b7ab51d0e5065.tar.bz2
spack-cacd57d3401c48490870df2a9c1b7ab51d0e5065.tar.xz
spack-cacd57d3401c48490870df2a9c1b7ab51d0e5065.zip
Updates to casacore package (#14552)
* Add +cfitsio variant to wcslib dependency * Replace ncurses dependency with readline dependency casacore explicitly may depend on readline, not ncurses * Add workaround for casacore's readline dependency casacore optionally depends upon readline, but it's CMakeLists.txt provides no user control over whether or not readline becomes a dependency. As readline is often present by default on systems, it's better for this package to explicitly depend on readline in order to prevent linking to whatever system version of the library happens to be found during the build process. This should be considered a workaround until casacore's CMakeLists.txt is fixed. * Apply workaround for casacore's dependency on SOFA Similar to the issues with casacore's readline dependency, casacore's optional dependency on SOFA does not provide the user with a means of controlling the dependency during build time. Unlike the readline library, the SOFA library is unlikely to exist on most systems by default. As the SOFA dependency is only optionally used for testing casacore, requiring it by default is not a good workaround. Until casacore's CMakeLists.txt is fixed, this variant has been removed to avoid unexpected library dependencies in the installed package. * Add newer casacore versions * Add mpokorny to maintainer field
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/casacore/package.py25
1 files changed, 20 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/casacore/package.py b/var/spack/repos/builtin/packages/casacore/package.py
index 8ba7c9a80c..24bb8defb4 100644
--- a/var/spack/repos/builtin/packages/casacore/package.py
+++ b/var/spack/repos/builtin/packages/casacore/package.py
@@ -12,26 +12,41 @@ class Casacore(CMakePackage):
homepage = "https://github.com/casacore/casacore"
url = "https://github.com/casacore/casacore/archive/v2.4.1.tar.gz"
+ maintainers = ['mpokorny']
+
+ version('3.2.0', sha256='ae5d3786cb6dfdd7ebc5eecc0c724ff02bbf6929720bc23be43a027978e79a5f')
+ version('3.1.2', sha256='ac94f4246412eb45d503f1019cabe2bb04e3861e1f3254b832d9b1164ea5f281')
+ version('3.1.1', sha256='85d2b17d856592fb206b17e0a344a29330650a4269c80b87f8abb3eaf3dadad4')
+ version('3.1.0', sha256='a6adf2d77ad0d6f32995b1e297fd88d31ded9c3e0bb8f28966d7b35a969f7897')
+ version('3.0.0', sha256='6f0e68fd77b5c96299f7583a03a53a90980ec347bff9dfb4c0abb0e2933e6bcb')
version('2.4.1', sha256='58eccc875053b2c6fe44fe53b6463030ef169597ec29926936f18d27b5087d63')
variant('openmp', default=False, description='Build OpenMP support')
variant('shared', default=True, description='Build shared libraries')
- variant('sofa', default=False, description='Build SOFA support')
+ # see note below about the reason for disabling the "sofa" variant
+ # variant('sofa', default=False, description='Build SOFA support')
variant('fftw', default=False, description='Build FFTW3 support')
variant('hdf5', default=False, description='Build HDF5 support')
variant('python', default=False, description='Build python support')
- variant('ncurses', default=False, description='Build ncurses support')
depends_on('flex', type='build')
depends_on('bison', type='build')
depends_on('blas')
depends_on('lapack')
depends_on('cfitsio@3.181:')
- depends_on('wcslib@4.20:')
+ depends_on('wcslib@4.20:+cfitsio')
depends_on('fftw~mpi@3.0.0:', when='+fftw')
- depends_on('sofa-c', when='+sofa')
+ # SOFA dependency suffers the same problem in CMakeLists.txt as readline;
+ # however, as SOFA is far less likely to be present on most systems, and as
+ # it's an unneeded dependency except for testing, for now we leave out the
+ # option for a dependency on SOFA.
+ # depends_on('sofa-c', when='+sofa')
depends_on('hdf5', when='+hdf5')
- depends_on('ncurses', when='+ncurses')
+ # Force dependency on readline. Although the presence of readline is tested
+ # in CMakeLists.txt, and casacore can be built without it, there's no way
+ # to control that dependency at build time; since many systems come with
+ # readline, it's better to explicitly depend on it here always.
+ depends_on('readline')
depends_on('python@2.6:', when='+python')
depends_on('boost+python', when='+python')
depends_on('py-numpy', when='+python')