diff options
author | Robert Romero <1013414+NessieCanCode@users.noreply.github.com> | 2021-10-02 12:50:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-02 19:50:32 +0000 |
commit | 57803887e8e9b993b1c682962d469ce5c0d57f53 (patch) | |
tree | 31463aa8f0c1ea43f5e7773229a4d21513800331 | |
parent | 43e08af7b2e8702e5127a1636563d0dfbfebbee3 (diff) | |
download | spack-57803887e8e9b993b1c682962d469ce5c0d57f53.tar.gz spack-57803887e8e9b993b1c682962d469ce5c0d57f53.tar.bz2 spack-57803887e8e9b993b1c682962d469ce5c0d57f53.tar.xz spack-57803887e8e9b993b1c682962d469ce5c0d57f53.zip |
cddlib: use github URLs and bump version (#26315)
Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/cddlib/package.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/cddlib/package.py b/var/spack/repos/builtin/packages/cddlib/package.py index c501aad344..b783d15c8f 100644 --- a/var/spack/repos/builtin/packages/cddlib/package.py +++ b/var/spack/repos/builtin/packages/cddlib/package.py @@ -13,16 +13,17 @@ class Cddlib(AutotoolsPackage): and extreme rays of a general convex polyhedron in R^d given by a system of linear inequalities""" - homepage = "https://www.inf.ethz.ch/personal/fukudak/cdd_home/" - url = "ftp://ftp.math.ethz.ch/users/fukudak/cdd/cddlib-094h.tar.gz" + homepage = "https://people.inf.ethz.ch/fukudak/cdd_home" + url = "https://github.com/cddlib/cddlib/archive/refs/tags/0.94m.tar.gz" + maintainers = ['NessieCanCode'] + version('0.94m', sha256='70dffdb3369b8704dc75428a1b3c42ab9047b81ce039f12f427e2eb2b1b0dee2') + version('0.94h', sha256='7382782c3834214b022c8b2898ed775a7bf915f2cb2acb73fa045d6fd9a3de33') - version('0.94h', sha256='fe6d04d494683cd451be5f6fe785e147f24e8ce3ef7387f048e739ceb4565ab5') - - # Note: It should be possible to build cddlib also without gmp - - depends_on("gmp") - depends_on("libtool", type="build") + depends_on("gmp", when='@0.94h') def url_for_version(self, version): - url = "ftp://ftp.math.ethz.ch/users/fukudak/cdd/cddlib-{0}.tar.gz" - return url.format(version.joined) + if self.spec.satisfies('@:0.94i'): + url = "https://github.com/cddlib/cddlib/archive/refs/tags/{0}.tar.gz" + elif self.spec.satisfies('@0.94j:'): + url = "https://github.com/cddlib/cddlib/releases/download/{0}/cddlib-{0}.tar.gz" + return url.format(version.dotted) |