Skip to content

Commit 296af98

Browse files
authored
highfive: fix url and add new versions (spack#2593)
* fix url and add v3.0.0, v3.1.1, v3.2.0 * remove version 3.1.0 * fix URL depending on the version
1 parent 346babf commit 296af98

File tree

1 file changed

+13
-3
lines changed
  • repos/spack_repo/builtin/packages/highfive

1 file changed

+13
-3
lines changed

repos/spack_repo/builtin/packages/highfive/package.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@
1212
class Highfive(CMakePackage):
1313
"""HighFive - Header only C++ HDF5 interface"""
1414

15-
homepage = "https://github.com/BlueBrain/HighFive"
16-
url = "https://github.com/BlueBrain/HighFive/archive/v1.2.tar.gz"
17-
git = "https://github.com/BlueBrain/HighFive.git"
15+
homepage = "https://github.com/highfive-devs/highfive"
16+
git = "https://github.com/highfive-devs/highfive.git"
17+
1818
maintainers("1uc")
1919

2020
license("BSL-1.0")
2121

2222
version("develop", branch="master")
23+
version("3.2.0", sha256="01ea2eed7dbce1cf5dfff59476cfa113a7822b641aecbd99c674592fe7a4e630")
24+
version("3.1.1", sha256="622034f34badda41255d7793e1c5a3046954dcf0875b0bca076e7c77088a8890")
25+
version("3.0.0", sha256="cf9ad114b79bfa2c1deceefc6d4e710b882451ebaa81c063e2eb1de908e7c989")
2326
version("2.10.1", sha256="60d66ba1315730494470afaf402bb40300a39eb6ef3b9d67263335a236069cce")
2427
version("2.10.0", sha256="c29e8e1520e7298fabb26545f804e35bb3af257005c1c2df62e39986458d7c38")
2528
version("2.9.0", sha256="6301def8ceb9f4d7a595988612db288b448a3c0546f6c83417dab38c64994d7e")
@@ -66,3 +69,10 @@ def cmake_args(self):
6669
self.define("HIGHFIVE_UNIT_TESTS", False),
6770
self.define("HIGHFIVE_EXAMPLES", False),
6871
]
72+
73+
def url_for_version(self, version):
74+
if version < Version("3.0.0"):
75+
url = "https://github.com/BlueBrain/HighFive/archive/v{0}.tar.gz"
76+
else:
77+
url = "https://github.com/highfive-devs/highfive/archive/v{0}.tar.gz"
78+
return url.format(version)

0 commit comments

Comments
 (0)