Update hdfgroup packages to new URL structure (#4643)
* Update hdfgroup packages to new URL structure * Update docs now that HDF5 URL isn't that complicated
This commit is contained in:
@@ -25,15 +25,16 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Hdf(Package):
|
||||
class Hdf(AutotoolsPackage):
|
||||
"""HDF4 (also known as HDF) is a library and multi-object
|
||||
file format for storing and managing data between machines."""
|
||||
|
||||
homepage = "https://www.hdfgroup.org/products/hdf4/"
|
||||
url = "https://www.hdfgroup.org/ftp/HDF/releases/HDF4.2.11/src/hdf-4.2.11.tar.gz"
|
||||
list_url = "https://www.hdfgroup.org/ftp/HDF/releases/"
|
||||
list_depth = 3
|
||||
homepage = "https://support.hdfgroup.org/products/hdf4/"
|
||||
url = "https://support.hdfgroup.org/ftp/HDF/releases/HDF4.2.13/src/hdf-4.2.13.tar.gz"
|
||||
list_url = "https://support.hdfgroup.org/ftp/HDF/releases"
|
||||
list_depth = 2
|
||||
|
||||
version('4.2.13', 'a6aa950b3fce5162b96496d8ea0b82bf')
|
||||
version('4.2.12', '79fd1454c899c05e34a3da0456ab0c1c')
|
||||
version('4.2.11', '063f9928f3a19cc21367b71c3b8bbf19')
|
||||
|
||||
@@ -46,10 +47,11 @@ class Hdf(Package):
|
||||
depends_on('bison', type='build')
|
||||
depends_on('flex', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
def configure_args(self):
|
||||
spec = self.spec
|
||||
|
||||
config_args = [
|
||||
'CFLAGS=-fPIC',
|
||||
'--prefix={0}'.format(prefix),
|
||||
'--with-jpeg={0}'.format(spec['jpeg'].prefix),
|
||||
'--with-zlib={0}'.format(spec['zlib'].prefix),
|
||||
'--disable-netcdf', # must be disabled to build NetCDF with HDF4
|
||||
@@ -65,11 +67,4 @@ def install(self, spec, prefix):
|
||||
else:
|
||||
config_args.append('--without-szlib')
|
||||
|
||||
configure(*config_args)
|
||||
|
||||
make()
|
||||
|
||||
if self.run_tests:
|
||||
make('check')
|
||||
|
||||
make('install')
|
||||
return config_args
|
||||
|
Reference in New Issue
Block a user