orca: add v6.0.1, avx2-6.0.1 (#47489)
* orca: add 6.0.1 versions * orca: checksum fix for avx2-6.0.1 * orca: fix version string for avx2-6.0.1 * orca: checksum fix for 6.0.1
This commit is contained in:
parent
8feb506b3a
commit
43c1a5e0ec
@ -23,6 +23,10 @@ class Orca(Package):
|
|||||||
|
|
||||||
license("LGPL-2.1-or-later")
|
license("LGPL-2.1-or-later")
|
||||||
|
|
||||||
|
version(
|
||||||
|
"avx2-6.0.1", sha256="f31f98256a0c6727b6ddfe50aa3ac64c45549981138d670a57e90114b4b9c9d2"
|
||||||
|
)
|
||||||
|
version("6.0.1", sha256="5e9b49588375e0ce5bc32767127cc725f5425917804042cdecdfd5c6b965ef61")
|
||||||
version(
|
version(
|
||||||
"avx2-6.0.0", sha256="02c21294efe7b1b721e26cb90f98ee15ad682d02807201b7d217dfe67905a2fd"
|
"avx2-6.0.0", sha256="02c21294efe7b1b721e26cb90f98ee15ad682d02807201b7d217dfe67905a2fd"
|
||||||
)
|
)
|
||||||
@ -43,7 +47,9 @@ class Orca(Package):
|
|||||||
"5.0.3": "4.1.2",
|
"5.0.3": "4.1.2",
|
||||||
"5.0.4": "4.1.2",
|
"5.0.4": "4.1.2",
|
||||||
"6.0.0": "4.1.6",
|
"6.0.0": "4.1.6",
|
||||||
|
"6.0.1": "4.1.6",
|
||||||
"avx2-6.0.0": "4.1.6",
|
"avx2-6.0.0": "4.1.6",
|
||||||
|
"avx2-6.0.1": "4.1.6",
|
||||||
}
|
}
|
||||||
for orca_version, openmpi_version in openmpi_versions.items():
|
for orca_version, openmpi_version in openmpi_versions.items():
|
||||||
depends_on(
|
depends_on(
|
||||||
@ -54,11 +60,17 @@ def url_for_version(self, version):
|
|||||||
openmpi_version = self.openmpi_versions[version.string].replace(".", "")
|
openmpi_version = self.openmpi_versions[version.string].replace(".", "")
|
||||||
if openmpi_version == "412":
|
if openmpi_version == "412":
|
||||||
openmpi_version = "411"
|
openmpi_version = "411"
|
||||||
|
|
||||||
ver_parts = version.string.split("-")
|
ver_parts = version.string.split("-")
|
||||||
ver_underscored = ver_parts[-1].replace(".", "_")
|
ver_underscored = ver_parts[-1].replace(".", "_")
|
||||||
features = ver_parts[:-1] + ["shared"]
|
features = ver_parts[:-1] + ["shared"]
|
||||||
feature_text = "_".join(features)
|
feature_text = "_".join(features)
|
||||||
return f"file://{os.getcwd()}/orca_{ver_underscored}_linux_x86-64_{feature_text}_openmpi{openmpi_version}.tar.xz"
|
|
||||||
|
url = f"file://{os.getcwd()}/orca_{ver_underscored}_linux_x86-64_{feature_text}_openmpi{openmpi_version}.tar.xz"
|
||||||
|
if self.spec.satisfies("@=avx2-6.0.1"):
|
||||||
|
url = f"file://{os.getcwd()}/orca_{ver_underscored}_linux_x86-64_shared_openmpi{openmpi_version}_avx2.tar.xz"
|
||||||
|
|
||||||
|
return url
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
mkdirp(prefix.bin)
|
mkdirp(prefix.bin)
|
||||||
|
Loading…
Reference in New Issue
Block a user