From 57803887e8e9b993b1c682962d469ce5c0d57f53 Mon Sep 17 00:00:00 2001 From: Robert Romero <1013414+NessieCanCode@users.noreply.github.com> Date: Sat, 2 Oct 2021 12:50:32 -0700 Subject: cddlib: use github URLs and bump version (#26315) Co-authored-by: Bernhard Kaindl --- var/spack/repos/builtin/packages/cddlib/package.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'var') 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) -- cgit v1.2.3-60-g2f50