diff --git a/var/spack/repos/builtin/packages/gasnet/package.py b/var/spack/repos/builtin/packages/gasnet/package.py index 08ac1d5da3..b37d355170 100644 --- a/var/spack/repos/builtin/packages/gasnet/package.py +++ b/var/spack/repos/builtin/packages/gasnet/package.py @@ -16,6 +16,7 @@ class Gasnet(AutotoolsPackage): homepage = "http://gasnet.lbl.gov" url = "http://gasnet.lbl.gov/download/GASNet-1.24.0.tar.gz" + version('2019.3.0', sha256='97fe19bb5ab32d14a96d2dd19d0f03048f68bb20ca83abe0c00cdab40e86eba5') version('1.32.0', sha256='42e4774b3bbc7c142f77c41b6ce86b594f579073f46c31f47f424c7e31ee1511') version('1.30.0', '2ddb1d8397d62acfd389095ca8da72f6') version('1.28.2', '6ca0463dc2430570e40646c4d1e97b36') @@ -35,6 +36,15 @@ class Gasnet(AutotoolsPackage): depends_on('mpi', when='+mpi') + def url_for_version(self, version): + url = "http://gasnet.lbl.gov/" + if version >= Version('2019'): + url += "EX/GASNet-{0}.tar.gz".format(version) + else: + url += "download/GASNet-{0}.tar.gz".format(version) + + return url + def configure_args(self): args = [ # TODO: factor IB suport out into architecture description.