diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2022-04-20 13:38:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 13:38:21 -0700 |
commit | 13d05848adc8c845591b3971bba276d941795b9b (patch) | |
tree | fcd822fefaaa9a3fdf648b3be1a66fdaa7076ac4 | |
parent | 6f2f9653c56ccbe53365cd128f4efdaccc7ad71a (diff) | |
download | spack-13d05848adc8c845591b3971bba276d941795b9b.tar.gz spack-13d05848adc8c845591b3971bba276d941795b9b.tar.bz2 spack-13d05848adc8c845591b3971bba276d941795b9b.tar.xz spack-13d05848adc8c845591b3971bba276d941795b9b.zip |
ipopt: use url_for_version to handle different urls for 3.13.4 onwards (#30197)
* ipopt: use url_for_version to handle different urls for 3.13.4 onwards
* ipopt: new versions: 3.14.1, 3.14.2, 3.14.3, 3.14.4
* fix indent
-rw-r--r-- | var/spack/repos/builtin/packages/ipopt/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ipopt/package.py b/var/spack/repos/builtin/packages/ipopt/package.py index 8ef7cc6280..40fe17b66d 100644 --- a/var/spack/repos/builtin/packages/ipopt/package.py +++ b/var/spack/repos/builtin/packages/ipopt/package.py @@ -14,6 +14,10 @@ class Ipopt(AutotoolsPackage): url = "https://www.coin-or.org/download/source/Ipopt/Ipopt-3.13.2.tgz" # Alternative: url = "https://github.com/coin-or/Ipopt/archive/releases/3.13.2.tar.gz" + version('3.14.4', sha256='60865150b6fad19c5968395b57ff4a0892380125646c3afa2a714926f5ac9487') + version('3.14.3', sha256='29bbf8bbadd5f2965e18e33451723d1fed0c42b14f6493396cf53a05cdfd2c09') + version('3.14.2', sha256='3ec6776b9a1ed8895f662bfc9939b067722770297be78ca4d6dc1cb42557da62') + version('3.14.1', sha256='afa37bbb0d91003c58284113717dc304718a1f236c97fe097dfab1672cb879c6') version('3.14.0', sha256='9bed72a5456ef37f1b95746c932986e6664eb70b983d4fab61cf8aa811facdf1') version('3.13.4', sha256='1fdd0f8ea637856d66b1ebdd7d52ad1b8b8c1142d1a4ce0976b200ab280e5683') version('3.13.3', sha256='86354b36c691e6cd6b8049218519923ab0ce8a6f0a432c2c0de605191f2d4a1c') @@ -35,6 +39,12 @@ class Ipopt(AutotoolsPackage): version('3.12.1', sha256='d6c18f7c5bf486712b493167d27ec6e940ad376c5b903b97acc5a3ade1c0a3ef') version('3.12.0', sha256='ed19e5e7174355e93c93c798b5056036e2fd2ec78cf0f3954876483f74fe618b') + def url_for_version(self, version): + if version >= Version('3.13.4'): + return "https://www.coin-or.org/download/source/Ipopt/Ipopt-{0}.tar.gz".format(version) + else: + return "https://www.coin-or.org/download/source/Ipopt/Ipopt-{0}.tgz".format(version) + variant('coinhsl', default=False, description="Build with Coin Harwell Subroutine Libraries") variant('metis', default=False, |