From a6731b732e385d9b0dd9d45cdbdfbfe93f3cd73f Mon Sep 17 00:00:00 2001 From: rfbgo <109985755+rfbgo@users.noreply.github.com> Date: Thu, 16 Feb 2023 02:53:52 -0700 Subject: [PATCH] Add support for star-ccm-plus v17 (#35056) --- .../repos/builtin/packages/star-ccm-plus/package.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/star-ccm-plus/package.py b/var/spack/repos/builtin/packages/star-ccm-plus/package.py index 059c35f4fd..7c37721d4e 100644 --- a/var/spack/repos/builtin/packages/star-ccm-plus/package.py +++ b/var/spack/repos/builtin/packages/star-ccm-plus/package.py @@ -14,9 +14,17 @@ class StarCcmPlus(Package): """STAR-CCM+ (Computational Continuum Mechanics) CFD solver.""" homepage = "https://mdx.plm.automation.siemens.com/star-ccm-plus" - url = "file://{0}/STAR-CCM+11.06.010_02_linux-x86_64.tar.gz".format(os.getcwd()) manual_download = True + def url_for_version(self, version): + url = "{pwd}/STAR-CCM+{version}_linux-x86_64.tar.gz".format( + pwd=os.getcwd(), version=version + ) + return url + + version( + "17.02.007_01", sha256="79c0859b84f753d9c690aad60b6252677a8625224148fb698aa6a94aa2a09a8c" + ) version( "16.06.008_01", sha256="64577ec0e9a98d971114e68c4eec05bb746e061dfbf77b8d8919583c796c9e4b" )