diff options
author | Pariksheet Nanda <pnanda@umich.edu> | 2022-06-27 14:28:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 11:28:46 -0700 |
commit | 0471c1ad5d7c2b7d5a2c32fbd855f827b782ee1f (patch) | |
tree | 1dd501f8dc0fbee6e688742c932762c4a3083ae0 /var | |
parent | 1ba4ea5f20d6625238357a382a1a5280853e82c3 (diff) | |
download | spack-0471c1ad5d7c2b7d5a2c32fbd855f827b782ee1f.tar.gz spack-0471c1ad5d7c2b7d5a2c32fbd855f827b782ee1f.tar.bz2 spack-0471c1ad5d7c2b7d5a2c32fbd855f827b782ee1f.tar.xz spack-0471c1ad5d7c2b7d5a2c32fbd855f827b782ee1f.zip |
ioapi: adapt to upstream's build system changes (#28247) (#31149)
Co-authored-by: Pariksheet Nanda <pnanda@necrosis.micro.med.umich.edu>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/ioapi/package.py | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/ioapi/package.py b/var/spack/repos/builtin/packages/ioapi/package.py index 02897f4dfd..5c2c3f1624 100644 --- a/var/spack/repos/builtin/packages/ioapi/package.py +++ b/var/spack/repos/builtin/packages/ioapi/package.py @@ -13,6 +13,12 @@ class Ioapi(MakefilePackage): homepage = "https://www.cmascenter.org/ioapi/" url = "https://www.cmascenter.org/ioapi/download/ioapi-3.2.tar.gz" + maintainers = ['omsai'] + # This checksum is somewhat meaningless because upstream updates the tarball + # without incrementing the version despite requests no to do this. + # Therefore the checksum fails everytime upstream silently updates the + # source tarball (#28247). This also means that one must test for breaking + # changes when updating the checksum and avoid #22633. version('3.2', sha256='0a3cbf236ffbd9fb5f6509e35308c3353f1f53096efe0c51b84883d2da86924b') depends_on('netcdf-c@4:') depends_on('netcdf-fortran@4:') @@ -24,10 +30,21 @@ class Ioapi(MakefilePackage): # The makefile uses stubborn assignments of = instead of ?= so # edit the makefile instead of using environmental variables. makefile = FileFilter('Makefile') - makefile.filter('^BASEDIR.*', 'BASEDIR = ' + self.build_directory) - makefile.filter('^INSTALL.*', 'INSTALL = ' + prefix) - makefile.filter('^BININST.*', 'BININST = ' + prefix.bin) - makefile.filter('^LIBINST.*', 'LIBINST = ' + prefix.lib) + makefile.filter('(^VERSION.*)', ''' +CPLMODE = nocpl +\\1 + '''.strip()) + makefile.filter('^BASEDIR.*', (''' +BASEDIR = ''' + self.build_directory + ''' +INSTALL = ''' + prefix + ''' +BININST = ''' + prefix.bin + ''' +LIBINST = ''' + prefix.lib + ''' +BIN = Linux2_x86_64 + ''').strip()) + # Fix circular dependency bug for generating subdirectory Makefiles. + makefile.filter('^configure:.*', 'configure:') + # Generate the subdirectory Makefiles. + make('configure') def install(self, spec, prefix): make('install') |